blib/lib/Paws/AutoScalingPlans/CustomizedScalingMetricSpecification.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::AutoScalingPlans::CustomizedScalingMetricSpecification;
3 use Moose;
4 has Dimensions => (is => 'ro', isa => 'ArrayRef[Paws::AutoScalingPlans::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::AutoScalingPlans::CustomizedScalingMetricSpecification
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::AutoScalingPlans::CustomizedScalingMetricSpecification 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::AutoScalingPlans::CustomizedScalingMetricSpecification object:
34  
35 $result = $service_obj->Method(...);
36 $result->Att1->Dimensions
37  
38 =head1 DESCRIPTION
39  
40 Represents a CloudWatch metric of your choosing that can be used for
41 dynamic scaling as part of a target tracking scaling policy.
42  
43 To create your customized scaling 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 information about terminology, available metrics, or how to publish
66 new metrics, see Amazon CloudWatch Concepts
67 (https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html)
68 in the I<Amazon CloudWatch User Guide>.
69  
70 =head1 ATTRIBUTES
71  
72  
73 =head2 Dimensions => ArrayRef[L<Paws::AutoScalingPlans::MetricDimension>]
74  
75 The dimensions of the metric.
76  
77 Conditional: If you published your metric with dimensions, you must
78 specify the same dimensions in your customized scaling metric
79 specification.
80  
81  
82 =head2 B<REQUIRED> MetricName => Str
83  
84 The name of the metric.
85  
86  
87 =head2 B<REQUIRED> Namespace => Str
88  
89 The namespace of the metric.
90  
91  
92 =head2 B<REQUIRED> Statistic => Str
93  
94 The statistic of the metric.
95  
96  
97 =head2 Unit => Str
98  
99 The unit of the metric.
100  
101  
102  
103 =head1 SEE ALSO
104  
105 This class forms part of L<Paws>, describing an object used in L<Paws::AutoScalingPlans>
106  
107 =head1 BUGS and CONTRIBUTIONS
108  
109 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
110  
111 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
112  
113 =cut
114