blib/lib/Paws/ApplicationInsights.pm untested

filter: Statementstmt 0.0% 0 / 96 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 34 Podpod 0.0% 0 / 33 totaltotal 0.0% 0 / 163 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::ApplicationInsights;
2 use Moose;
3 sub service { 'applicationinsights' }
4 sub signing_name { 'applicationinsights' }
5 sub version { '2018-11-25' }
6 sub target_prefix { 'EC2WindowsBarleyService' }
7 sub json_version { "1.1" }
8 has max_attempts => (is => 'ro', isa => 'Int', default => 5);
9 has retry => (is => 'ro', isa => 'HashRef', default => sub {
10 { base => 'rand', type => 'exponential', growth_factor => 2 }
11 });
12 has retriables => (is => 'ro', isa => 'ArrayRef', default => sub { [
13 ] });
14  
15 with 'Paws::API::Caller', 'Paws::API::EndpointResolver', 'Paws::Net::V4Signature', 'Paws::Net::JsonCaller';
16  
17
18 sub CreateApplication {
19 my $self = shift;
20 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::CreateApplication', @_);
21 return $self->caller->do_call($self, $call_object);
22 }
23 sub CreateComponent {
24 my $self = shift;
25 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::CreateComponent', @_);
26 return $self->caller->do_call($self, $call_object);
27 }
28 sub CreateLogPattern {
29 my $self = shift;
30 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::CreateLogPattern', @_);
31 return $self->caller->do_call($self, $call_object);
32 }
33 sub DeleteApplication {
34 my $self = shift;
35 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DeleteApplication', @_);
36 return $self->caller->do_call($self, $call_object);
37 }
38 sub DeleteComponent {
39 my $self = shift;
40 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DeleteComponent', @_);
41 return $self->caller->do_call($self, $call_object);
42 }
43 sub DeleteLogPattern {
44 my $self = shift;
45 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DeleteLogPattern', @_);
46 return $self->caller->do_call($self, $call_object);
47 }
48 sub DescribeApplication {
49 my $self = shift;
50 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DescribeApplication', @_);
51 return $self->caller->do_call($self, $call_object);
52 }
53 sub DescribeComponent {
54 my $self = shift;
55 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DescribeComponent', @_);
56 return $self->caller->do_call($self, $call_object);
57 }
58 sub DescribeComponentConfiguration {
59 my $self = shift;
60 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DescribeComponentConfiguration', @_);
61 return $self->caller->do_call($self, $call_object);
62 }
63 sub DescribeComponentConfigurationRecommendation {
64 my $self = shift;
65 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DescribeComponentConfigurationRecommendation', @_);
66 return $self->caller->do_call($self, $call_object);
67 }
68 sub DescribeLogPattern {
69 my $self = shift;
70 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DescribeLogPattern', @_);
71 return $self->caller->do_call($self, $call_object);
72 }
73 sub DescribeObservation {
74 my $self = shift;
75 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DescribeObservation', @_);
76 return $self->caller->do_call($self, $call_object);
77 }
78 sub DescribeProblem {
79 my $self = shift;
80 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DescribeProblem', @_);
81 return $self->caller->do_call($self, $call_object);
82 }
83 sub DescribeProblemObservations {
84 my $self = shift;
85 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::DescribeProblemObservations', @_);
86 return $self->caller->do_call($self, $call_object);
87 }
88 sub ListApplications {
89 my $self = shift;
90 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::ListApplications', @_);
91 return $self->caller->do_call($self, $call_object);
92 }
93 sub ListComponents {
94 my $self = shift;
95 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::ListComponents', @_);
96 return $self->caller->do_call($self, $call_object);
97 }
98 sub ListConfigurationHistory {
99 my $self = shift;
100 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::ListConfigurationHistory', @_);
101 return $self->caller->do_call($self, $call_object);
102 }
103 sub ListLogPatterns {
104 my $self = shift;
105 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::ListLogPatterns', @_);
106 return $self->caller->do_call($self, $call_object);
107 }
108 sub ListLogPatternSets {
109 my $self = shift;
110 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::ListLogPatternSets', @_);
111 return $self->caller->do_call($self, $call_object);
112 }
113 sub ListProblems {
114 my $self = shift;
115 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::ListProblems', @_);
116 return $self->caller->do_call($self, $call_object);
117 }
118 sub ListTagsForResource {
119 my $self = shift;
120 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::ListTagsForResource', @_);
121 return $self->caller->do_call($self, $call_object);
122 }
123 sub TagResource {
124 my $self = shift;
125 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::TagResource', @_);
126 return $self->caller->do_call($self, $call_object);
127 }
128 sub UntagResource {
129 my $self = shift;
130 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::UntagResource', @_);
131 return $self->caller->do_call($self, $call_object);
132 }
133 sub UpdateApplication {
134 my $self = shift;
135 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::UpdateApplication', @_);
136 return $self->caller->do_call($self, $call_object);
137 }
138 sub UpdateComponent {
139 my $self = shift;
140 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::UpdateComponent', @_);
141 return $self->caller->do_call($self, $call_object);
142 }
143 sub UpdateComponentConfiguration {
144 my $self = shift;
145 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::UpdateComponentConfiguration', @_);
146 return $self->caller->do_call($self, $call_object);
147 }
148 sub UpdateLogPattern {
149 my $self = shift;
150 my $call_object = $self->new_with_coercions('Paws::ApplicationInsights::UpdateLogPattern', @_);
151 return $self->caller->do_call($self, $call_object);
152 }
153
154  
155  
156 sub operations { qw/CreateApplication CreateComponent CreateLogPattern DeleteApplication DeleteComponent DeleteLogPattern DescribeApplication DescribeComponent DescribeComponentConfiguration DescribeComponentConfigurationRecommendation DescribeLogPattern DescribeObservation DescribeProblem DescribeProblemObservations ListApplications ListComponents ListConfigurationHistory ListLogPatterns ListLogPatternSets ListProblems ListTagsForResource TagResource UntagResource UpdateApplication UpdateComponent UpdateComponentConfiguration UpdateLogPattern / }
157  
158 1;
159  
160 ### main pod documentation begin ###
161  
162 =head1 NAME
163  
164 Paws::ApplicationInsights - Perl Interface to AWS Amazon CloudWatch Application Insights
165  
166 =head1 SYNOPSIS
167  
168 use Paws;
169  
170 my $obj = Paws->service('ApplicationInsights');
171 my $res = $obj->Method(
172 Arg1 => $val1,
173 Arg2 => [ 'V1', 'V2' ],
174 # if Arg3 is an object, the HashRef will be used as arguments to the constructor
175 # of the arguments type
176 Arg3 => { Att1 => 'Val1' },
177 # if Arg4 is an array of objects, the HashRefs will be passed as arguments to
178 # the constructor of the arguments type
179 Arg4 => [ { Att1 => 'Val1' }, { Att1 => 'Val2' } ],
180 );
181  
182 =head1 DESCRIPTION
183  
184 Amazon CloudWatch Application Insights
185  
186 Amazon CloudWatch Application Insights is a service that helps you
187 detect common problems with your applications. It enables you to
188 pinpoint the source of issues in your applications (built with
189 technologies such as Microsoft IIS, .NET, and Microsoft SQL Server), by
190 providing key insights into detected problems.
191  
192 After you onboard your application, CloudWatch Application Insights
193 identifies, recommends, and sets up metrics and logs. It continuously
194 analyzes and correlates your metrics and logs for unusual behavior to
195 surface actionable problems with your application. For example, if your
196 application is slow and unresponsive and leading to HTTP 500 errors in
197 your Application Load Balancer (ALB), Application Insights informs you
198 that a memory pressure problem with your SQL Server database is
199 occurring. It bases this analysis on impactful metrics and log errors.
200  
201 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/applicationinsights-2018-11-25>
202  
203  
204 =head1 METHODS
205  
206 =head2 CreateApplication
207  
208 =over
209  
210 =item ResourceGroupName => Str
211  
212 =item [CWEMonitorEnabled => Bool]
213  
214 =item [OpsCenterEnabled => Bool]
215  
216 =item [OpsItemSNSTopicArn => Str]
217  
218 =item [Tags => ArrayRef[L<Paws::ApplicationInsights::Tag>]]
219  
220  
221 =back
222  
223 Each argument is described in detail in: L<Paws::ApplicationInsights::CreateApplication>
224  
225 Returns: a L<Paws::ApplicationInsights::CreateApplicationResponse> instance
226  
227 Adds an application that is created from a resource group.
228  
229  
230 =head2 CreateComponent
231  
232 =over
233  
234 =item ComponentName => Str
235  
236 =item ResourceGroupName => Str
237  
238 =item ResourceList => ArrayRef[Str|Undef]
239  
240  
241 =back
242  
243 Each argument is described in detail in: L<Paws::ApplicationInsights::CreateComponent>
244  
245 Returns: a L<Paws::ApplicationInsights::CreateComponentResponse> instance
246  
247 Creates a custom component by grouping similar standalone instances to
248 monitor.
249  
250  
251 =head2 CreateLogPattern
252  
253 =over
254  
255 =item Pattern => Str
256  
257 =item PatternName => Str
258  
259 =item PatternSetName => Str
260  
261 =item Rank => Int
262  
263 =item ResourceGroupName => Str
264  
265  
266 =back
267  
268 Each argument is described in detail in: L<Paws::ApplicationInsights::CreateLogPattern>
269  
270 Returns: a L<Paws::ApplicationInsights::CreateLogPatternResponse> instance
271  
272 Adds an log pattern to a C<LogPatternSet>.
273  
274  
275 =head2 DeleteApplication
276  
277 =over
278  
279 =item ResourceGroupName => Str
280  
281  
282 =back
283  
284 Each argument is described in detail in: L<Paws::ApplicationInsights::DeleteApplication>
285  
286 Returns: a L<Paws::ApplicationInsights::DeleteApplicationResponse> instance
287  
288 Removes the specified application from monitoring. Does not delete the
289 application.
290  
291  
292 =head2 DeleteComponent
293  
294 =over
295  
296 =item ComponentName => Str
297  
298 =item ResourceGroupName => Str
299  
300  
301 =back
302  
303 Each argument is described in detail in: L<Paws::ApplicationInsights::DeleteComponent>
304  
305 Returns: a L<Paws::ApplicationInsights::DeleteComponentResponse> instance
306  
307 Ungroups a custom component. When you ungroup custom components, all
308 applicable monitors that are set up for the component are removed and
309 the instances revert to their standalone status.
310  
311  
312 =head2 DeleteLogPattern
313  
314 =over
315  
316 =item PatternName => Str
317  
318 =item PatternSetName => Str
319  
320 =item ResourceGroupName => Str
321  
322  
323 =back
324  
325 Each argument is described in detail in: L<Paws::ApplicationInsights::DeleteLogPattern>
326  
327 Returns: a L<Paws::ApplicationInsights::DeleteLogPatternResponse> instance
328  
329 Removes the specified log pattern from a C<LogPatternSet>.
330  
331  
332 =head2 DescribeApplication
333  
334 =over
335  
336 =item ResourceGroupName => Str
337  
338  
339 =back
340  
341 Each argument is described in detail in: L<Paws::ApplicationInsights::DescribeApplication>
342  
343 Returns: a L<Paws::ApplicationInsights::DescribeApplicationResponse> instance
344  
345 Describes the application.
346  
347  
348 =head2 DescribeComponent
349  
350 =over
351  
352 =item ComponentName => Str
353  
354 =item ResourceGroupName => Str
355  
356  
357 =back
358  
359 Each argument is described in detail in: L<Paws::ApplicationInsights::DescribeComponent>
360  
361 Returns: a L<Paws::ApplicationInsights::DescribeComponentResponse> instance
362  
363 Describes a component and lists the resources that are grouped together
364 in a component.
365  
366  
367 =head2 DescribeComponentConfiguration
368  
369 =over
370  
371 =item ComponentName => Str
372  
373 =item ResourceGroupName => Str
374  
375  
376 =back
377  
378 Each argument is described in detail in: L<Paws::ApplicationInsights::DescribeComponentConfiguration>
379  
380 Returns: a L<Paws::ApplicationInsights::DescribeComponentConfigurationResponse> instance
381  
382 Describes the monitoring configuration of the component.
383  
384  
385 =head2 DescribeComponentConfigurationRecommendation
386  
387 =over
388  
389 =item ComponentName => Str
390  
391 =item ResourceGroupName => Str
392  
393 =item Tier => Str
394  
395  
396 =back
397  
398 Each argument is described in detail in: L<Paws::ApplicationInsights::DescribeComponentConfigurationRecommendation>
399  
400 Returns: a L<Paws::ApplicationInsights::DescribeComponentConfigurationRecommendationResponse> instance
401  
402 Describes the recommended monitoring configuration of the component.
403  
404  
405 =head2 DescribeLogPattern
406  
407 =over
408  
409 =item PatternName => Str
410  
411 =item PatternSetName => Str
412  
413 =item ResourceGroupName => Str
414  
415  
416 =back
417  
418 Each argument is described in detail in: L<Paws::ApplicationInsights::DescribeLogPattern>
419  
420 Returns: a L<Paws::ApplicationInsights::DescribeLogPatternResponse> instance
421  
422 Describe a specific log pattern from a C<LogPatternSet>.
423  
424  
425 =head2 DescribeObservation
426  
427 =over
428  
429 =item ObservationId => Str
430  
431  
432 =back
433  
434 Each argument is described in detail in: L<Paws::ApplicationInsights::DescribeObservation>
435  
436 Returns: a L<Paws::ApplicationInsights::DescribeObservationResponse> instance
437  
438 Describes an anomaly or error with the application.
439  
440  
441 =head2 DescribeProblem
442  
443 =over
444  
445 =item ProblemId => Str
446  
447  
448 =back
449  
450 Each argument is described in detail in: L<Paws::ApplicationInsights::DescribeProblem>
451  
452 Returns: a L<Paws::ApplicationInsights::DescribeProblemResponse> instance
453  
454 Describes an application problem.
455  
456  
457 =head2 DescribeProblemObservations
458  
459 =over
460  
461 =item ProblemId => Str
462  
463  
464 =back
465  
466 Each argument is described in detail in: L<Paws::ApplicationInsights::DescribeProblemObservations>
467  
468 Returns: a L<Paws::ApplicationInsights::DescribeProblemObservationsResponse> instance
469  
470 Describes the anomalies or errors associated with the problem.
471  
472  
473 =head2 ListApplications
474  
475 =over
476  
477 =item [MaxResults => Int]
478  
479 =item [NextToken => Str]
480  
481  
482 =back
483  
484 Each argument is described in detail in: L<Paws::ApplicationInsights::ListApplications>
485  
486 Returns: a L<Paws::ApplicationInsights::ListApplicationsResponse> instance
487  
488 Lists the IDs of the applications that you are monitoring.
489  
490  
491 =head2 ListComponents
492  
493 =over
494  
495 =item ResourceGroupName => Str
496  
497 =item [MaxResults => Int]
498  
499 =item [NextToken => Str]
500  
501  
502 =back
503  
504 Each argument is described in detail in: L<Paws::ApplicationInsights::ListComponents>
505  
506 Returns: a L<Paws::ApplicationInsights::ListComponentsResponse> instance
507  
508 Lists the auto-grouped, standalone, and custom components of the
509 application.
510  
511  
512 =head2 ListConfigurationHistory
513  
514 =over
515  
516 =item [EndTime => Str]
517  
518 =item [EventStatus => Str]
519  
520 =item [MaxResults => Int]
521  
522 =item [NextToken => Str]
523  
524 =item [ResourceGroupName => Str]
525  
526 =item [StartTime => Str]
527  
528  
529 =back
530  
531 Each argument is described in detail in: L<Paws::ApplicationInsights::ListConfigurationHistory>
532  
533 Returns: a L<Paws::ApplicationInsights::ListConfigurationHistoryResponse> instance
534  
535 Lists the INFO, WARN, and ERROR events for periodic configuration
536 updates performed by Application Insights. Examples of events
537 represented are:
538  
539 =over
540  
541 =item *
542  
543 INFO: creating a new alarm or updating an alarm threshold.
544  
545 =item *
546  
547 WARN: alarm not created due to insufficient data points used to predict
548 thresholds.
549  
550 =item *
551  
552 ERROR: alarm not created due to permission errors or exceeding quotas.
553  
554 =back
555  
556  
557  
558 =head2 ListLogPatterns
559  
560 =over
561  
562 =item ResourceGroupName => Str
563  
564 =item [MaxResults => Int]
565  
566 =item [NextToken => Str]
567  
568 =item [PatternSetName => Str]
569  
570  
571 =back
572  
573 Each argument is described in detail in: L<Paws::ApplicationInsights::ListLogPatterns>
574  
575 Returns: a L<Paws::ApplicationInsights::ListLogPatternsResponse> instance
576  
577 Lists the log patterns in the specific log C<LogPatternSet>.
578  
579  
580 =head2 ListLogPatternSets
581  
582 =over
583  
584 =item ResourceGroupName => Str
585  
586 =item [MaxResults => Int]
587  
588 =item [NextToken => Str]
589  
590  
591 =back
592  
593 Each argument is described in detail in: L<Paws::ApplicationInsights::ListLogPatternSets>
594  
595 Returns: a L<Paws::ApplicationInsights::ListLogPatternSetsResponse> instance
596  
597 Lists the log pattern sets in the specific application.
598  
599  
600 =head2 ListProblems
601  
602 =over
603  
604 =item [EndTime => Str]
605  
606 =item [MaxResults => Int]
607  
608 =item [NextToken => Str]
609  
610 =item [ResourceGroupName => Str]
611  
612 =item [StartTime => Str]
613  
614  
615 =back
616  
617 Each argument is described in detail in: L<Paws::ApplicationInsights::ListProblems>
618  
619 Returns: a L<Paws::ApplicationInsights::ListProblemsResponse> instance
620  
621 Lists the problems with your application.
622  
623  
624 =head2 ListTagsForResource
625  
626 =over
627  
628 =item ResourceARN => Str
629  
630  
631 =back
632  
633 Each argument is described in detail in: L<Paws::ApplicationInsights::ListTagsForResource>
634  
635 Returns: a L<Paws::ApplicationInsights::ListTagsForResourceResponse> instance
636  
637 Retrieve a list of the tags (keys and values) that are associated with
638 a specified application. A I<tag> is a label that you optionally define
639 and associate with an application. Each tag consists of a required
640 I<tag key> and an optional associated I<tag value>. A tag key is a
641 general label that acts as a category for more specific tag values. A
642 tag value acts as a descriptor within a tag key.
643  
644  
645 =head2 TagResource
646  
647 =over
648  
649 =item ResourceARN => Str
650  
651 =item Tags => ArrayRef[L<Paws::ApplicationInsights::Tag>]
652  
653  
654 =back
655  
656 Each argument is described in detail in: L<Paws::ApplicationInsights::TagResource>
657  
658 Returns: a L<Paws::ApplicationInsights::TagResourceResponse> instance
659  
660 Add one or more tags (keys and values) to a specified application. A
661 I<tag> is a label that you optionally define and associate with an
662 application. Tags can help you categorize and manage application in
663 different ways, such as by purpose, owner, environment, or other
664 criteria.
665  
666 Each tag consists of a required I<tag key> and an associated I<tag
667 value>, both of which you define. A tag key is a general label that
668 acts as a category for more specific tag values. A tag value acts as a
669 descriptor within a tag key.
670  
671  
672 =head2 UntagResource
673  
674 =over
675  
676 =item ResourceARN => Str
677  
678 =item TagKeys => ArrayRef[Str|Undef]
679  
680  
681 =back
682  
683 Each argument is described in detail in: L<Paws::ApplicationInsights::UntagResource>
684  
685 Returns: a L<Paws::ApplicationInsights::UntagResourceResponse> instance
686  
687 Remove one or more tags (keys and values) from a specified application.
688  
689  
690 =head2 UpdateApplication
691  
692 =over
693  
694 =item ResourceGroupName => Str
695  
696 =item [CWEMonitorEnabled => Bool]
697  
698 =item [OpsCenterEnabled => Bool]
699  
700 =item [OpsItemSNSTopicArn => Str]
701  
702 =item [RemoveSNSTopic => Bool]
703  
704  
705 =back
706  
707 Each argument is described in detail in: L<Paws::ApplicationInsights::UpdateApplication>
708  
709 Returns: a L<Paws::ApplicationInsights::UpdateApplicationResponse> instance
710  
711 Updates the application.
712  
713  
714 =head2 UpdateComponent
715  
716 =over
717  
718 =item ComponentName => Str
719  
720 =item ResourceGroupName => Str
721  
722 =item [NewComponentName => Str]
723  
724 =item [ResourceList => ArrayRef[Str|Undef]]
725  
726  
727 =back
728  
729 Each argument is described in detail in: L<Paws::ApplicationInsights::UpdateComponent>
730  
731 Returns: a L<Paws::ApplicationInsights::UpdateComponentResponse> instance
732  
733 Updates the custom component name and/or the list of resources that
734 make up the component.
735  
736  
737 =head2 UpdateComponentConfiguration
738  
739 =over
740  
741 =item ComponentName => Str
742  
743 =item ResourceGroupName => Str
744  
745 =item [ComponentConfiguration => Str]
746  
747 =item [Monitor => Bool]
748  
749 =item [Tier => Str]
750  
751  
752 =back
753  
754 Each argument is described in detail in: L<Paws::ApplicationInsights::UpdateComponentConfiguration>
755  
756 Returns: a L<Paws::ApplicationInsights::UpdateComponentConfigurationResponse> instance
757  
758 Updates the monitoring configurations for the component. The
759 configuration input parameter is an escaped JSON of the configuration
760 and should match the schema of what is returned by
761 C<DescribeComponentConfigurationRecommendation>.
762  
763  
764 =head2 UpdateLogPattern
765  
766 =over
767  
768 =item PatternName => Str
769  
770 =item PatternSetName => Str
771  
772 =item ResourceGroupName => Str
773  
774 =item [Pattern => Str]
775  
776 =item [Rank => Int]
777  
778  
779 =back
780  
781 Each argument is described in detail in: L<Paws::ApplicationInsights::UpdateLogPattern>
782  
783 Returns: a L<Paws::ApplicationInsights::UpdateLogPatternResponse> instance
784  
785 Adds a log pattern to a C<LogPatternSet>.
786  
787  
788  
789  
790 =head1 PAGINATORS
791  
792 Paginator methods are helpers that repetively call methods that return partial results
793  
794  
795  
796  
797 =head1 SEE ALSO
798  
799 This service class forms part of L<Paws>
800  
801 =head1 BUGS and CONTRIBUTIONS
802  
803 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
804  
805 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
806  
807 =cut
808