blib/lib/Paws/CloudWatchLogs/PutMetricFilter.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 19 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CloudWatchLogs::PutMetricFilter;
3 use Moose;
4 has FilterName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'filterName' , required => 1);
5 has FilterPattern => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'filterPattern' , required => 1);
6 has LogGroupName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'logGroupName' , required => 1);
7 has MetricTransformations => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatchLogs::MetricTransformation]', traits => ['NameInRequest'], request_name => 'metricTransformations' , required => 1);
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutMetricFilter');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::API::Response');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::CloudWatchLogs::PutMetricFilter - Arguments for method PutMetricFilter on L<Paws::CloudWatchLogs>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method PutMetricFilter on the
25 L<Amazon CloudWatch Logs|Paws::CloudWatchLogs> service. Use the attributes of this class
26 as arguments to method PutMetricFilter.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutMetricFilter.
29  
30 =head1 SYNOPSIS
31  
32 my $logs = Paws->service('CloudWatchLogs');
33 $logs->PutMetricFilter(
34 FilterName => 'MyFilterName',
35 FilterPattern => 'MyFilterPattern',
36 LogGroupName => 'MyLogGroupName',
37 MetricTransformations => [
38 {
39 MetricName => 'MyMetricName', # max: 255
40 MetricNamespace => 'MyMetricNamespace', # max: 255
41 MetricValue => 'MyMetricValue', # max: 100
42 DefaultValue => 1, # OPTIONAL
43 Dimensions => {
44 'MyDimensionsKey' =>
45 'MyDimensionsValue', # key: max: 255, value: max: 255
46 }, # OPTIONAL
47 Unit => 'Seconds'
48 , # values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None; OPTIONAL
49 },
50 ...
51 ],
52  
53 );
54  
55 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.
56 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/logs/PutMetricFilter>
57  
58 =head1 ATTRIBUTES
59  
60  
61 =head2 B<REQUIRED> FilterName => Str
62  
63 A name for the metric filter.
64  
65  
66  
67 =head2 B<REQUIRED> FilterPattern => Str
68  
69 A filter pattern for extracting metric data out of ingested log events.
70  
71  
72  
73 =head2 B<REQUIRED> LogGroupName => Str
74  
75 The name of the log group.
76  
77  
78  
79 =head2 B<REQUIRED> MetricTransformations => ArrayRef[L<Paws::CloudWatchLogs::MetricTransformation>]
80  
81 A collection of information that defines how metric data gets emitted.
82  
83  
84  
85  
86 =head1 SEE ALSO
87  
88 This class forms part of L<Paws>, documenting arguments for method PutMetricFilter in L<Paws::CloudWatchLogs>
89  
90 =head1 BUGS and CONTRIBUTIONS
91  
92 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
93  
94 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
95  
96 =cut
97