blib/lib/Paws/ApplicationInsights/UpdateLogPattern.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::ApplicationInsights::UpdateLogPattern;
3 use Moose;
4 has Pattern => (is => 'ro', isa => 'Str');
5 has PatternName => (is => 'ro', isa => 'Str', required => 1);
6 has PatternSetName => (is => 'ro', isa => 'Str', required => 1);
7 has Rank => (is => 'ro', isa => 'Int');
8 has ResourceGroupName => (is => 'ro', isa => 'Str', required => 1);
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateLogPattern');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::ApplicationInsights::UpdateLogPatternResponse');
14 class_has _result_key => (isa => 'Str', is => 'ro');
15 1;
16  
17 ### main pod documentation begin ###
18  
19 =head1 NAME
20  
21 Paws::ApplicationInsights::UpdateLogPattern - Arguments for method UpdateLogPattern on L<Paws::ApplicationInsights>
22  
23 =head1 DESCRIPTION
24  
25 This class represents the parameters used for calling the method UpdateLogPattern on the
26 L<Amazon CloudWatch Application Insights|Paws::ApplicationInsights> service. Use the attributes of this class
27 as arguments to method UpdateLogPattern.
28  
29 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateLogPattern.
30  
31 =head1 SYNOPSIS
32  
33 my $applicationinsights = Paws->service('ApplicationInsights');
34 my $UpdateLogPatternResponse = $applicationinsights->UpdateLogPattern(
35 PatternName => 'MyLogPatternName',
36 PatternSetName => 'MyLogPatternSetName',
37 ResourceGroupName => 'MyResourceGroupName',
38 Pattern => 'MyLogPatternRegex', # OPTIONAL
39 Rank => 1, # OPTIONAL
40 );
41  
42 # Results:
43 my $LogPattern = $UpdateLogPatternResponse->LogPattern;
44 my $ResourceGroupName = $UpdateLogPatternResponse->ResourceGroupName;
45  
46 # Returns a L<Paws::ApplicationInsights::UpdateLogPatternResponse> object.
47  
48 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.
49 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/applicationinsights/UpdateLogPattern>
50  
51 =head1 ATTRIBUTES
52  
53  
54 =head2 Pattern => Str
55  
56 The log pattern. The pattern must be DFA compatible. Patterns that
57 utilize forward lookahead or backreference constructions are not
58 supported.
59  
60  
61  
62 =head2 B<REQUIRED> PatternName => Str
63  
64 The name of the log pattern.
65  
66  
67  
68 =head2 B<REQUIRED> PatternSetName => Str
69  
70 The name of the log pattern set.
71  
72  
73  
74 =head2 Rank => Int
75  
76 Rank of the log pattern. Must be a value between C<1> and C<1,000,000>.
77 The patterns are sorted by rank, so we recommend that you set your
78 highest priority patterns with the lowest rank. A pattern of rank C<1>
79 will be the first to get matched to a log line. A pattern of rank
80 C<1,000,000> will be last to get matched. When you configure custom log
81 patterns from the console, a C<Low> severity pattern translates to a
82 C<750,000> rank. A C<Medium> severity pattern translates to a
83 C<500,000> rank. And a C<High> severity pattern translates to a
84 C<250,000> rank. Rank values less than C<1> or greater than
85 C<1,000,000> are reserved for AWS-provided patterns.
86  
87  
88  
89 =head2 B<REQUIRED> ResourceGroupName => Str
90  
91 The name of the resource group.
92  
93  
94  
95  
96 =head1 SEE ALSO
97  
98 This class forms part of L<Paws>, documenting arguments for method UpdateLogPattern in L<Paws::ApplicationInsights>
99  
100 =head1 BUGS and CONTRIBUTIONS
101  
102 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
103  
104 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
105  
106 =cut
107