class Amazonite::CloudWatchLogs::LogStream

Overview

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

Included Modules

Defined in:

cloudwatch_logs/log_stream.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(log_stream_name : String | Nil = nil, creation_time : Int64 | Nil = nil, first_event_timestamp : Int64 | Nil = nil, last_event_timestamp : Int64 | Nil = nil, last_ingestion_time : Int64 | Nil = nil, upload_sequence_token : String | Nil = nil, arn : String | Nil = nil, stored_bytes : Int64 | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def arn : String | Nil #

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


[View source]
def arn=(arn : String | Nil) #

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


[View source]
def creation_time : Int64 | Nil #

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


[View source]
def creation_time=(creation_time : Int64 | Nil) #

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


[View source]
def first_event_timestamp : Int64 | Nil #

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


[View source]
def first_event_timestamp=(first_event_timestamp : Int64 | Nil) #

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


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def last_event_timestamp : Int64 | Nil #

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.


[View source]
def last_event_timestamp=(last_event_timestamp : Int64 | Nil) #

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.


[View source]
def last_ingestion_time : Int64 | Nil #

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.


[View source]
def last_ingestion_time=(last_ingestion_time : Int64 | Nil) #

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.


[View source]
def log_stream_name : String | Nil #

The name of the log stream.


[View source]
def log_stream_name=(log_stream_name : String | Nil) #

The name of the log stream.


[View source]
def stored_bytes : Int64 | Nil #

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.


[View source]
def stored_bytes=(stored_bytes : Int64 | Nil) #

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.


[View source]
def upload_sequence_token : String | Nil #

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.


[View source]
def upload_sequence_token=(upload_sequence_token : String | Nil) #

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.


[View source]
def validate! : Nil #

[View source]