You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::CloudWatchLogs::Types::PutLogEventsRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::CloudWatchLogs::Types::PutLogEventsRequest
- Defined in:
- (unknown)
Overview
When passing PutLogEventsRequest as input to an Aws::Client method, you can use a vanilla Hash:
{
log_group_name: "LogGroupName", # required
log_stream_name: "LogStreamName", # required
log_events: [ # required
{
timestamp: 1, # required
message: "EventMessage", # required
},
],
sequence_token: "SequenceToken",
}
Instance Attribute Summary collapse
-
#log_events ⇒ Array<Types::InputLogEvent>
The log events.
-
#log_group_name ⇒ String
The name of the log group.
-
#log_stream_name ⇒ String
The name of the log stream.
-
#sequence_token ⇒ String
The sequence token obtained from the response of the previous
PutLogEvents
call.
Instance Attribute Details
#log_events ⇒ Array<Types::InputLogEvent>
The log events.
#log_group_name ⇒ String
The name of the log group.
#log_stream_name ⇒ String
The name of the log stream.
#sequence_token ⇒ String
The sequence token obtained from the response of the previous
PutLogEvents
call. An upload in a newly created log stream does not
require a sequence token. You can also get the sequence token using
DescribeLogStreams. If you call PutLogEvents
twice within a
narrow time period using the same value for sequenceToken
, both calls
might be successful or one might be rejected.