blib/lib/Paws/LookoutMetrics/CreateAnomalyDetector.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::LookoutMetrics::CreateAnomalyDetector;
3 use Moose;
4 has AnomalyDetectorConfig => (is => 'ro', isa => 'Paws::LookoutMetrics::AnomalyDetectorConfig', required => 1);
5 has AnomalyDetectorDescription => (is => 'ro', isa => 'Str');
6 has AnomalyDetectorName => (is => 'ro', isa => 'Str', required => 1);
7 has KmsKeyArn => (is => 'ro', isa => 'Str');
8 has Tags => (is => 'ro', isa => 'Paws::LookoutMetrics::TagMap');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateAnomalyDetector');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/CreateAnomalyDetector');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LookoutMetrics::CreateAnomalyDetectorResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::LookoutMetrics::CreateAnomalyDetector - Arguments for method CreateAnomalyDetector on L<Paws::LookoutMetrics>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method CreateAnomalyDetector on the
27 L<Amazon Lookout for Metrics|Paws::LookoutMetrics> service. Use the attributes of this class
28 as arguments to method CreateAnomalyDetector.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateAnomalyDetector.
31  
32 =head1 SYNOPSIS
33  
34 my $lookoutmetrics = Paws->service('LookoutMetrics');
35 my $CreateAnomalyDetectorResponse = $lookoutmetrics->CreateAnomalyDetector(
36 AnomalyDetectorConfig => {
37 AnomalyDetectorFrequency =>
38 'P1D', # values: P1D, PT1H, PT10M, PT5M; OPTIONAL
39 },
40 AnomalyDetectorName => 'MyAnomalyDetectorName',
41 AnomalyDetectorDescription => 'MyAnomalyDetectorDescription', # OPTIONAL
42 KmsKeyArn => 'MyKmsKeyArn', # OPTIONAL
43 Tags => {
44 'MyTagKey' => 'MyTagValue', # key: min: 1, max: 128, value: max: 256
45 }, # OPTIONAL
46 );
47  
48 # Results:
49 my $AnomalyDetectorArn = $CreateAnomalyDetectorResponse->AnomalyDetectorArn;
50  
51 # Returns a L<Paws::LookoutMetrics::CreateAnomalyDetectorResponse> object.
52  
53 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.
54 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics/CreateAnomalyDetector>
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 B<REQUIRED> AnomalyDetectorConfig => L<Paws::LookoutMetrics::AnomalyDetectorConfig>
60  
61 Contains information about the configuration of the anomaly detector.
62  
63  
64  
65 =head2 AnomalyDetectorDescription => Str
66  
67 A description of the detector.
68  
69  
70  
71 =head2 B<REQUIRED> AnomalyDetectorName => Str
72  
73 The name of the detector.
74  
75  
76  
77 =head2 KmsKeyArn => Str
78  
79 The ARN of the KMS key to use to encrypt your data.
80  
81  
82  
83 =head2 Tags => L<Paws::LookoutMetrics::TagMap>
84  
85 A list of tags
86 (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
87 to apply to the anomaly detector.
88  
89  
90  
91  
92 =head1 SEE ALSO
93  
94 This class forms part of L<Paws>, documenting arguments for method CreateAnomalyDetector in L<Paws::LookoutMetrics>
95  
96 =head1 BUGS and CONTRIBUTIONS
97  
98 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
99  
100 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
101  
102 =cut
103