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