You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::CloudWatchLogs::Types::PutLogEventsRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb

Overview

Note:

When making an API call, you may pass PutLogEventsRequest data as a 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

Instance Attribute Details

#log_eventsArray<Types::InputLogEvent>

The log events.

Returns:



1512
1513
1514
1515
1516
1517
1518
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1512

class PutLogEventsRequest < Struct.new(
  :log_group_name,
  :log_stream_name,
  :log_events,
  :sequence_token)
  include Aws::Structure
end

#log_group_nameString

The name of the log group.

Returns:

  • (String)


1512
1513
1514
1515
1516
1517
1518
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1512

class PutLogEventsRequest < Struct.new(
  :log_group_name,
  :log_stream_name,
  :log_events,
  :sequence_token)
  include Aws::Structure
end

#log_stream_nameString

The name of the log stream.

Returns:

  • (String)


1512
1513
1514
1515
1516
1517
1518
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1512

class PutLogEventsRequest < Struct.new(
  :log_group_name,
  :log_stream_name,
  :log_events,
  :sequence_token)
  include Aws::Structure
end

#sequence_tokenString

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 may be successful, or one may be rejected.

Returns:

  • (String)


1512
1513
1514
1515
1516
1517
1518
# File 'gems/aws-sdk-cloudwatchlogs/lib/aws-sdk-cloudwatchlogs/types.rb', line 1512

class PutLogEventsRequest < Struct.new(
  :log_group_name,
  :log_stream_name,
  :log_events,
  :sequence_token)
  include Aws::Structure
end