@Generated(value="software.amazon.awssdk:codegen") public final class LogStream extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LogStream.Builder,LogStream>
Represents a log stream, which is a sequence of log events from a single emitter of logs.
| Modifier and Type | Class and Description |
|---|---|
static interface |
LogStream.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the log stream.
|
static LogStream.Builder |
builder() |
Long |
creationTime()
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
Long |
firstEventTimestamp()
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Long |
lastEventTimestamp()
The time of the most recent log event in the log stream in CloudWatch Logs.
|
Long |
lastIngestionTime()
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
|
String |
logStreamName()
The name of the log stream.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends LogStream.Builder> |
serializableBuilderClass() |
Long |
storedBytes()
Deprecated.
Starting on June 17, 2019, this parameter will be deprecated for log streams, and will be reported as
zero. This change applies only to log streams. The storedBytes parameter for log groups is not
affected.
|
LogStream.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
uploadSequenceToken()
The sequence token.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String logStreamName()
The name of the log stream.
public final Long creationTime()
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public final Long firstEventTimestamp()
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public final Long 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.
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.public final Long lastIngestionTime()
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
public final String uploadSequenceToken()
The sequence token.
public final String arn()
The Amazon Resource Name (ARN) of the log stream.
@Deprecated public final Long 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.
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.
public LogStream.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<LogStream.Builder,LogStream>public static LogStream.Builder builder()
public static Class<? extends LogStream.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.