File Coverage

blib/lib/Paws/CloudWatchLogs/MetricTransformation.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::MetricTransformation;
2 1     1   412 use Moose;
  1         4  
  1         9  
3             has DefaultValue => (is => 'ro', isa => 'Num', request_name => 'defaultValue', traits => ['NameInRequest']);
4             has MetricName => (is => 'ro', isa => 'Str', request_name => 'metricName', traits => ['NameInRequest'], required => 1);
5             has MetricNamespace => (is => 'ro', isa => 'Str', request_name => 'metricNamespace', traits => ['NameInRequest'], required => 1);
6             has MetricValue => (is => 'ro', isa => 'Str', request_name => 'metricValue', traits => ['NameInRequest'], required => 1);
7             1;
8              
9             ### main pod documentation begin ###
10              
11             =head1 NAME
12              
13             Paws::CloudWatchLogs::MetricTransformation
14              
15             =head1 USAGE
16              
17             This class represents one of two things:
18              
19             =head3 Arguments in a call to a service
20              
21             Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
22             Each attribute should be used as a named argument in the calls that expect this type of object.
23              
24             As an example, if Att1 is expected to be a Paws::CloudWatchLogs::MetricTransformation object:
25              
26             $service_obj->Method(Att1 => { DefaultValue => $value, ..., MetricValue => $value });
27              
28             =head3 Results returned from an API call
29              
30             Use accessors for each attribute. If Att1 is expected to be an Paws::CloudWatchLogs::MetricTransformation object:
31              
32             $result = $service_obj->Method(...);
33             $result->Att1->DefaultValue
34              
35             =head1 DESCRIPTION
36              
37             Indicates how to transform ingested log events in to metric data in a
38             CloudWatch metric.
39              
40             =head1 ATTRIBUTES
41              
42              
43             =head2 DefaultValue => Num
44              
45             (Optional) The value to emit when a filter pattern does not match a log
46             event. This value can be null.
47              
48              
49             =head2 B<REQUIRED> MetricName => Str
50              
51             The name of the CloudWatch metric.
52              
53              
54             =head2 B<REQUIRED> MetricNamespace => Str
55              
56             The namespace of the CloudWatch metric.
57              
58              
59             =head2 B<REQUIRED> MetricValue => Str
60              
61             The value to publish to the CloudWatch metric when a filter pattern
62             matches a log event.
63              
64              
65              
66             =head1 SEE ALSO
67              
68             This class forms part of L<Paws>, describing an object used in L<Paws::CloudWatchLogs>
69              
70             =head1 BUGS and CONTRIBUTIONS
71              
72             The source code is located here: https://github.com/pplu/aws-sdk-perl
73              
74             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
75              
76             =cut
77