blib/lib/Paws/AutoScaling/CustomizedMetricSpecification.pm untested

filter: Statementstmt 0.0% 0 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 9 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::AutoScaling::CustomizedMetricSpecification;
3 use Moose;
4 has Dimensions => (is => 'ro', isa => 'ArrayRef[Paws::AutoScaling::MetricDimension]');
5 has MetricName => (is => 'ro', isa => 'Str', required => 1);
6 has Namespace => (is => 'ro', isa => 'Str', required => 1);
7 has Statistic => (is => 'ro', isa => 'Str', required => 1);
8 has Unit => (is => 'ro', isa => 'Str');
9  
10 1;
11  
12 ### main pod documentation begin ###
13  
14 =head1 NAME
15  
16 Paws::AutoScaling::CustomizedMetricSpecification
17  
18 =head1 USAGE
19  
20 This class represents one of two things:
21  
22 =head3 Arguments in a call to a service
23  
24 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
25 Each attribute should be used as a named argument in the calls that expect this type of object.
26  
27 As an example, if Att1 is expected to be a Paws::AutoScaling::CustomizedMetricSpecification object:
28  
29 $service_obj->Method(Att1 => { Dimensions => $value, ..., Unit => $value });
30  
31 =head3 Results returned from an API call
32  
33 Use accessors for each attribute. If Att1 is expected to be an Paws::AutoScaling::CustomizedMetricSpecification object:
34  
35 $result = $service_obj->Method(...);
36 $result->Att1->Dimensions
37  
38 =head1 DESCRIPTION
39  
40 Represents a CloudWatch metric of your choosing for a target tracking
41 scaling policy to use with Amazon EC2 Auto Scaling.
42  
43 To create your customized metric specification:
44  
45 =over
46  
47 =item *
48  
49 Add values for each required parameter from CloudWatch. You can use an
50 existing metric, or a new metric that you create. To use your own
51 metric, you must first publish the metric to CloudWatch. For more
52 information, see Publish Custom Metrics
53 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html)
54 in the I<Amazon CloudWatch User Guide>.
55  
56 =item *
57  
58 Choose a metric that changes proportionally with capacity. The value of
59 the metric should increase or decrease in inverse proportion to the
60 number of capacity units. That is, the value of the metric should
61 decrease when capacity increases.
62  
63 =back
64  
65 For more information about CloudWatch, see Amazon CloudWatch Concepts
66 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html).
67  
68 =head1 ATTRIBUTES
69  
70  
71 =head2 Dimensions => ArrayRef[L<Paws::AutoScaling::MetricDimension>]
72  
73 The dimensions of the metric.
74  
75 Conditional: If you published your metric with dimensions, you must
76 specify the same dimensions in your scaling policy.
77  
78  
79 =head2 B<REQUIRED> MetricName => Str
80  
81 The name of the metric.
82  
83  
84 =head2 B<REQUIRED> Namespace => Str
85  
86 The namespace of the metric.
87  
88  
89 =head2 B<REQUIRED> Statistic => Str
90  
91 The statistic of the metric.
92  
93  
94 =head2 Unit => Str
95  
96 The unit of the metric.
97  
98  
99  
100 =head1 SEE ALSO
101  
102 This class forms part of L<Paws>, describing an object used in L<Paws::AutoScaling>
103  
104 =head1 BUGS and CONTRIBUTIONS
105  
106 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
107  
108 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
109  
110 =cut
111