blib/lib/Paws/ComputeOptimizer/GetEC2RecommendationProjectedMetrics.pm untested

filter: Statementstmt 0.0% 0 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 21 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ComputeOptimizer::GetEC2RecommendationProjectedMetrics;
3 use Moose;
4 has EndTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'endTime' , required => 1);
5 has InstanceArn => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'instanceArn' , required => 1);
6 has Period => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'period' , required => 1);
7 has StartTime => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'startTime' , required => 1);
8 has Stat => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'stat' , required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetEC2RecommendationProjectedMetrics');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ComputeOptimizer::GetEC2RecommendationProjectedMetricsResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::ComputeOptimizer::GetEC2RecommendationProjectedMetrics - Arguments for method GetEC2RecommendationProjectedMetrics on L<Paws::ComputeOptimizer>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method GetEC2RecommendationProjectedMetrics on the
26 L<AWS Compute Optimizer|Paws::ComputeOptimizer> service. Use the attributes of this class
27 as arguments to method GetEC2RecommendationProjectedMetrics.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetEC2RecommendationProjectedMetrics.
30  
31 =head1 SYNOPSIS
32  
33 my $compute-optimizer = Paws->service('ComputeOptimizer');
34 my $GetEC2RecommendationProjectedMetricsResponse =
35 $compute -optimizer->GetEC2RecommendationProjectedMetrics(
36 EndTime => '1970-01-01T01:00:00',
37 InstanceArn => 'MyInstanceArn',
38 Period => 1,
39 StartTime => '1970-01-01T01:00:00',
40 Stat => 'Maximum',
41  
42 );
43  
44 # Results:
45 my $RecommendedOptionProjectedMetrics =
46 $GetEC2RecommendationProjectedMetricsResponse
47 ->RecommendedOptionProjectedMetrics;
48  
49 # Returns a L<Paws::ComputeOptimizer::GetEC2RecommendationProjectedMetricsResponse> object.
50  
51 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.
52 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/compute-optimizer/GetEC2RecommendationProjectedMetrics>
53  
54 =head1 ATTRIBUTES
55  
56  
57 =head2 B<REQUIRED> EndTime => Str
58  
59 The time stamp of the last projected metrics data point to return.
60  
61  
62  
63 =head2 B<REQUIRED> InstanceArn => Str
64  
65 The Amazon Resource Name (ARN) of the instances for which to return
66 recommendation projected metrics.
67  
68  
69  
70 =head2 B<REQUIRED> Period => Int
71  
72 The granularity, in seconds, of the projected metrics data points.
73  
74  
75  
76 =head2 B<REQUIRED> StartTime => Str
77  
78 The time stamp of the first projected metrics data point to return.
79  
80  
81  
82 =head2 B<REQUIRED> Stat => Str
83  
84 The statistic of the projected metrics.
85  
86 Valid values are: C<"Maximum">, C<"Average">
87  
88  
89 =head1 SEE ALSO
90  
91 This class forms part of L<Paws>, documenting arguments for method GetEC2RecommendationProjectedMetrics in L<Paws::ComputeOptimizer>
92  
93 =head1 BUGS and CONTRIBUTIONS
94  
95 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
96  
97 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
98  
99 =cut
100