blib/lib/Paws/TimestreamWrite/Record.pm untested

filter: Statementstmt 0.0% 0 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 11 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::TimestreamWrite::Record;
3 use Moose;
4 has Dimensions => (is => 'ro', isa => 'ArrayRef[Paws::TimestreamWrite::Dimension]');
5 has MeasureName => (is => 'ro', isa => 'Str');
6 has MeasureValue => (is => 'ro', isa => 'Str');
7 has MeasureValueType => (is => 'ro', isa => 'Str');
8 has Time => (is => 'ro', isa => 'Str');
9 has TimeUnit => (is => 'ro', isa => 'Str');
10 has Version => (is => 'ro', isa => 'Int');
11  
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::TimestreamWrite::Record
19  
20 =head1 USAGE
21  
22 This class represents one of two things:
23  
24 =head3 Arguments in a call to a service
25  
26 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
27 Each attribute should be used as a named argument in the calls that expect this type of object.
28  
29 As an example, if Att1 is expected to be a Paws::TimestreamWrite::Record object:
30  
31 $service_obj->Method(Att1 => { Dimensions => $value, ..., Version => $value });
32  
33 =head3 Results returned from an API call
34  
35 Use accessors for each attribute. If Att1 is expected to be an Paws::TimestreamWrite::Record object:
36  
37 $result = $service_obj->Method(...);
38 $result->Att1->Dimensions
39  
40 =head1 DESCRIPTION
41  
42 Record represents a time series data point being written into
43 Timestream. Each record contains an array of dimensions. Dimensions
44 represent the meta data attributes of a time series data point such as
45 the instance name or availability zone of an EC2 instance. A record
46 also contains the measure name which is the name of the measure being
47 collected for example the CPU utilization of an EC2 instance. A record
48 also contains the measure value and the value type which is the data
49 type of the measure value. In addition, the record contains the
50 timestamp when the measure was collected that the timestamp unit which
51 represents the granularity of the timestamp.
52  
53 =head1 ATTRIBUTES
54  
55  
56 =head2 Dimensions => ArrayRef[L<Paws::TimestreamWrite::Dimension>]
57  
58 Contains the list of dimensions for time series data points.
59  
60  
61 =head2 MeasureName => Str
62  
63 Measure represents the data attribute of the time series. For example,
64 the CPU utilization of an EC2 instance or the RPM of a wind turbine are
65 measures.
66  
67  
68 =head2 MeasureValue => Str
69  
70 Contains the measure value for the time series data point.
71  
72  
73 =head2 MeasureValueType => Str
74  
75 Contains the data type of the measure value for the time series data
76 point.
77  
78  
79 =head2 Time => Str
80  
81 Contains the time at which the measure value for the data point was
82 collected. The time value plus the unit provides the time elapsed since
83 the epoch. For example, if the time value is C<12345> and the unit is
84 C<ms>, then C<12345 ms> have elapsed since the epoch.
85  
86  
87 =head2 TimeUnit => Str
88  
89 The granularity of the timestamp unit. It indicates if the time value
90 is in seconds, milliseconds, nanoseconds or other supported values.
91  
92  
93 =head2 Version => Int
94  
95 64-bit attribute used for record updates. Write requests for duplicate
96 data with a higher version number will update the existing measure
97 value and version. In cases where the measure value is the same,
98 C<Version> will still be updated . Default value is to 1.
99  
100  
101  
102 =head1 SEE ALSO
103  
104 This class forms part of L<Paws>, describing an object used in L<Paws::TimestreamWrite>
105  
106 =head1 BUGS and CONTRIBUTIONS
107  
108 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
109  
110 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
111  
112 =cut
113