blib/lib/Paws/CostExplorer/GetAnomalies.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CostExplorer::GetAnomalies;
3 use Moose;
4 has DateInterval => (is => 'ro', isa => 'Paws::CostExplorer::AnomalyDateInterval', required => 1);
5 has Feedback => (is => 'ro', isa => 'Str');
6 has MaxResults => (is => 'ro', isa => 'Int');
7 has MonitorArn => (is => 'ro', isa => 'Str');
8 has NextPageToken => (is => 'ro', isa => 'Str');
9 has TotalImpact => (is => 'ro', isa => 'Paws::CostExplorer::TotalImpactFilter');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetAnomalies');
14 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CostExplorer::GetAnomaliesResponse');
15 class_has _result_key => (isa => 'Str', is => 'ro');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::CostExplorer::GetAnomalies - Arguments for method GetAnomalies on L<Paws::CostExplorer>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method GetAnomalies on the
27 L<AWS Cost Explorer Service|Paws::CostExplorer> service. Use the attributes of this class
28 as arguments to method GetAnomalies.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetAnomalies.
31  
32 =head1 SYNOPSIS
33  
34 my $ce = Paws->service('CostExplorer');
35 my $GetAnomaliesResponse = $ce->GetAnomalies(
36 DateInterval => {
37 StartDate => 'MyYearMonthDay', # max: 40
38 EndDate => 'MyYearMonthDay', # max: 40
39 },
40 Feedback => 'YES', # OPTIONAL
41 MaxResults => 1, # OPTIONAL
42 MonitorArn => 'MyGenericString', # OPTIONAL
43 NextPageToken => 'MyNextPageToken', # OPTIONAL
44 TotalImpact => {
45 NumericOperator => 'EQUAL'
46 , # values: EQUAL, GREATER_THAN_OR_EQUAL, LESS_THAN_OR_EQUAL, GREATER_THAN, LESS_THAN, BETWEEN
47 StartValue => 1,
48 EndValue => 1,
49 }, # OPTIONAL
50 );
51  
52 # Results:
53 my $Anomalies = $GetAnomaliesResponse->Anomalies;
54 my $NextPageToken = $GetAnomaliesResponse->NextPageToken;
55  
56 # Returns a L<Paws::CostExplorer::GetAnomaliesResponse> object.
57  
58 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.
59 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/ce/GetAnomalies>
60  
61 =head1 ATTRIBUTES
62  
63  
64 =head2 B<REQUIRED> DateInterval => L<Paws::CostExplorer::AnomalyDateInterval>
65  
66 Assigns the start and end dates for retrieving cost anomalies. The
67 returned anomaly object will have an C<AnomalyEndDate> in the specified
68 time range.
69  
70  
71  
72 =head2 Feedback => Str
73  
74 Filters anomaly results by the feedback field on the anomaly object.
75  
76 Valid values are: C<"YES">, C<"NO">, C<"PLANNED_ACTIVITY">
77  
78 =head2 MaxResults => Int
79  
80 The number of entries a paginated response contains.
81  
82  
83  
84 =head2 MonitorArn => Str
85  
86 Retrieves all of the cost anomalies detected for a specific cost
87 anomaly monitor Amazon Resource Name (ARN).
88  
89  
90  
91 =head2 NextPageToken => Str
92  
93 The token to retrieve the next set of results. AWS provides the token
94 when the response from a previous call has more results than the
95 maximum page size.
96  
97  
98  
99 =head2 TotalImpact => L<Paws::CostExplorer::TotalImpactFilter>
100  
101 Filters anomaly results by the total impact field on the anomaly
102 object. For example, you can filter anomalies C<GREATER_THAN 200.00> to
103 retrieve anomalies, with an estimated dollar impact greater than 200.
104  
105  
106  
107  
108 =head1 SEE ALSO
109  
110 This class forms part of L<Paws>, documenting arguments for method GetAnomalies in L<Paws::CostExplorer>
111  
112 =head1 BUGS and CONTRIBUTIONS
113  
114 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
115  
116 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
117  
118 =cut
119