blib/lib/Paws/CloudWatch/PutMetricData.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 13 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudWatch::PutMetricData;
3 use Moose;
4 has MetricData => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatch::MetricDatum]', required => 1);
5 has Namespace => (is => 'ro', isa => 'Str', required => 1);
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutMetricData');
10 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
11 class_has _result_key => (isa => 'Str', is => 'ro');
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::CloudWatch::PutMetricData - Arguments for method PutMetricData on L<Paws::CloudWatch>
19  
20 =head1 DESCRIPTION
21  
22 This class represents the parameters used for calling the method PutMetricData on the
23 L<Amazon CloudWatch|Paws::CloudWatch> service. Use the attributes of this class
24 as arguments to method PutMetricData.
25  
26 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutMetricData.
27  
28 =head1 SYNOPSIS
29  
30 my $monitoring = Paws->service('CloudWatch');
31 $monitoring->PutMetricData(
32 MetricData => [
33 {
34 MetricName => 'MyMetricName', # min: 1, max: 255
35 Counts => [ 1, ... ], # OPTIONAL
36 Dimensions => [
37 {
38 Name => 'MyDimensionName', # min: 1, max: 255
39 Value => 'MyDimensionValue', # min: 1, max: 255
40  
41 },
42 ...
43 ], # max: 10; OPTIONAL
44 StatisticValues => {
45 Maximum => 1,
46 Minimum => 1,
47 SampleCount => 1,
48 Sum => 1,
49  
50 }, # OPTIONAL
51 StorageResolution => 1, # min: 1; OPTIONAL
52 Timestamp => '1970-01-01T01:00:00', # OPTIONAL
53 Unit => 'Seconds'
54 , # values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None; OPTIONAL
55 Value => 1,
56 Values => [ 1, ... ], # OPTIONAL
57 },
58 ...
59 ],
60 Namespace => 'MyNamespace',
61  
62 );
63  
64 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.
65 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/monitoring/PutMetricData>
66  
67 =head1 ATTRIBUTES
68  
69  
70 =head2 B<REQUIRED> MetricData => ArrayRef[L<Paws::CloudWatch::MetricDatum>]
71  
72 The data for the metric. The array can include no more than 20 metrics
73 per call.
74  
75  
76  
77 =head2 B<REQUIRED> Namespace => Str
78  
79 The namespace for the metric data.
80  
81 To avoid conflicts with AWS service namespaces, you should not specify
82 a namespace that begins with C<AWS/>
83  
84  
85  
86  
87 =head1 SEE ALSO
88  
89 This class forms part of L<Paws>, documenting arguments for method PutMetricData in L<Paws::CloudWatch>
90  
91 =head1 BUGS and CONTRIBUTIONS
92  
93 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
94  
95 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
96  
97 =cut
98