Class: Aws::CloudWatchLogs::Types::LogStream

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

Overview

Represents a log stream, which is a sequence of log events from a single emitter of logs.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#arnString

The Amazon Resource Name (ARN) of the log stream.

Returns:

  • (String)


3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 3500

class LogStream < Struct.new(
  :log_stream_name,
  :creation_time,
  :first_event_timestamp,
  :last_event_timestamp,
  :last_ingestion_time,
  :upload_sequence_token,
  :arn,
  :stored_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#creation_timeInteger

The creation time of the stream, expressed as the number of milliseconds after ‘Jan 1, 1970 00:00:00 UTC`.

Returns:

  • (Integer)


3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 3500

class LogStream < Struct.new(
  :log_stream_name,
  :creation_time,
  :first_event_timestamp,
  :last_event_timestamp,
  :last_ingestion_time,
  :upload_sequence_token,
  :arn,
  :stored_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#first_event_timestampInteger

The time of the first event, expressed as the number of milliseconds after ‘Jan 1, 1970 00:00:00 UTC`.

Returns:

  • (Integer)


3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 3500

class LogStream < Struct.new(
  :log_stream_name,
  :creation_time,
  :first_event_timestamp,
  :last_event_timestamp,
  :last_ingestion_time,
  :upload_sequence_token,
  :arn,
  :stored_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#last_event_timestampInteger

The time of the most recent log event in the log stream in CloudWatch Logs. This number is expressed as the number of milliseconds after ‘Jan 1, 1970 00:00:00 UTC`. The `lastEventTime` value updates on an eventual consistency basis. It typically updates in less than an hour from ingestion, but in rare situations might take longer.

Returns:

  • (Integer)


3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 3500

class LogStream < Struct.new(
  :log_stream_name,
  :creation_time,
  :first_event_timestamp,
  :last_event_timestamp,
  :last_ingestion_time,
  :upload_sequence_token,
  :arn,
  :stored_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#last_ingestion_timeInteger

The ingestion time, expressed as the number of milliseconds after ‘Jan 1, 1970 00:00:00 UTC` The `lastIngestionTime` value updates on an eventual consistency basis. It typically updates in less than an hour after ingestion, but in rare situations might take longer.

Returns:

  • (Integer)


3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 3500

class LogStream < Struct.new(
  :log_stream_name,
  :creation_time,
  :first_event_timestamp,
  :last_event_timestamp,
  :last_ingestion_time,
  :upload_sequence_token,
  :arn,
  :stored_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#log_stream_nameString

The name of the log stream.

Returns:

  • (String)


3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 3500

class LogStream < Struct.new(
  :log_stream_name,
  :creation_time,
  :first_event_timestamp,
  :last_event_timestamp,
  :last_ingestion_time,
  :upload_sequence_token,
  :arn,
  :stored_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#stored_bytesInteger

The number of bytes stored.

Important: As of June 17, 2019, this parameter is no longer supported for log streams, and is always reported as zero. This change applies only to log streams. The ‘storedBytes` parameter for log groups is not affected.

Returns:

  • (Integer)


3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 3500

class LogStream < Struct.new(
  :log_stream_name,
  :creation_time,
  :first_event_timestamp,
  :last_event_timestamp,
  :last_ingestion_time,
  :upload_sequence_token,
  :arn,
  :stored_bytes)
  SENSITIVE = []
  include Aws::Structure
end

#upload_sequence_tokenString

The sequence token.

The sequence token is now ignored in ‘PutLogEvents` actions. `PutLogEvents` actions are always accepted regardless of receiving an invalid sequence token. You don’t need to obtain ‘uploadSequenceToken` to use a `PutLogEvents` action.

Returns:

  • (String)


3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
# File 'lib/aws-sdk-cloudwatchlogs/types.rb', line 3500

class LogStream < Struct.new(
  :log_stream_name,
  :creation_time,
  :first_event_timestamp,
  :last_event_timestamp,
  :last_ingestion_time,
  :upload_sequence_token,
  :arn,
  :stored_bytes)
  SENSITIVE = []
  include Aws::Structure
end