blib/lib/Paws/CloudWatchLogs/PutLogEvents.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 16 / 16 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Paws/CloudWatchLogs/OutputLogEvent.pm ↑ Summary blib/lib/Paws/CloudWatchLogs/PutLogEventsResponse.pm »
1  
2 package Paws::CloudWatchLogs::PutLogEvents;
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 has LogEvents => (is => 'ro', isa => 'ArrayRef[Paws::CloudWatchLogs::InputLogEvent]', traits => ['NameInRequest'], request_name => 'logEvents' , required => 1);
5 1 has LogGroupName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'logGroupName' , required => 1);
6 1 has LogStreamName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'logStreamName' , required => 1);
7 1 has SequenceToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'sequenceToken' );
8  
9 1 ▶ use MooseX::ClassAttribute;
Subroutine BEGIN: called CC=1 SCAR=0.0
10  
11 1 class_has _api_call => (isa => 'Str', is => 'ro', default => 'PutLogEvents');
12 1 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CloudWatchLogs::PutLogEventsResponse');
13 1 class_has _result_key => (isa => 'Str', is => 'ro');
14 1 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::CloudWatchLogs::PutLogEvents - Arguments for method PutLogEvents on L<Paws::CloudWatchLogs>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method PutLogEvents on the
25 L<Amazon CloudWatch Logs|Paws::CloudWatchLogs> service. Use the attributes of this class
26 as arguments to method PutLogEvents.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to PutLogEvents.
29  
30 =head1 SYNOPSIS
31  
32 my $logs = Paws->service('CloudWatchLogs');
33 my $PutLogEventsResponse = $logs->PutLogEvents(
34 LogEvents => [
35 {
36 Message => 'MyEventMessage', # min: 1
37 Timestamp => 1,
38  
39 },
40 ...
41 ],
42 LogGroupName => 'MyLogGroupName',
43 LogStreamName => 'MyLogStreamName',
44 SequenceToken => 'MySequenceToken', # OPTIONAL
45 );
46  
47 # Results:
48 my $NextSequenceToken = $PutLogEventsResponse->NextSequenceToken;
49 my $RejectedLogEventsInfo = $PutLogEventsResponse->RejectedLogEventsInfo;
50  
51 # Returns a L<Paws::CloudWatchLogs::PutLogEventsResponse> object.
52  
53 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.
54 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/logs/PutLogEvents>
55  
56 =head1 ATTRIBUTES
57  
58  
59 =head2 B<REQUIRED> LogEvents => ArrayRef[L<Paws::CloudWatchLogs::InputLogEvent>]
60  
61 The log events.
62  
63  
64  
65 =head2 B<REQUIRED> LogGroupName => Str
66  
67 The name of the log group.
68  
69  
70  
71 =head2 B<REQUIRED> LogStreamName => Str
72  
73 The name of the log stream.
74  
75  
76  
77 =head2 SequenceToken => Str
78  
79 The sequence token obtained from the response of the previous
80 C<PutLogEvents> call. An upload in a newly created log stream does not
81 require a sequence token. You can also get the sequence token using
82 DescribeLogStreams
83 (https://docs.aws.amazon.com/AmazonCloudWatchLogs/latest/APIReference/API_DescribeLogStreams.html).
84 If you call C<PutLogEvents> twice within a narrow time period using the
85 same value for C<sequenceToken>, both calls might be successful or one
86 might be rejected.
87  
88  
89  
90  
91 =head1 SEE ALSO
92  
93 This class forms part of L<Paws>, documenting arguments for method PutLogEvents in L<Paws::CloudWatchLogs>
94  
95 =head1 BUGS and CONTRIBUTIONS
96  
97 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
98  
99 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
100  
101 =cut
102  
« blib/lib/Paws/CloudWatchLogs/OutputLogEvent.pm ↑ Summary blib/lib/Paws/CloudWatchLogs/PutLogEventsResponse.pm »