File Coverage

blib/lib/Paws/CloudWatch/DescribeAlarmsForMetric.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::CloudWatch::DescribeAlarmsForMetric;
3 1     1   330 use Moose;
  1         3  
  1         7  
4             has Dimensions => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatch::Dimension]');
5             has ExtendedStatistic => (is => 'ro', isa => 'Str');
6             has MetricName => (is => 'ro', isa => 'Str', required => 1);
7             has Namespace => (is => 'ro', isa => 'Str', required => 1);
8             has Period => (is => 'ro', isa => 'Int');
9             has Statistic => (is => 'ro', isa => 'Str');
10             has Unit => (is => 'ro', isa => 'Str');
11              
12 1     1   5880 use MooseX::ClassAttribute;
  1         2  
  1         7  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'DescribeAlarmsForMetric');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatch::DescribeAlarmsForMetricOutput');
16             class_has _result_key => (isa => 'Str', is => 'ro', default => 'DescribeAlarmsForMetricResult');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::CloudWatch::DescribeAlarmsForMetric - Arguments for method DescribeAlarmsForMetric on Paws::CloudWatch
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method DescribeAlarmsForMetric on the
28             Amazon CloudWatch service. Use the attributes of this class
29             as arguments to method DescribeAlarmsForMetric.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to DescribeAlarmsForMetric.
32              
33             As an example:
34              
35             $service_obj->DescribeAlarmsForMetric(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 Dimensions => ArrayRef[L<Paws::CloudWatch::Dimension>]
43              
44             The dimensions associated with the metric. If the metric has any
45             associated dimensions, you must specify them in order for the call to
46             succeed.
47              
48              
49              
50             =head2 ExtendedStatistic => Str
51              
52             The percentile statistic for the metric. Specify a value between p0.0
53             and p100.
54              
55              
56              
57             =head2 B<REQUIRED> MetricName => Str
58              
59             The name of the metric.
60              
61              
62              
63             =head2 B<REQUIRED> Namespace => Str
64              
65             The namespace of the metric.
66              
67              
68              
69             =head2 Period => Int
70              
71             The period, in seconds, over which the statistic is applied.
72              
73              
74              
75             =head2 Statistic => Str
76              
77             The statistic for the metric, other than percentiles. For percentile
78             statistics, use C<ExtendedStatistics>.
79              
80             Valid values are: C<"SampleCount">, C<"Average">, C<"Sum">, C<"Minimum">, C<"Maximum">
81              
82             =head2 Unit => Str
83              
84             The unit for the metric.
85              
86             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">
87              
88              
89             =head1 SEE ALSO
90              
91             This class forms part of L<Paws>, documenting arguments for method DescribeAlarmsForMetric in L<Paws::CloudWatch>
92              
93             =head1 BUGS and CONTRIBUTIONS
94              
95             The source code is located here: https://github.com/pplu/aws-sdk-perl
96              
97             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
98              
99             =cut
100