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

filter: Statementstmt 0.0% 0 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 8 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::PredictiveScalingMetricSpecification;
3 use Moose;
4 has PredefinedLoadMetricSpecification => (is => 'ro', isa => 'Paws::AutoScaling::PredictiveScalingPredefinedLoadMetric');
5 has PredefinedMetricPairSpecification => (is => 'ro', isa => 'Paws::AutoScaling::PredictiveScalingPredefinedMetricPair');
6 has PredefinedScalingMetricSpecification => (is => 'ro', isa => 'Paws::AutoScaling::PredictiveScalingPredefinedScalingMetric');
7 has TargetValue => (is => 'ro', isa => 'Num', required => 1);
8  
9 1;
10  
11 ### main pod documentation begin ###
12  
13 =head1 NAME
14  
15 Paws::AutoScaling::PredictiveScalingMetricSpecification
16  
17 =head1 USAGE
18  
19 This class represents one of two things:
20  
21 =head3 Arguments in a call to a service
22  
23 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
24 Each attribute should be used as a named argument in the calls that expect this type of object.
25  
26 As an example, if Att1 is expected to be a Paws::AutoScaling::PredictiveScalingMetricSpecification object:
27  
28 $service_obj->Method(Att1 => { PredefinedLoadMetricSpecification => $value, ..., TargetValue => $value });
29  
30 =head3 Results returned from an API call
31  
32 Use accessors for each attribute. If Att1 is expected to be an Paws::AutoScaling::PredictiveScalingMetricSpecification object:
33  
34 $result = $service_obj->Method(...);
35 $result->Att1->PredefinedLoadMetricSpecification
36  
37 =head1 DESCRIPTION
38  
39 This structure specifies the metrics and target utilization settings
40 for a predictive scaling policy.
41  
42 You must specify either a metric pair, or a load metric and a scaling
43 metric individually. Specifying a metric pair instead of individual
44 metrics provides a simpler way to configure metrics for a scaling
45 policy. You choose the metric pair, and the policy automatically knows
46 the correct sum and average statistics to use for the load metric and
47 the scaling metric.
48  
49 Example
50  
51 =over
52  
53 =item *
54  
55 You create a predictive scaling policy and specify C<ALBRequestCount>
56 as the value for the metric pair and C<1000.0> as the target value. For
57 this type of metric, you must provide the metric dimension for the
58 corresponding target group, so you also provide a resource label for
59 the Application Load Balancer target group that is attached to your
60 Auto Scaling group.
61  
62 =item *
63  
64 The number of requests the target group receives per minute provides
65 the load metric, and the request count averaged between the members of
66 the target group provides the scaling metric. In CloudWatch, this
67 refers to the C<RequestCount> and C<RequestCountPerTarget> metrics,
68 respectively.
69  
70 =item *
71  
72 For optimal use of predictive scaling, you adhere to the best practice
73 of using a dynamic scaling policy to automatically scale between the
74 minimum capacity and maximum capacity in response to real-time changes
75 in resource utilization.
76  
77 =item *
78  
79 Amazon EC2 Auto Scaling consumes data points for the load metric over
80 the last 14 days and creates an hourly load forecast for predictive
81 scaling. (A minimum of 24 hours of data is required.)
82  
83 =item *
84  
85 After creating the load forecast, Amazon EC2 Auto Scaling determines
86 when to reduce or increase the capacity of your Auto Scaling group in
87 each hour of the forecast period so that the average number of requests
88 received by each instance is as close to 1000 requests per minute as
89 possible at all times.
90  
91 =back
92  
93  
94 =head1 ATTRIBUTES
95  
96  
97 =head2 PredefinedLoadMetricSpecification => L<Paws::AutoScaling::PredictiveScalingPredefinedLoadMetric>
98  
99 The load metric specification.
100  
101  
102 =head2 PredefinedMetricPairSpecification => L<Paws::AutoScaling::PredictiveScalingPredefinedMetricPair>
103  
104 The metric pair specification from which Amazon EC2 Auto Scaling
105 determines the appropriate scaling metric and load metric to use.
106  
107  
108 =head2 PredefinedScalingMetricSpecification => L<Paws::AutoScaling::PredictiveScalingPredefinedScalingMetric>
109  
110 The scaling metric specification.
111  
112  
113 =head2 B<REQUIRED> TargetValue => Num
114  
115 Specifies the target utilization.
116  
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, describing an object used in L<Paws::AutoScaling>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130