File Coverage

blib/lib/Paws/Lightsail/GetInstanceMetricData.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::Lightsail::GetInstanceMetricData;
3 1     1   440 use Moose;
  1         3  
  1         6  
4             has EndTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'endTime' , required => 1);
5             has InstanceName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceName' , required => 1);
6             has MetricName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'metricName' , required => 1);
7             has Period => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'period' , required => 1);
8             has StartTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'startTime' , required => 1);
9             has Statistics => (is => 'ro', isa => 'ArrayRef[Str|Undef]', traits => ['NameInRequest'], request_name => 'statistics' , required => 1);
10             has Unit => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'unit' , required => 1);
11              
12 1     1   6195 use MooseX::ClassAttribute;
  1         4  
  1         8  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetInstanceMetricData');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Lightsail::GetInstanceMetricDataResult');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::Lightsail::GetInstanceMetricData - Arguments for method GetInstanceMetricData on Paws::Lightsail
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method GetInstanceMetricData on the
28             Amazon Lightsail service. Use the attributes of this class
29             as arguments to method GetInstanceMetricData.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetInstanceMetricData.
32              
33             As an example:
34              
35             $service_obj->GetInstanceMetricData(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 B<REQUIRED> EndTime => Str
43              
44             The end time of the time period.
45              
46              
47              
48             =head2 B<REQUIRED> InstanceName => Str
49              
50             The name of the instance for which you want to get metrics data.
51              
52              
53              
54             =head2 B<REQUIRED> MetricName => Str
55              
56             The metric name to get data about.
57              
58             Valid values are: C<"CPUUtilization">, C<"NetworkIn">, C<"NetworkOut">, C<"StatusCheckFailed">, C<"StatusCheckFailed_Instance">, C<"StatusCheckFailed_System">
59              
60             =head2 B<REQUIRED> Period => Int
61              
62             The time period for which you are requesting data.
63              
64              
65              
66             =head2 B<REQUIRED> StartTime => Str
67              
68             The start time of the time period.
69              
70              
71              
72             =head2 B<REQUIRED> Statistics => ArrayRef[Str|Undef]
73              
74             The instance statistics.
75              
76              
77              
78             =head2 B<REQUIRED> Unit => Str
79              
80             The unit. The list of valid values is below.
81              
82             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">
83              
84              
85             =head1 SEE ALSO
86              
87             This class forms part of L<Paws>, documenting arguments for method GetInstanceMetricData in L<Paws::Lightsail>
88              
89             =head1 BUGS and CONTRIBUTIONS
90              
91             The source code is located here: https://github.com/pplu/aws-sdk-perl
92              
93             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
94              
95             =cut
96