Struct aws_sdk_cloudwatchlogs::model::LogStream
source · [−]#[non_exhaustive]pub struct LogStream {
pub log_stream_name: Option<String>,
pub creation_time: Option<i64>,
pub first_event_timestamp: Option<i64>,
pub last_event_timestamp: Option<i64>,
pub last_ingestion_time: Option<i64>,
pub upload_sequence_token: Option<String>,
pub arn: Option<String>,
pub stored_bytes: Option<i64>,
}
Expand description
Represents a log stream, which is a sequence of log events from a single emitter of logs.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.log_stream_name: Option<String>
The name of the log stream.
creation_time: Option<i64>
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
first_event_timestamp: Option<i64>
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
last_event_timestamp: Option<i64>
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.
last_ingestion_time: Option<i64>
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
upload_sequence_token: Option<String>
The sequence token.
arn: Option<String>
The Amazon Resource Name (ARN) of the log stream.
stored_bytes: Option<i64>
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.
Implementations
sourceimpl LogStream
impl LogStream
sourcepub fn log_stream_name(&self) -> Option<&str>
pub fn log_stream_name(&self) -> Option<&str>
The name of the log stream.
sourcepub fn creation_time(&self) -> Option<i64>
pub fn creation_time(&self) -> Option<i64>
The creation time of the stream, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
sourcepub fn first_event_timestamp(&self) -> Option<i64>
pub fn first_event_timestamp(&self) -> Option<i64>
The time of the first event, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
sourcepub fn last_event_timestamp(&self) -> Option<i64>
pub fn last_event_timestamp(&self) -> Option<i64>
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.
sourcepub fn last_ingestion_time(&self) -> Option<i64>
pub fn last_ingestion_time(&self) -> Option<i64>
The ingestion time, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
sourcepub fn upload_sequence_token(&self) -> Option<&str>
pub fn upload_sequence_token(&self) -> Option<&str>
The sequence token.
sourcepub fn stored_bytes(&self) -> Option<i64>
pub fn stored_bytes(&self) -> Option<i64>
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.
Trait Implementations
impl StructuralPartialEq for LogStream
Auto Trait Implementations
impl RefUnwindSafe for LogStream
impl Send for LogStream
impl Sync for LogStream
impl Unpin for LogStream
impl UnwindSafe for LogStream
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more