blib/lib/Paws/ApplicationAutoScaling/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::ApplicationAutoScaling::CustomizedMetricSpecification;
3 use Moose;
4 has Dimensions => (is => 'ro', isa => 'ArrayRef[Paws::ApplicationAutoScaling::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::ApplicationAutoScaling::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::ApplicationAutoScaling::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::ApplicationAutoScaling::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 Application Auto Scaling.
42  
43 For information about the available metrics for a service, see AWS
44 Services That Publish CloudWatch Metrics
45 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/aws-services-cloudwatch-metrics.html)
46 in the I<Amazon CloudWatch User Guide>.
47  
48 To create your customized metric specification:
49  
50 =over
51  
52 =item *
53  
54 Add values for each required parameter from CloudWatch. You can use an
55 existing metric, or a new metric that you create. To use your own
56 metric, you must first publish the metric to CloudWatch. For more
57 information, see Publish Custom Metrics
58 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/publishingMetrics.html)
59 in the I<Amazon CloudWatch User Guide>.
60  
61 =item *
62  
63 Choose a metric that changes proportionally with capacity. The value of
64 the metric should increase or decrease in inverse proportion to the
65 number of capacity units. That is, the value of the metric should
66 decrease when capacity increases, and increase when capacity decreases.
67  
68 =back
69  
70 For more information about CloudWatch, see Amazon CloudWatch Concepts
71 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html).
72  
73 =head1 ATTRIBUTES
74  
75  
76 =head2 Dimensions => ArrayRef[L<Paws::ApplicationAutoScaling::MetricDimension>]
77  
78 The dimensions of the metric.
79  
80 Conditional: If you published your metric with dimensions, you must
81 specify the same dimensions in your scaling policy.
82  
83  
84 =head2 B<REQUIRED> MetricName => Str
85  
86 The name of the metric.
87  
88  
89 =head2 B<REQUIRED> Namespace => Str
90  
91 The namespace of the metric.
92  
93  
94 =head2 B<REQUIRED> Statistic => Str
95  
96 The statistic of the metric.
97  
98  
99 =head2 Unit => Str
100  
101 The unit of the metric.
102  
103  
104  
105 =head1 SEE ALSO
106  
107 This class forms part of L<Paws>, describing an object used in L<Paws::ApplicationAutoScaling>
108  
109 =head1 BUGS and CONTRIBUTIONS
110  
111 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
112  
113 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
114  
115 =cut
116