amazonka-cloudwatch-logs-2.0: Amazon CloudWatch Logs SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CloudWatchLogs.Types.LogStream

Description

 
Synopsis

Documentation

data LogStream Source #

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

See: newLogStream smart constructor.

Constructors

LogStream' 

Fields

  • arn :: Maybe Text

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

  • creationTime :: Maybe Natural

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

  • firstEventTimestamp :: Maybe Natural

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

  • lastEventTimestamp :: Maybe Natural

    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.

  • lastIngestionTime :: Maybe Natural

    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.

  • logStreamName :: Maybe Text

    The name of the log stream.

  • storedBytes :: Maybe Natural

    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.

  • uploadSequenceToken :: Maybe Text

    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.

Instances

Instances details
FromJSON LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

Generic LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

Associated Types

type Rep LogStream :: Type -> Type #

Read LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

Show LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

NFData LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

Methods

rnf :: LogStream -> () #

Eq LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

Hashable LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

type Rep LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

type Rep LogStream = D1 ('MetaData "LogStream" "Amazonka.CloudWatchLogs.Types.LogStream" "amazonka-cloudwatch-logs-2.0-6gvDalNFsfE8djZ4aTfA4V" 'False) (C1 ('MetaCons "LogStream'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "firstEventTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "lastEventTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))) :*: ((S1 ('MetaSel ('Just "lastIngestionTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "logStreamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "storedBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "uploadSequenceToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

newLogStream :: LogStream Source #

Create a value of LogStream with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:arn:LogStream', logStream_arn - The Amazon Resource Name (ARN) of the log stream.

$sel:creationTime:LogStream', logStream_creationTime - The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

$sel:firstEventTimestamp:LogStream', logStream_firstEventTimestamp - The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.

$sel:lastEventTimestamp:LogStream', logStream_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.

$sel:lastIngestionTime:LogStream', logStream_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.

$sel:logStreamName:LogStream', logStream_logStreamName - The name of the log stream.

$sel:storedBytes:LogStream', logStream_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.

$sel:uploadSequenceToken:LogStream', logStream_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.

logStream_arn :: Lens' LogStream (Maybe Text) Source #

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

logStream_creationTime :: Lens' LogStream (Maybe Natural) Source #

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

logStream_firstEventTimestamp :: Lens' LogStream (Maybe Natural) Source #

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

logStream_lastEventTimestamp :: Lens' LogStream (Maybe Natural) Source #

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.

logStream_lastIngestionTime :: Lens' LogStream (Maybe Natural) Source #

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.

logStream_logStreamName :: Lens' LogStream (Maybe Text) Source #

The name of the log stream.

logStream_storedBytes :: Lens' LogStream (Maybe Natural) Source #

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.

logStream_uploadSequenceToken :: Lens' LogStream (Maybe Text) Source #

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.