File Coverage

blib/lib/Paws/CloudWatchLogs/GetLogEvents.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1              
2             package Paws::CloudWatchLogs::GetLogEvents;
3 1     1   626 use Moose;
  1     1   4  
  1         9  
  1         457  
  1         3  
  1         6  
4             has EndTime => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'endTime' );
5             has Limit => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'limit' );
6             has LogGroupName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'logGroupName' , required => 1);
7             has LogStreamName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'logStreamName' , required => 1);
8             has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken' );
9             has StartFromHead => (is => 'ro', isa => 'Bool', traits => ['NameInRequest'], request_name => 'startFromHead' );
10             has StartTime => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'startTime' );
11              
12 1     1   7006 use MooseX::ClassAttribute;
  1     1   3  
  1         11  
  1         6219  
  1         3  
  1         10  
13              
14             class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetLogEvents');
15             class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatchLogs::GetLogEventsResponse');
16             class_has _result_key => (isa => 'Str', is => 'ro');
17             1;
18              
19             ### main pod documentation begin ###
20              
21             =head1 NAME
22              
23             Paws::CloudWatchLogs::GetLogEvents - Arguments for method GetLogEvents on Paws::CloudWatchLogs
24              
25             =head1 DESCRIPTION
26              
27             This class represents the parameters used for calling the method GetLogEvents on the
28             Amazon CloudWatch Logs service. Use the attributes of this class
29             as arguments to method GetLogEvents.
30              
31             You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetLogEvents.
32              
33             As an example:
34              
35             $service_obj->GetLogEvents(Att1 => $value1, Att2 => $value2, ...);
36              
37             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.
38              
39             =head1 ATTRIBUTES
40              
41              
42             =head2 EndTime => Int
43              
44             The end of the time range, expressed as the number of milliseconds
45             since Jan 1, 1970 00:00:00 UTC. Events with a timestamp later than this
46             time are not included.
47              
48              
49              
50             =head2 Limit => Int
51              
52             The maximum number of log events returned. If you don't specify a
53             value, the maximum is as many log events as can fit in a response size
54             of 1MB, up to 10,000 log events.
55              
56              
57              
58             =head2 B<REQUIRED> LogGroupName => Str
59              
60             The name of the log group.
61              
62              
63              
64             =head2 B<REQUIRED> LogStreamName => Str
65              
66             The name of the log stream.
67              
68              
69              
70             =head2 NextToken => Str
71              
72             The token for the next set of items to return. (You received this token
73             from a previous call.)
74              
75              
76              
77             =head2 StartFromHead => Bool
78              
79             If the value is true, the earliest log events are returned first. If
80             the value is false, the latest log events are returned first. The
81             default value is false.
82              
83              
84              
85             =head2 StartTime => Int
86              
87             The start of the time range, expressed as the number of milliseconds
88             since Jan 1, 1970 00:00:00 UTC. Events with a timestamp earlier than
89             this time are not included.
90              
91              
92              
93              
94             =head1 SEE ALSO
95              
96             This class forms part of L<Paws>, documenting arguments for method GetLogEvents in L<Paws::CloudWatchLogs>
97              
98             =head1 BUGS and CONTRIBUTIONS
99              
100             The source code is located here: https://github.com/pplu/aws-sdk-perl
101              
102             Please report bugs to: https://github.com/pplu/aws-sdk-perl/issues
103              
104             =cut
105