| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
package Paws::CloudWatch::PutMetricAlarm; |
|
3
|
1
|
|
|
1
|
|
539
|
use Moose; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
7
|
|
|
4
|
|
|
|
|
|
|
has ActionsEnabled => (is => 'ro', isa => 'Bool'); |
|
5
|
|
|
|
|
|
|
has AlarmActions => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); |
|
6
|
|
|
|
|
|
|
has AlarmDescription => (is => 'ro', isa => 'Str'); |
|
7
|
|
|
|
|
|
|
has AlarmName => (is => 'ro', isa => 'Str', required => 1); |
|
8
|
|
|
|
|
|
|
has ComparisonOperator => (is => 'ro', isa => 'Str', required => 1); |
|
9
|
|
|
|
|
|
|
has Dimensions => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatch::Dimension]'); |
|
10
|
|
|
|
|
|
|
has EvaluateLowSampleCountPercentile => (is => 'ro', isa => 'Str'); |
|
11
|
|
|
|
|
|
|
has EvaluationPeriods => (is => 'ro', isa => 'Int', required => 1); |
|
12
|
|
|
|
|
|
|
has ExtendedStatistic => (is => 'ro', isa => 'Str'); |
|
13
|
|
|
|
|
|
|
has InsufficientDataActions => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); |
|
14
|
|
|
|
|
|
|
has MetricName => (is => 'ro', isa => 'Str', required => 1); |
|
15
|
|
|
|
|
|
|
has Namespace => (is => 'ro', isa => 'Str', required => 1); |
|
16
|
|
|
|
|
|
|
has OKActions => (is => 'ro', isa => 'ArrayRef[Str|Undef]'); |
|
17
|
|
|
|
|
|
|
has Period => (is => 'ro', isa => 'Int', required => 1); |
|
18
|
|
|
|
|
|
|
has Statistic => (is => 'ro', isa => 'Str'); |
|
19
|
|
|
|
|
|
|
has Threshold => (is => 'ro', isa => 'Num', required => 1); |
|
20
|
|
|
|
|
|
|
has TreatMissingData => (is => 'ro', isa => 'Str'); |
|
21
|
|
|
|
|
|
|
has Unit => (is => 'ro', isa => 'Str'); |
|
22
|
|
|
|
|
|
|
|
|
23
|
1
|
|
|
1
|
|
6712
|
use MooseX::ClassAttribute; |
|
|
1
|
|
|
|
|
3
|
|
|
|
1
|
|
|
|
|
9
|
|
|
24
|
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutMetricAlarm'); |
|
26
|
|
|
|
|
|
|
class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response'); |
|
27
|
|
|
|
|
|
|
class_has _result_key => (isa => 'Str', is => 'ro'); |
|
28
|
|
|
|
|
|
|
1; |
|
29
|
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
### main pod documentation begin ### |
|
31
|
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 NAME |
|
33
|
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Paws::CloudWatch::PutMetricAlarm - Arguments for method PutMetricAlarm on Paws::CloudWatch |
|
35
|
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This class represents the parameters used for calling the method PutMetricAlarm on the |
|
39
|
|
|
|
|
|
|
Amazon CloudWatch service. Use the attributes of this class |
|
40
|
|
|
|
|
|
|
as arguments to method PutMetricAlarm. |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutMetricAlarm. |
|
43
|
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
As an example: |
|
45
|
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
$service_obj->PutMetricAlarm(Att1 => $value1, Att2 => $value2, ...); |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 ATTRIBUTES |
|
51
|
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
=head2 ActionsEnabled => Bool |
|
54
|
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
Indicates whether actions should be executed during any changes to the |
|
56
|
|
|
|
|
|
|
alarm state. |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head2 AlarmActions => ArrayRef[Str|Undef] |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
The actions to execute when this alarm transitions to the C<ALARM> |
|
63
|
|
|
|
|
|
|
state from any other state. Each action is specified as an Amazon |
|
64
|
|
|
|
|
|
|
Resource Name (ARN). |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
Valid Values: arn:aws:automate:I<region>:ec2:stop | |
|
67
|
|
|
|
|
|
|
arn:aws:automate:I<region>:ec2:terminate | |
|
68
|
|
|
|
|
|
|
arn:aws:automate:I<region>:ec2:recover |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
Valid Values (for use with IAM roles): |
|
71
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Stop/1.0 |
|
72
|
|
|
|
|
|
|
| |
|
73
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 |
|
74
|
|
|
|
|
|
|
| |
|
75
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 |
|
76
|
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
=head2 AlarmDescription => Str |
|
80
|
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
The description for the alarm. |
|
82
|
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
=head2 B<REQUIRED> AlarmName => Str |
|
86
|
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
The name for the alarm. This name must be unique within the AWS |
|
88
|
|
|
|
|
|
|
account. |
|
89
|
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
|
|
91
|
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
=head2 B<REQUIRED> ComparisonOperator => Str |
|
93
|
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
The arithmetic operation to use when comparing the specified statistic |
|
95
|
|
|
|
|
|
|
and threshold. The specified statistic value is used as the first |
|
96
|
|
|
|
|
|
|
operand. |
|
97
|
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
Valid values are: C<"GreaterThanOrEqualToThreshold">, C<"GreaterThanThreshold">, C<"LessThanThreshold">, C<"LessThanOrEqualToThreshold"> |
|
99
|
|
|
|
|
|
|
|
|
100
|
|
|
|
|
|
|
=head2 Dimensions => ArrayRef[L<Paws::CloudWatch::Dimension>] |
|
101
|
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
The dimensions for the metric associated with the alarm. |
|
103
|
|
|
|
|
|
|
|
|
104
|
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
=head2 EvaluateLowSampleCountPercentile => Str |
|
107
|
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
Used only for alarms based on percentiles. If you specify C<ignore>, |
|
109
|
|
|
|
|
|
|
the alarm state does not change during periods with too few data points |
|
110
|
|
|
|
|
|
|
to be statistically significant. If you specify C<evaluate> or omit |
|
111
|
|
|
|
|
|
|
this parameter, the alarm is always evaluated and possibly changes |
|
112
|
|
|
|
|
|
|
state no matter how many data points are available. For more |
|
113
|
|
|
|
|
|
|
information, see Percentile-Based CloudWatch Alarms and Low Data |
|
114
|
|
|
|
|
|
|
Samples. |
|
115
|
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
Valid Values: C<evaluate | ignore> |
|
117
|
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head2 B<REQUIRED> EvaluationPeriods => Int |
|
121
|
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
The number of periods over which data is compared to the specified |
|
123
|
|
|
|
|
|
|
threshold. An alarm's total current evaluation period can be no longer |
|
124
|
|
|
|
|
|
|
than one day, so this number multiplied by C<Period> must be 86,400 or |
|
125
|
|
|
|
|
|
|
less. |
|
126
|
|
|
|
|
|
|
|
|
127
|
|
|
|
|
|
|
|
|
128
|
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
=head2 ExtendedStatistic => Str |
|
130
|
|
|
|
|
|
|
|
|
131
|
|
|
|
|
|
|
The percentile statistic for the metric associated with the alarm. |
|
132
|
|
|
|
|
|
|
Specify a value between p0.0 and p100. |
|
133
|
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
=head2 InsufficientDataActions => ArrayRef[Str|Undef] |
|
137
|
|
|
|
|
|
|
|
|
138
|
|
|
|
|
|
|
The actions to execute when this alarm transitions to the |
|
139
|
|
|
|
|
|
|
C<INSUFFICIENT_DATA> state from any other state. Each action is |
|
140
|
|
|
|
|
|
|
specified as an Amazon Resource Name (ARN). |
|
141
|
|
|
|
|
|
|
|
|
142
|
|
|
|
|
|
|
Valid Values: arn:aws:automate:I<region>:ec2:stop | |
|
143
|
|
|
|
|
|
|
arn:aws:automate:I<region>:ec2:terminate | |
|
144
|
|
|
|
|
|
|
arn:aws:automate:I<region>:ec2:recover |
|
145
|
|
|
|
|
|
|
|
|
146
|
|
|
|
|
|
|
Valid Values (for use with IAM roles): |
|
147
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Stop/1.0 |
|
148
|
|
|
|
|
|
|
| |
|
149
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 |
|
150
|
|
|
|
|
|
|
| |
|
151
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 |
|
152
|
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
=head2 B<REQUIRED> MetricName => Str |
|
156
|
|
|
|
|
|
|
|
|
157
|
|
|
|
|
|
|
The name for the metric associated with the alarm. |
|
158
|
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
|
|
160
|
|
|
|
|
|
|
|
|
161
|
|
|
|
|
|
|
=head2 B<REQUIRED> Namespace => Str |
|
162
|
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
The namespace for the metric associated with the alarm. |
|
164
|
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
|
|
166
|
|
|
|
|
|
|
|
|
167
|
|
|
|
|
|
|
=head2 OKActions => ArrayRef[Str|Undef] |
|
168
|
|
|
|
|
|
|
|
|
169
|
|
|
|
|
|
|
The actions to execute when this alarm transitions to an C<OK> state |
|
170
|
|
|
|
|
|
|
from any other state. Each action is specified as an Amazon Resource |
|
171
|
|
|
|
|
|
|
Name (ARN). |
|
172
|
|
|
|
|
|
|
|
|
173
|
|
|
|
|
|
|
Valid Values: arn:aws:automate:I<region>:ec2:stop | |
|
174
|
|
|
|
|
|
|
arn:aws:automate:I<region>:ec2:terminate | |
|
175
|
|
|
|
|
|
|
arn:aws:automate:I<region>:ec2:recover |
|
176
|
|
|
|
|
|
|
|
|
177
|
|
|
|
|
|
|
Valid Values (for use with IAM roles): |
|
178
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Stop/1.0 |
|
179
|
|
|
|
|
|
|
| |
|
180
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Terminate/1.0 |
|
181
|
|
|
|
|
|
|
| |
|
182
|
|
|
|
|
|
|
arn:aws:swf:us-east-1:{I<customer-account>}:action/actions/AWS_EC2.InstanceId.Reboot/1.0 |
|
183
|
|
|
|
|
|
|
|
|
184
|
|
|
|
|
|
|
|
|
185
|
|
|
|
|
|
|
|
|
186
|
|
|
|
|
|
|
=head2 B<REQUIRED> Period => Int |
|
187
|
|
|
|
|
|
|
|
|
188
|
|
|
|
|
|
|
The period, in seconds, over which the specified statistic is applied. |
|
189
|
|
|
|
|
|
|
An alarm's total current evaluation period can be no longer than one |
|
190
|
|
|
|
|
|
|
day, so this number multiplied by C<EvaluationPeriods> must be 86,400 |
|
191
|
|
|
|
|
|
|
or less. |
|
192
|
|
|
|
|
|
|
|
|
193
|
|
|
|
|
|
|
|
|
194
|
|
|
|
|
|
|
|
|
195
|
|
|
|
|
|
|
=head2 Statistic => Str |
|
196
|
|
|
|
|
|
|
|
|
197
|
|
|
|
|
|
|
The statistic for the metric associated with the alarm, other than |
|
198
|
|
|
|
|
|
|
percentile. For percentile statistics, use C<ExtendedStatistic>. |
|
199
|
|
|
|
|
|
|
|
|
200
|
|
|
|
|
|
|
Valid values are: C<"SampleCount">, C<"Average">, C<"Sum">, C<"Minimum">, C<"Maximum"> |
|
201
|
|
|
|
|
|
|
|
|
202
|
|
|
|
|
|
|
=head2 B<REQUIRED> Threshold => Num |
|
203
|
|
|
|
|
|
|
|
|
204
|
|
|
|
|
|
|
The value against which the specified statistic is compared. |
|
205
|
|
|
|
|
|
|
|
|
206
|
|
|
|
|
|
|
|
|
207
|
|
|
|
|
|
|
|
|
208
|
|
|
|
|
|
|
=head2 TreatMissingData => Str |
|
209
|
|
|
|
|
|
|
|
|
210
|
|
|
|
|
|
|
Sets how this alarm is to handle missing data points. If |
|
211
|
|
|
|
|
|
|
C<TreatMissingData> is omitted, the default behavior of C<missing> is |
|
212
|
|
|
|
|
|
|
used. For more information, see Configuring How CloudWatch Alarms |
|
213
|
|
|
|
|
|
|
Treats Missing Data. |
|
214
|
|
|
|
|
|
|
|
|
215
|
|
|
|
|
|
|
Valid Values: C<breaching | notBreaching | ignore | missing> |
|
216
|
|
|
|
|
|
|
|
|
217
|
|
|
|
|
|
|
|
|
218
|
|
|
|
|
|
|
|
|
219
|
|
|
|
|
|
|
=head2 Unit => Str |
|
220
|
|
|
|
|
|
|
|
|
221
|
|
|
|
|
|
|
The unit of measure for the statistic. For example, the units for the |
|
222
|
|
|
|
|
|
|
Amazon EC2 NetworkIn metric are Bytes because NetworkIn tracks the |
|
223
|
|
|
|
|
|
|
number of bytes that an instance receives on all network interfaces. |
|
224
|
|
|
|
|
|
|
You can also specify a unit when you create a custom metric. Units help |
|
225
|
|
|
|
|
|
|
provide conceptual meaning to your data. Metric data points that |
|
226
|
|
|
|
|
|
|
specify a unit of measure, such as Percent, are aggregated separately. |
|
227
|
|
|
|
|
|
|
|
|
228
|
|
|
|
|
|
|
If you specify a unit, you must use a unit that is appropriate for the |
|
229
|
|
|
|
|
|
|
metric. Otherwise, the CloudWatch alarm can get stuck in the |
|
230
|
|
|
|
|
|
|
C<INSUFFICIENT DATA> state. |
|
231
|
|
|
|
|
|
|
|
|
232
|
|
|
|
|
|
|
Valid values are: C<"Seconds">, C<"Microseconds">, C<"Milliseconds">, C<"Bytes">, C<"Kilobytes">, C<"Megabytes">, C<"Gigabytes">, C<"Terabytes">, C<"Bits">, C<"Kilobits">, C<"Megabits">, C<"Gigabits">, C<"Terabits">, C<"Percent">, C<"Count">, C<"Bytes/Second">, C<"Kilobytes/Second">, C<"Megabytes/Second">, C<"Gigabytes/Second">, C<"Terabytes/Second">, C<"Bits/Second">, C<"Kilobits/Second">, C<"Megabits/Second">, C<"Gigabits/Second">, C<"Terabits/Second">, C<"Count/Second">, C<"None"> |
|
233
|
|
|
|
|
|
|
|
|
234
|
|
|
|
|
|
|
|
|
235
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
236
|
|
|
|
|
|
|
|
|
237
|
|
|
|
|
|
|
This class forms part of L<Paws>, documenting arguments for method PutMetricAlarm in L<Paws::CloudWatch> |
|
238
|
|
|
|
|
|
|
|
|
239
|
|
|
|
|
|
|
=head1 BUGS and CONTRIBUTIONS |
|
240
|
|
|
|
|
|
|
|
|
241
|
|
|
|
|
|
|
The source code is located here: https://github.com/pplu/aws-sdk-perl |
|
242
|
|
|
|
|
|
|
|
|
243
|
|
|
|
|
|
|
Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues |
|
244
|
|
|
|
|
|
|
|
|
245
|
|
|
|
|
|
|
=cut |
|
246
|
|
|
|
|
|
|
|