blib/lib/Paws/EMR/CloudWatchAlarmDefinition.pm untested

filter: Statementstmt 0.0% 0 / 12 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::EMR::CloudWatchAlarmDefinition;
3 use Moose;
4 has ComparisonOperator => (is => 'ro', isa => 'Str', required => 1);
5 has Dimensions => (is => 'ro', isa => 'ArrayRef[Paws::EMR::MetricDimension]');
6 has EvaluationPeriods => (is => 'ro', isa => 'Int');
7 has MetricName => (is => 'ro', isa => 'Str', required => 1);
8 has Namespace => (is => 'ro', isa => 'Str');
9 has Period => (is => 'ro', isa => 'Int', required => 1);
10 has Statistic => (is => 'ro', isa => 'Str');
11 has Threshold => (is => 'ro', isa => 'Num', required => 1);
12 has Unit => (is => 'ro', isa => 'Str');
13  
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::EMR::CloudWatchAlarmDefinition
21  
22 =head1 USAGE
23  
24 This class represents one of two things:
25  
26 =head3 Arguments in a call to a service
27  
28 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
29 Each attribute should be used as a named argument in the calls that expect this type of object.
30  
31 As an example, if Att1 is expected to be a Paws::EMR::CloudWatchAlarmDefinition object:
32  
33 $service_obj->Method(Att1 => { ComparisonOperator => $value, ..., Unit => $value });
34  
35 =head3 Results returned from an API call
36  
37 Use accessors for each attribute. If Att1 is expected to be an Paws::EMR::CloudWatchAlarmDefinition object:
38  
39 $result = $service_obj->Method(...);
40 $result->Att1->ComparisonOperator
41  
42 =head1 DESCRIPTION
43  
44 The definition of a CloudWatch metric alarm, which determines when an
45 automatic scaling activity is triggered. When the defined alarm
46 conditions are satisfied, scaling activity begins.
47  
48 =head1 ATTRIBUTES
49  
50  
51 =head2 B<REQUIRED> ComparisonOperator => Str
52  
53 Determines how the metric specified by C<MetricName> is compared to the
54 value specified by C<Threshold>.
55  
56  
57 =head2 Dimensions => ArrayRef[L<Paws::EMR::MetricDimension>]
58  
59 A CloudWatch metric dimension.
60  
61  
62 =head2 EvaluationPeriods => Int
63  
64 The number of periods, in five-minute increments, during which the
65 alarm condition must exist before the alarm triggers automatic scaling
66 activity. The default value is C<1>.
67  
68  
69 =head2 B<REQUIRED> MetricName => Str
70  
71 The name of the CloudWatch metric that is watched to determine an alarm
72 condition.
73  
74  
75 =head2 Namespace => Str
76  
77 The namespace for the CloudWatch metric. The default is
78 C<AWS/ElasticMapReduce>.
79  
80  
81 =head2 B<REQUIRED> Period => Int
82  
83 The period, in seconds, over which the statistic is applied. EMR
84 CloudWatch metrics are emitted every five minutes (300 seconds), so if
85 an EMR CloudWatch metric is specified, specify C<300>.
86  
87  
88 =head2 Statistic => Str
89  
90 The statistic to apply to the metric associated with the alarm. The
91 default is C<AVERAGE>.
92  
93  
94 =head2 B<REQUIRED> Threshold => Num
95  
96 The value against which the specified statistic is compared.
97  
98  
99 =head2 Unit => Str
100  
101 The unit of measure associated with the CloudWatch metric being
102 watched. The value specified for C<Unit> must correspond to the units
103 specified in the CloudWatch metric.
104  
105  
106  
107 =head1 SEE ALSO
108  
109 This class forms part of L<Paws>, describing an object used in L<Paws::EMR>
110  
111 =head1 BUGS and CONTRIBUTIONS
112  
113 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
114  
115 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
116  
117 =cut
118