File Coverage

blib/lib/Paws/CloudWatch/GetMetricStatistics.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::CloudWatch::GetMetricStatistics;
3 1     1   621 use Moose;
  1     1   3  
  1         9  
  1         452  
  1         4  
  1         6  
4             has Dimensions => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatch::Dimension]');
5             has EndTime => (is => 'ro', isa => 'Str', required => 1);
6             has ExtendedStatistics => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
7             has MetricName => (is => 'ro', isa => 'Str', required => 1);
8             has Namespace => (is => 'ro', isa => 'Str', required => 1);
9             has Period => (is => 'ro', isa => 'Int', required => 1);
10             has StartTime => (is => 'ro', isa => 'Str', required => 1);
11             has Statistics => (is => 'ro', isa => 'ArrayRef[Str|Undef]');
12             has Unit => (is => 'ro', isa => 'Str');
13              
14 1     1   6332 use MooseX::ClassAttribute;
  1     1   2  
  1         9  
  1         6108  
  1         2  
  1         8  
15              
16             class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetMetricStatistics');
17             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatch::GetMetricStatisticsOutput');
18             class_has _result_key => (isa => 'Str', is => 'ro', default => 'GetMetricStatisticsResult');
19             1;
20              
21             ### main pod documentation begin ###
22              
23             =head1 NAME
24              
25             Paws::CloudWatch::GetMetricStatistics - Arguments for method GetMetricStatistics on Paws::CloudWatch
26              
27             =head1 DESCRIPTION
28              
29             This class represents the parameters used for calling the method GetMetricStatistics on the
30             Amazon CloudWatch service. Use the attributes of this class
31             as arguments to method GetMetricStatistics.
32              
33             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetMetricStatistics.
34              
35             As an example:
36              
37             $service_obj->GetMetricStatistics(Att1 => $value1, Att2 => $value2, ...);
38              
39             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.
40              
41             =head1 ATTRIBUTES
42              
43              
44             =head2 Dimensions => ArrayRef[L<Paws::CloudWatch::Dimension>]
45              
46             The dimensions. If the metric contains multiple dimensions, you must
47             include a value for each dimension. CloudWatch treats each unique
48             combination of dimensions as a separate metric. If a specific
49             combination of dimensions was not published, you can't retrieve
50             statistics for it. You must specify the same dimensions that were used
51             when the metrics were created. For an example, see Dimension
52             Combinations in the I<Amazon CloudWatch User Guide>. For more
53             information about specifying dimensions, see Publishing Metrics in the
54             I<Amazon CloudWatch User Guide>.
55              
56              
57              
58             =head2 B<REQUIRED> EndTime => Str
59              
60             The time stamp that determines the last data point to return.
61              
62             The value specified is exclusive; results include data points up to the
63             specified time stamp. The time stamp must be in ISO 8601 UTC format
64             (for example, 2016-10-10T23:00:00Z).
65              
66              
67              
68             =head2 ExtendedStatistics => ArrayRef[Str|Undef]
69              
70             The percentile statistics. Specify values between p0.0 and p100. When
71             calling C<GetMetricStatistics>, you must specify either C<Statistics>
72             or C<ExtendedStatistics>, but not both.
73              
74              
75              
76             =head2 B<REQUIRED> MetricName => Str
77              
78             The name of the metric, with or without spaces.
79              
80              
81              
82             =head2 B<REQUIRED> Namespace => Str
83              
84             The namespace of the metric, with or without spaces.
85              
86              
87              
88             =head2 B<REQUIRED> Period => Int
89              
90             The granularity, in seconds, of the returned data points. A period can
91             be as short as one minute (60 seconds) and must be a multiple of 60.
92              
93             If the C<StartTime> parameter specifies a time stamp that is greater
94             than 15 days ago, you must specify the period as follows or no data
95             points in that time range is returned:
96              
97             =over
98              
99             =item *
100              
101             Start time between 15 and 63 days ago - Use a multiple of 300 seconds
102             (5 minutes).
103              
104             =item *
105              
106             Start time greater than 63 days ago - Use a multiple of 3600 seconds (1
107             hour).
108              
109             =back
110              
111              
112              
113              
114             =head2 B<REQUIRED> StartTime => Str
115              
116             The time stamp that determines the first data point to return. Start
117             times are evaluated relative to the time that CloudWatch receives the
118             request.
119              
120             The value specified is inclusive; results include data points with the
121             specified time stamp. The time stamp must be in ISO 8601 UTC format
122             (for example, 2016-10-03T23:00:00Z).
123              
124             CloudWatch rounds the specified time stamp as follows:
125              
126             =over
127              
128             =item *
129              
130             Start time less than 15 days ago - Round down to the nearest whole
131             minute. For example, 12:32:34 is rounded down to 12:32:00.
132              
133             =item *
134              
135             Start time between 15 and 63 days ago - Round down to the nearest
136             5-minute clock interval. For example, 12:32:34 is rounded down to
137             12:30:00.
138              
139             =item *
140              
141             Start time greater than 63 days ago - Round down to the nearest 1-hour
142             clock interval. For example, 12:32:34 is rounded down to 12:00:00.
143              
144             =back
145              
146              
147              
148              
149             =head2 Statistics => ArrayRef[Str|Undef]
150              
151             The metric statistics, other than percentile. For percentile
152             statistics, use C<ExtendedStatistics>. When calling
153             C<GetMetricStatistics>, you must specify either C<Statistics> or
154             C<ExtendedStatistics>, but not both.
155              
156              
157              
158             =head2 Unit => Str
159              
160             The unit for a given metric. Metrics may be reported in multiple units.
161             Not supplying a unit results in all units being returned. If the metric
162             only ever reports one unit, specifying a unit has no effect.
163              
164             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">
165              
166              
167             =head1 SEE ALSO
168              
169             This class forms part of L<Paws>, documenting arguments for method GetMetricStatistics in L<Paws::CloudWatch>
170              
171             =head1 BUGS and CONTRIBUTIONS
172              
173             The source code is located here: https://github.com/pplu/aws-sdk-perl
174              
175             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
176              
177             =cut
178