File Coverage

blib/lib/Paws/CloudWatchLogs/MetricFilter.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package Paws::CloudWatchLogs::MetricFilter;
2 1     1   352 use Moose;
  1         2  
  1         5  
3             has CreationTime => (is => 'ro', isa => 'Int', request_name => 'creationTime', traits => ['NameInRequest']);
4             has FilterName => (is => 'ro', isa => 'Str', request_name => 'filterName', traits => ['NameInRequest']);
5             has FilterPattern => (is => 'ro', isa => 'Str', request_name => 'filterPattern', traits => ['NameInRequest']);
6             has LogGroupName => (is => 'ro', isa => 'Str', request_name => 'logGroupName', traits => ['NameInRequest']);
7             has MetricTransformations => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatchLogs::MetricTransformation]', request_name => 'metricTransformations', traits => ['NameInRequest']);
8             1;
9              
10             ### main pod documentation begin ###
11              
12             =head1 NAME
13              
14             Paws::CloudWatchLogs::MetricFilter
15              
16             =head1 USAGE
17              
18             This class represents one of two things:
19              
20             =head3 Arguments in a call to a service
21              
22             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
23             Each attribute should be used as a named argument in the calls that expect this type of object.
24              
25             As an example, if Att1 is expected to be a Paws::CloudWatchLogs::MetricFilter object:
26              
27             $service_obj->Method(Att1 => { CreationTime => $value, ..., MetricTransformations => $value });
28              
29             =head3 Results returned from an API call
30              
31             Use accessors for each attribute. If Att1 is expected to be an Paws::CloudWatchLogs::MetricFilter object:
32              
33             $result = $service_obj->Method(...);
34             $result->Att1->CreationTime
35              
36             =head1 DESCRIPTION
37              
38             Metric filters express how CloudWatch Logs would extract metric
39             observations from ingested log events and transform them into metric
40             data in a CloudWatch metric.
41              
42             =head1 ATTRIBUTES
43              
44              
45             =head2 CreationTime => Int
46              
47             The creation time of the metric filter, expressed as the number of
48             milliseconds after Jan 1, 1970 00:00:00 UTC.
49              
50              
51             =head2 FilterName => Str
52              
53             The name of the metric filter.
54              
55              
56             =head2 FilterPattern => Str
57              
58            
59              
60              
61             =head2 LogGroupName => Str
62              
63             The name of the log group.
64              
65              
66             =head2 MetricTransformations => ArrayRef[L<Paws::CloudWatchLogs::MetricTransformation>]
67              
68             The metric transformations.
69              
70              
71              
72             =head1 SEE ALSO
73              
74             This class forms part of L<Paws>, describing an object used in L<Paws::CloudWatchLogs>
75              
76             =head1 BUGS and CONTRIBUTIONS
77              
78             The source code is located here: https://github.com/pplu/aws-sdk-perl
79              
80             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
81              
82             =cut
83