blib/lib/Paws/LookoutMetrics.pm untested

filter: Statementstmt 0.0% 0 / 88 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 31 Podpod 0.0% 0 / 30 totaltotal 0.0% 0 / 149 CC 1 SCAR 6.9
CC
1
Cov
0%
service
2.0
signing_name
2.0
version
2.0
CRAP 2.0
1 package Paws::LookoutMetrics;
2 use Moose;
3 sub service { 'lookoutmetrics' }
4 sub signing_name { 'lookoutmetrics' }
5 sub version { '2017-07-25' }
6 sub flattened_arrays { 0 }
7 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
8 has retry => (is => 'ro', isa => 'HashRef', default => sub {
9 { base => 'rand', type => 'exponential', growth_factor => 2 }
10 });
11 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
12 ] });
13  
14 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::RestJsonCaller';
15  
16
17 sub ActivateAnomalyDetector {
18 my $self = shift;
19 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::ActivateAnomalyDetector', @_);
20 return $self->caller->do_call($self, $call_object);
21 }
22 sub BackTestAnomalyDetector {
23 my $self = shift;
24 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::BackTestAnomalyDetector', @_);
25 return $self->caller->do_call($self, $call_object);
26 }
27 sub CreateAlert {
28 my $self = shift;
29 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::CreateAlert', @_);
30 return $self->caller->do_call($self, $call_object);
31 }
32 sub CreateAnomalyDetector {
33 my $self = shift;
34 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::CreateAnomalyDetector', @_);
35 return $self->caller->do_call($self, $call_object);
36 }
37 sub CreateMetricSet {
38 my $self = shift;
39 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::CreateMetricSet', @_);
40 return $self->caller->do_call($self, $call_object);
41 }
42 sub DeleteAlert {
43 my $self = shift;
44 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::DeleteAlert', @_);
45 return $self->caller->do_call($self, $call_object);
46 }
47 sub DeleteAnomalyDetector {
48 my $self = shift;
49 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::DeleteAnomalyDetector', @_);
50 return $self->caller->do_call($self, $call_object);
51 }
52 sub DescribeAlert {
53 my $self = shift;
54 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::DescribeAlert', @_);
55 return $self->caller->do_call($self, $call_object);
56 }
57 sub DescribeAnomalyDetectionExecutions {
58 my $self = shift;
59 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::DescribeAnomalyDetectionExecutions', @_);
60 return $self->caller->do_call($self, $call_object);
61 }
62 sub DescribeAnomalyDetector {
63 my $self = shift;
64 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::DescribeAnomalyDetector', @_);
65 return $self->caller->do_call($self, $call_object);
66 }
67 sub DescribeMetricSet {
68 my $self = shift;
69 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::DescribeMetricSet', @_);
70 return $self->caller->do_call($self, $call_object);
71 }
72 sub GetAnomalyGroup {
73 my $self = shift;
74 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::GetAnomalyGroup', @_);
75 return $self->caller->do_call($self, $call_object);
76 }
77 sub GetFeedback {
78 my $self = shift;
79 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::GetFeedback', @_);
80 return $self->caller->do_call($self, $call_object);
81 }
82 sub GetSampleData {
83 my $self = shift;
84 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::GetSampleData', @_);
85 return $self->caller->do_call($self, $call_object);
86 }
87 sub ListAlerts {
88 my $self = shift;
89 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::ListAlerts', @_);
90 return $self->caller->do_call($self, $call_object);
91 }
92 sub ListAnomalyDetectors {
93 my $self = shift;
94 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::ListAnomalyDetectors', @_);
95 return $self->caller->do_call($self, $call_object);
96 }
97 sub ListAnomalyGroupSummaries {
98 my $self = shift;
99 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::ListAnomalyGroupSummaries', @_);
100 return $self->caller->do_call($self, $call_object);
101 }
102 sub ListAnomalyGroupTimeSeries {
103 my $self = shift;
104 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::ListAnomalyGroupTimeSeries', @_);
105 return $self->caller->do_call($self, $call_object);
106 }
107 sub ListMetricSets {
108 my $self = shift;
109 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::ListMetricSets', @_);
110 return $self->caller->do_call($self, $call_object);
111 }
112 sub ListTagsForResource {
113 my $self = shift;
114 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::ListTagsForResource', @_);
115 return $self->caller->do_call($self, $call_object);
116 }
117 sub PutFeedback {
118 my $self = shift;
119 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::PutFeedback', @_);
120 return $self->caller->do_call($self, $call_object);
121 }
122 sub TagResource {
123 my $self = shift;
124 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::TagResource', @_);
125 return $self->caller->do_call($self, $call_object);
126 }
127 sub UntagResource {
128 my $self = shift;
129 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::UntagResource', @_);
130 return $self->caller->do_call($self, $call_object);
131 }
132 sub UpdateAnomalyDetector {
133 my $self = shift;
134 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::UpdateAnomalyDetector', @_);
135 return $self->caller->do_call($self, $call_object);
136 }
137 sub UpdateMetricSet {
138 my $self = shift;
139 my $call_object = $self->new_with_coercions('Paws::LookoutMetrics::UpdateMetricSet', @_);
140 return $self->caller->do_call($self, $call_object);
141 }
142
143  
144  
145 sub operations { qw/ActivateAnomalyDetector BackTestAnomalyDetector CreateAlert CreateAnomalyDetector CreateMetricSet DeleteAlert DeleteAnomalyDetector DescribeAlert DescribeAnomalyDetectionExecutions DescribeAnomalyDetector DescribeMetricSet GetAnomalyGroup GetFeedback GetSampleData ListAlerts ListAnomalyDetectors ListAnomalyGroupSummaries ListAnomalyGroupTimeSeries ListMetricSets ListTagsForResource PutFeedback TagResource UntagResource UpdateAnomalyDetector UpdateMetricSet / }
146  
147 1;
148  
149 ### main pod documentation begin ###
150  
151 =head1 NAME
152  
153 Paws::LookoutMetrics - Perl Interface to AWS Amazon Lookout for Metrics
154  
155 =head1 SYNOPSIS
156  
157 use Paws;
158  
159 my $obj = Paws->service('LookoutMetrics');
160 my $res = $obj->Method(
161 Arg1 => $val1,
162 Arg2 => [ 'V1', 'V2' ],
163 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
164 # of the arguments type
165 Arg3 => { Att1 => 'Val1' },
166 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
167 # the constructor of the arguments type
168 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
169 );
170  
171 =head1 DESCRIPTION
172  
173 This is the I<Amazon Lookout for Metrics API Reference>. For an
174 introduction to the service with tutorials for getting started, visit
175 Amazon Lookout for Metrics Developer Guide
176 (https://docs.aws.amazon.com/lookoutmetrics/latest/dev).
177  
178 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/lookoutmetrics-2017-07-25>
179  
180  
181 =head1 METHODS
182  
183 =head2 ActivateAnomalyDetector
184  
185 =over
186  
187 =item AnomalyDetectorArn => Str
188  
189  
190 =back
191  
192 Each argument is described in detail in: L<Paws::LookoutMetrics::ActivateAnomalyDetector>
193  
194 Returns: a L<Paws::LookoutMetrics::ActivateAnomalyDetectorResponse> instance
195  
196 Activates an anomaly detector.
197  
198  
199 =head2 BackTestAnomalyDetector
200  
201 =over
202  
203 =item AnomalyDetectorArn => Str
204  
205  
206 =back
207  
208 Each argument is described in detail in: L<Paws::LookoutMetrics::BackTestAnomalyDetector>
209  
210 Returns: a L<Paws::LookoutMetrics::BackTestAnomalyDetectorResponse> instance
211  
212 Runs a backtest for anomaly detection for the specified resource.
213  
214  
215 =head2 CreateAlert
216  
217 =over
218  
219 =item Action => L<Paws::LookoutMetrics::Action>
220  
221 =item AlertName => Str
222  
223 =item AlertSensitivityThreshold => Int
224  
225 =item AnomalyDetectorArn => Str
226  
227 =item [AlertDescription => Str]
228  
229 =item [Tags => L<Paws::LookoutMetrics::TagMap>]
230  
231  
232 =back
233  
234 Each argument is described in detail in: L<Paws::LookoutMetrics::CreateAlert>
235  
236 Returns: a L<Paws::LookoutMetrics::CreateAlertResponse> instance
237  
238 Creates an alert for an anomaly detector.
239  
240  
241 =head2 CreateAnomalyDetector
242  
243 =over
244  
245 =item AnomalyDetectorConfig => L<Paws::LookoutMetrics::AnomalyDetectorConfig>
246  
247 =item AnomalyDetectorName => Str
248  
249 =item [AnomalyDetectorDescription => Str]
250  
251 =item [KmsKeyArn => Str]
252  
253 =item [Tags => L<Paws::LookoutMetrics::TagMap>]
254  
255  
256 =back
257  
258 Each argument is described in detail in: L<Paws::LookoutMetrics::CreateAnomalyDetector>
259  
260 Returns: a L<Paws::LookoutMetrics::CreateAnomalyDetectorResponse> instance
261  
262 Creates an anomaly detector.
263  
264  
265 =head2 CreateMetricSet
266  
267 =over
268  
269 =item AnomalyDetectorArn => Str
270  
271 =item MetricList => ArrayRef[L<Paws::LookoutMetrics::Metric>]
272  
273 =item MetricSetName => Str
274  
275 =item MetricSource => L<Paws::LookoutMetrics::MetricSource>
276  
277 =item [DimensionList => ArrayRef[Str|Undef]]
278  
279 =item [MetricSetDescription => Str]
280  
281 =item [MetricSetFrequency => Str]
282  
283 =item [Offset => Int]
284  
285 =item [Tags => L<Paws::LookoutMetrics::TagMap>]
286  
287 =item [TimestampColumn => L<Paws::LookoutMetrics::TimestampColumn>]
288  
289 =item [Timezone => Str]
290  
291  
292 =back
293  
294 Each argument is described in detail in: L<Paws::LookoutMetrics::CreateMetricSet>
295  
296 Returns: a L<Paws::LookoutMetrics::CreateMetricSetResponse> instance
297  
298 Creates a dataset.
299  
300  
301 =head2 DeleteAlert
302  
303 =over
304  
305 =item AlertArn => Str
306  
307  
308 =back
309  
310 Each argument is described in detail in: L<Paws::LookoutMetrics::DeleteAlert>
311  
312 Returns: a L<Paws::LookoutMetrics::DeleteAlertResponse> instance
313  
314 Deletes an alert.
315  
316  
317 =head2 DeleteAnomalyDetector
318  
319 =over
320  
321 =item AnomalyDetectorArn => Str
322  
323  
324 =back
325  
326 Each argument is described in detail in: L<Paws::LookoutMetrics::DeleteAnomalyDetector>
327  
328 Returns: a L<Paws::LookoutMetrics::DeleteAnomalyDetectorResponse> instance
329  
330 Deletes a detector. Deleting an anomaly detector will delete all of its
331 corresponding resources including any configured datasets and alerts.
332  
333  
334 =head2 DescribeAlert
335  
336 =over
337  
338 =item AlertArn => Str
339  
340  
341 =back
342  
343 Each argument is described in detail in: L<Paws::LookoutMetrics::DescribeAlert>
344  
345 Returns: a L<Paws::LookoutMetrics::DescribeAlertResponse> instance
346  
347 Describes an alert.
348  
349 Amazon Lookout for Metrics API actions are eventually consistent. If
350 you do a read operation on a resource immediately after creating or
351 modifying it, use retries to allow time for the write operation to
352 complete.
353  
354  
355 =head2 DescribeAnomalyDetectionExecutions
356  
357 =over
358  
359 =item AnomalyDetectorArn => Str
360  
361 =item [MaxResults => Int]
362  
363 =item [NextToken => Str]
364  
365 =item [Timestamp => Str]
366  
367  
368 =back
369  
370 Each argument is described in detail in: L<Paws::LookoutMetrics::DescribeAnomalyDetectionExecutions>
371  
372 Returns: a L<Paws::LookoutMetrics::DescribeAnomalyDetectionExecutionsResponse> instance
373  
374 Returns information about the status of the specified anomaly detection
375 jobs.
376  
377  
378 =head2 DescribeAnomalyDetector
379  
380 =over
381  
382 =item AnomalyDetectorArn => Str
383  
384  
385 =back
386  
387 Each argument is described in detail in: L<Paws::LookoutMetrics::DescribeAnomalyDetector>
388  
389 Returns: a L<Paws::LookoutMetrics::DescribeAnomalyDetectorResponse> instance
390  
391 Describes a detector.
392  
393 Amazon Lookout for Metrics API actions are eventually consistent. If
394 you do a read operation on a resource immediately after creating or
395 modifying it, use retries to allow time for the write operation to
396 complete.
397  
398  
399 =head2 DescribeMetricSet
400  
401 =over
402  
403 =item MetricSetArn => Str
404  
405  
406 =back
407  
408 Each argument is described in detail in: L<Paws::LookoutMetrics::DescribeMetricSet>
409  
410 Returns: a L<Paws::LookoutMetrics::DescribeMetricSetResponse> instance
411  
412 Describes a dataset.
413  
414 Amazon Lookout for Metrics API actions are eventually consistent. If
415 you do a read operation on a resource immediately after creating or
416 modifying it, use retries to allow time for the write operation to
417 complete.
418  
419  
420 =head2 GetAnomalyGroup
421  
422 =over
423  
424 =item AnomalyDetectorArn => Str
425  
426 =item AnomalyGroupId => Str
427  
428  
429 =back
430  
431 Each argument is described in detail in: L<Paws::LookoutMetrics::GetAnomalyGroup>
432  
433 Returns: a L<Paws::LookoutMetrics::GetAnomalyGroupResponse> instance
434  
435 Returns details about a group of anomalous metrics.
436  
437  
438 =head2 GetFeedback
439  
440 =over
441  
442 =item AnomalyDetectorArn => Str
443  
444 =item AnomalyGroupTimeSeriesFeedback => L<Paws::LookoutMetrics::AnomalyGroupTimeSeries>
445  
446 =item [MaxResults => Int]
447  
448 =item [NextToken => Str]
449  
450  
451 =back
452  
453 Each argument is described in detail in: L<Paws::LookoutMetrics::GetFeedback>
454  
455 Returns: a L<Paws::LookoutMetrics::GetFeedbackResponse> instance
456  
457 Get feedback for an anomaly group.
458  
459  
460 =head2 GetSampleData
461  
462 =over
463  
464 =item [S3SourceConfig => L<Paws::LookoutMetrics::SampleDataS3SourceConfig>]
465  
466  
467 =back
468  
469 Each argument is described in detail in: L<Paws::LookoutMetrics::GetSampleData>
470  
471 Returns: a L<Paws::LookoutMetrics::GetSampleDataResponse> instance
472  
473 Returns a selection of sample records from an Amazon S3 datasource.
474  
475  
476 =head2 ListAlerts
477  
478 =over
479  
480 =item [AnomalyDetectorArn => Str]
481  
482 =item [MaxResults => Int]
483  
484 =item [NextToken => Str]
485  
486  
487 =back
488  
489 Each argument is described in detail in: L<Paws::LookoutMetrics::ListAlerts>
490  
491 Returns: a L<Paws::LookoutMetrics::ListAlertsResponse> instance
492  
493 Lists the alerts attached to a detector.
494  
495 Amazon Lookout for Metrics API actions are eventually consistent. If
496 you do a read operation on a resource immediately after creating or
497 modifying it, use retries to allow time for the write operation to
498 complete.
499  
500  
501 =head2 ListAnomalyDetectors
502  
503 =over
504  
505 =item [MaxResults => Int]
506  
507 =item [NextToken => Str]
508  
509  
510 =back
511  
512 Each argument is described in detail in: L<Paws::LookoutMetrics::ListAnomalyDetectors>
513  
514 Returns: a L<Paws::LookoutMetrics::ListAnomalyDetectorsResponse> instance
515  
516 Lists the detectors in the current AWS Region.
517  
518 Amazon Lookout for Metrics API actions are eventually consistent. If
519 you do a read operation on a resource immediately after creating or
520 modifying it, use retries to allow time for the write operation to
521 complete.
522  
523  
524 =head2 ListAnomalyGroupSummaries
525  
526 =over
527  
528 =item AnomalyDetectorArn => Str
529  
530 =item SensitivityThreshold => Int
531  
532 =item [MaxResults => Int]
533  
534 =item [NextToken => Str]
535  
536  
537 =back
538  
539 Each argument is described in detail in: L<Paws::LookoutMetrics::ListAnomalyGroupSummaries>
540  
541 Returns: a L<Paws::LookoutMetrics::ListAnomalyGroupSummariesResponse> instance
542  
543 Returns a list of anomaly groups.
544  
545  
546 =head2 ListAnomalyGroupTimeSeries
547  
548 =over
549  
550 =item AnomalyDetectorArn => Str
551  
552 =item AnomalyGroupId => Str
553  
554 =item MetricName => Str
555  
556 =item [MaxResults => Int]
557  
558 =item [NextToken => Str]
559  
560  
561 =back
562  
563 Each argument is described in detail in: L<Paws::LookoutMetrics::ListAnomalyGroupTimeSeries>
564  
565 Returns: a L<Paws::LookoutMetrics::ListAnomalyGroupTimeSeriesResponse> instance
566  
567 Gets a list of anomalous metrics for a measure in an anomaly group.
568  
569  
570 =head2 ListMetricSets
571  
572 =over
573  
574 =item [AnomalyDetectorArn => Str]
575  
576 =item [MaxResults => Int]
577  
578 =item [NextToken => Str]
579  
580  
581 =back
582  
583 Each argument is described in detail in: L<Paws::LookoutMetrics::ListMetricSets>
584  
585 Returns: a L<Paws::LookoutMetrics::ListMetricSetsResponse> instance
586  
587 Lists the datasets in the current AWS Region.
588  
589 Amazon Lookout for Metrics API actions are eventually consistent. If
590 you do a read operation on a resource immediately after creating or
591 modifying it, use retries to allow time for the write operation to
592 complete.
593  
594  
595 =head2 ListTagsForResource
596  
597 =over
598  
599 =item ResourceArn => Str
600  
601  
602 =back
603  
604 Each argument is described in detail in: L<Paws::LookoutMetrics::ListTagsForResource>
605  
606 Returns: a L<Paws::LookoutMetrics::ListTagsForResourceResponse> instance
607  
608 Gets a list of tags
609 (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
610 for a detector, dataset, or alert.
611  
612  
613 =head2 PutFeedback
614  
615 =over
616  
617 =item AnomalyDetectorArn => Str
618  
619 =item AnomalyGroupTimeSeriesFeedback => L<Paws::LookoutMetrics::AnomalyGroupTimeSeriesFeedback>
620  
621  
622 =back
623  
624 Each argument is described in detail in: L<Paws::LookoutMetrics::PutFeedback>
625  
626 Returns: a L<Paws::LookoutMetrics::PutFeedbackResponse> instance
627  
628 Add feedback for an anomalous metric.
629  
630  
631 =head2 TagResource
632  
633 =over
634  
635 =item ResourceArn => Str
636  
637 =item Tags => L<Paws::LookoutMetrics::TagMap>
638  
639  
640 =back
641  
642 Each argument is described in detail in: L<Paws::LookoutMetrics::TagResource>
643  
644 Returns: a L<Paws::LookoutMetrics::TagResourceResponse> instance
645  
646 Adds tags
647 (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
648 to a detector, dataset, or alert.
649  
650  
651 =head2 UntagResource
652  
653 =over
654  
655 =item ResourceArn => Str
656  
657 =item TagKeys => ArrayRef[Str|Undef]
658  
659  
660 =back
661  
662 Each argument is described in detail in: L<Paws::LookoutMetrics::UntagResource>
663  
664 Returns: a L<Paws::LookoutMetrics::UntagResourceResponse> instance
665  
666 Removes tags
667 (https://docs.aws.amazon.com/lookoutmetrics/latest/dev/detectors-tags.html)
668 from a detector, dataset, or alert.
669  
670  
671 =head2 UpdateAnomalyDetector
672  
673 =over
674  
675 =item AnomalyDetectorArn => Str
676  
677 =item [AnomalyDetectorConfig => L<Paws::LookoutMetrics::AnomalyDetectorConfig>]
678  
679 =item [AnomalyDetectorDescription => Str]
680  
681 =item [KmsKeyArn => Str]
682  
683  
684 =back
685  
686 Each argument is described in detail in: L<Paws::LookoutMetrics::UpdateAnomalyDetector>
687  
688 Returns: a L<Paws::LookoutMetrics::UpdateAnomalyDetectorResponse> instance
689  
690 Updates a detector. After activation, you can only change a detector's
691 ingestion delay and description.
692  
693  
694 =head2 UpdateMetricSet
695  
696 =over
697  
698 =item MetricSetArn => Str
699  
700 =item [DimensionList => ArrayRef[Str|Undef]]
701  
702 =item [MetricList => ArrayRef[L<Paws::LookoutMetrics::Metric>]]
703  
704 =item [MetricSetDescription => Str]
705  
706 =item [MetricSetFrequency => Str]
707  
708 =item [MetricSource => L<Paws::LookoutMetrics::MetricSource>]
709  
710 =item [Offset => Int]
711  
712 =item [TimestampColumn => L<Paws::LookoutMetrics::TimestampColumn>]
713  
714  
715 =back
716  
717 Each argument is described in detail in: L<Paws::LookoutMetrics::UpdateMetricSet>
718  
719 Returns: a L<Paws::LookoutMetrics::UpdateMetricSetResponse> instance
720  
721 Updates a dataset.
722  
723  
724  
725  
726 =head1 PAGINATORS
727  
728 Paginator methods are helpers that repetively call methods that return partial results
729  
730  
731  
732  
733 =head1 SEE ALSO
734  
735 This service class forms part of L<Paws>
736  
737 =head1 BUGS and CONTRIBUTIONS
738  
739 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
740  
741 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
742  
743 =cut
744