libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

  • creationTime :: Maybe Natural

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

  • uploadSequenceToken :: Maybe Text

    The sequence token.

  • arn :: Maybe Text

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

  • firstEventTimestamp :: Maybe Natural

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

  • logStreamName :: Maybe Text

    The name of the log stream.

  • storedBytes :: Maybe Natural

    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.

  • lastIngestionTime :: Maybe Natural

    The ingestion time, 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.

Instances

Instances details
Eq LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

Read LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

Show 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 #

NFData LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

Methods

rnf :: LogStream -> () #

Hashable LogStream Source # 
Instance details

Defined in Amazonka.CloudWatchLogs.Types.LogStream

FromJSON 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" "libZSservicesZSamazonka-cloudwatch-logsZSamazonka-cloudwatch-logs" 'False) (C1 ('MetaCons "LogStream'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "creationTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "uploadSequenceToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "firstEventTimestamp") '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 "lastIngestionTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "lastEventTimestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))))))

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: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:uploadSequenceToken:LogStream', logStream_uploadSequenceToken - The sequence token.

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

$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:logStreamName:LogStream', logStream_logStreamName - The name of the log stream.

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

$sel:lastIngestionTime:LogStream', logStream_lastIngestionTime - The ingestion time, 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.

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_arn :: Lens' LogStream (Maybe Text) Source #

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

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_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: 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.

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

The ingestion time, 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.