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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

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

Instance Attribute Summary collapse

Instance Attribute Details

#arn ⇒ String

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

Returns:

  • (String) —

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

#creation_time ⇒ Integer

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

Returns:

  • (Integer) —

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

#first_event_timestamp ⇒ Integer

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

Returns:

  • (Integer) —

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

#last_event_timestamp ⇒ Integer

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) —

    The time of the most recent log event in the log stream in CloudWatch Logs.

#last_ingestion_time ⇒ Integer

The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

Returns:

  • (Integer) —

    The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

#log_stream_name ⇒ String

The name of the log stream.

Returns:

  • (String) —

    The name of the log stream.

#stored_bytes ⇒ Integer

The number of bytes stored.

Important: On June 17, 2019, this parameter was deprecated 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) —

    The number of bytes stored.

#upload_sequence_token ⇒ String

The sequence token.

Returns:

  • (String) —

    The sequence token.