Skip to content

/AWS1/CL_CWLLOGSTREAM

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

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_logstreamname TYPE /AWS1/CWLLOGSTREAMNAME /AWS1/CWLLOGSTREAMNAME

The name of the log stream.

iv_creationtime TYPE /AWS1/CWLTIMESTAMP /AWS1/CWLTIMESTAMP

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

iv_firsteventtimestamp TYPE /AWS1/CWLTIMESTAMP /AWS1/CWLTIMESTAMP

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

iv_lasteventtimestamp TYPE /AWS1/CWLTIMESTAMP /AWS1/CWLTIMESTAMP

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.

iv_lastingestiontime TYPE /AWS1/CWLTIMESTAMP /AWS1/CWLTIMESTAMP

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.

iv_uploadsequencetoken TYPE /AWS1/CWLSEQUENCETOKEN /AWS1/CWLSEQUENCETOKEN

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.

iv_arn TYPE /AWS1/CWLARN /AWS1/CWLARN

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

iv_storedbytes TYPE /AWS1/CWLSTOREDBYTES /AWS1/CWLSTOREDBYTES

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.


Queryable Attributes

logStreamName

The name of the log stream.

Accessible with the following methods

Method Description
GET_LOGSTREAMNAME() Getter for LOGSTREAMNAME, with configurable default
ASK_LOGSTREAMNAME() Getter for LOGSTREAMNAME w/ exceptions if field has no value
HAS_LOGSTREAMNAME() Determine if LOGSTREAMNAME has a value

creationTime

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

Accessible with the following methods

Method Description
GET_CREATIONTIME() Getter for CREATIONTIME, with configurable default
ASK_CREATIONTIME() Getter for CREATIONTIME w/ exceptions if field has no value
HAS_CREATIONTIME() Determine if CREATIONTIME has a value

firstEventTimestamp

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

Accessible with the following methods

Method Description
GET_FIRSTEVENTTIMESTAMP() Getter for FIRSTEVENTTIMESTAMP, with configurable default
ASK_FIRSTEVENTTIMESTAMP() Getter for FIRSTEVENTTIMESTAMP w/ exceptions if field has no
HAS_FIRSTEVENTTIMESTAMP() Determine if FIRSTEVENTTIMESTAMP has a value

lastEventTimestamp

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.

Accessible with the following methods

Method Description
GET_LASTEVENTTIMESTAMP() Getter for LASTEVENTTIMESTAMP, with configurable default
ASK_LASTEVENTTIMESTAMP() Getter for LASTEVENTTIMESTAMP w/ exceptions if field has no
HAS_LASTEVENTTIMESTAMP() Determine if LASTEVENTTIMESTAMP has a value

lastIngestionTime

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.

Accessible with the following methods

Method Description
GET_LASTINGESTIONTIME() Getter for LASTINGESTIONTIME, with configurable default
ASK_LASTINGESTIONTIME() Getter for LASTINGESTIONTIME w/ exceptions if field has no v
HAS_LASTINGESTIONTIME() Determine if LASTINGESTIONTIME has a value

uploadSequenceToken

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.

Accessible with the following methods

Method Description
GET_UPLOADSEQUENCETOKEN() Getter for UPLOADSEQUENCETOKEN, with configurable default
ASK_UPLOADSEQUENCETOKEN() Getter for UPLOADSEQUENCETOKEN w/ exceptions if field has no
HAS_UPLOADSEQUENCETOKEN() Determine if UPLOADSEQUENCETOKEN has a value

arn

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

Accessible with the following methods

Method Description
GET_ARN() Getter for ARN, with configurable default
ASK_ARN() Getter for ARN w/ exceptions if field has no value
HAS_ARN() Determine if ARN has a value

storedBytes

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.

Accessible with the following methods

Method Description
GET_STOREDBYTES() Getter for STOREDBYTES, with configurable default
ASK_STOREDBYTES() Getter for STOREDBYTES w/ exceptions if field has no value
HAS_STOREDBYTES() Determine if STOREDBYTES has a value

Public Local Types In This Class

Internal table types, representing arrays and maps of this class, are defined as local types:

TT_LOGSTREAMS

TYPES TT_LOGSTREAMS TYPE STANDARD TABLE OF REF TO /AWS1/CL_CWLLOGSTREAM WITH DEFAULT KEY
.