Struct aws_sdk_devopsguru::types::builders::LogAnomalyClassBuilder
source · #[non_exhaustive]pub struct LogAnomalyClassBuilder { /* private fields */ }
Expand description
A builder for LogAnomalyClass
.
Implementations§
source§impl LogAnomalyClassBuilder
impl LogAnomalyClassBuilder
sourcepub fn log_stream_name(self, input: impl Into<String>) -> Self
pub fn log_stream_name(self, input: impl Into<String>) -> Self
The name of the Amazon CloudWatch log stream that the anomalous log event belongs to. A log stream is a sequence of log events that share the same source.
sourcepub fn set_log_stream_name(self, input: Option<String>) -> Self
pub fn set_log_stream_name(self, input: Option<String>) -> Self
The name of the Amazon CloudWatch log stream that the anomalous log event belongs to. A log stream is a sequence of log events that share the same source.
sourcepub fn get_log_stream_name(&self) -> &Option<String>
pub fn get_log_stream_name(&self) -> &Option<String>
The name of the Amazon CloudWatch log stream that the anomalous log event belongs to. A log stream is a sequence of log events that share the same source.
sourcepub fn log_anomaly_type(self, input: LogAnomalyType) -> Self
pub fn log_anomaly_type(self, input: LogAnomalyType) -> Self
The type of log anomaly that has been detected.
sourcepub fn set_log_anomaly_type(self, input: Option<LogAnomalyType>) -> Self
pub fn set_log_anomaly_type(self, input: Option<LogAnomalyType>) -> Self
The type of log anomaly that has been detected.
sourcepub fn get_log_anomaly_type(&self) -> &Option<LogAnomalyType>
pub fn get_log_anomaly_type(&self) -> &Option<LogAnomalyType>
The type of log anomaly that has been detected.
sourcepub fn log_anomaly_token(self, input: impl Into<String>) -> Self
pub fn log_anomaly_token(self, input: impl Into<String>) -> Self
The token where the anomaly was detected. This may refer to an exception or another location, or it may be blank for log anomalies such as format anomalies.
sourcepub fn set_log_anomaly_token(self, input: Option<String>) -> Self
pub fn set_log_anomaly_token(self, input: Option<String>) -> Self
The token where the anomaly was detected. This may refer to an exception or another location, or it may be blank for log anomalies such as format anomalies.
sourcepub fn get_log_anomaly_token(&self) -> &Option<String>
pub fn get_log_anomaly_token(&self) -> &Option<String>
The token where the anomaly was detected. This may refer to an exception or another location, or it may be blank for log anomalies such as format anomalies.
sourcepub fn log_event_id(self, input: impl Into<String>) -> Self
pub fn log_event_id(self, input: impl Into<String>) -> Self
The ID of the log event.
sourcepub fn set_log_event_id(self, input: Option<String>) -> Self
pub fn set_log_event_id(self, input: Option<String>) -> Self
The ID of the log event.
sourcepub fn get_log_event_id(&self) -> &Option<String>
pub fn get_log_event_id(&self) -> &Option<String>
The ID of the log event.
sourcepub fn explanation(self, input: impl Into<String>) -> Self
pub fn explanation(self, input: impl Into<String>) -> Self
The explanation for why the log event is considered an anomaly.
sourcepub fn set_explanation(self, input: Option<String>) -> Self
pub fn set_explanation(self, input: Option<String>) -> Self
The explanation for why the log event is considered an anomaly.
sourcepub fn get_explanation(&self) -> &Option<String>
pub fn get_explanation(&self) -> &Option<String>
The explanation for why the log event is considered an anomaly.
sourcepub fn number_of_log_lines_occurrences(self, input: i32) -> Self
pub fn number_of_log_lines_occurrences(self, input: i32) -> Self
The number of log lines where this anomalous log event occurs.
sourcepub fn set_number_of_log_lines_occurrences(self, input: Option<i32>) -> Self
pub fn set_number_of_log_lines_occurrences(self, input: Option<i32>) -> Self
The number of log lines where this anomalous log event occurs.
sourcepub fn get_number_of_log_lines_occurrences(&self) -> &Option<i32>
pub fn get_number_of_log_lines_occurrences(&self) -> &Option<i32>
The number of log lines where this anomalous log event occurs.
sourcepub fn log_event_timestamp(self, input: DateTime) -> Self
pub fn log_event_timestamp(self, input: DateTime) -> Self
The time of the first occurrence of the anomalous log event.
sourcepub fn set_log_event_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_log_event_timestamp(self, input: Option<DateTime>) -> Self
The time of the first occurrence of the anomalous log event.
sourcepub fn get_log_event_timestamp(&self) -> &Option<DateTime>
pub fn get_log_event_timestamp(&self) -> &Option<DateTime>
The time of the first occurrence of the anomalous log event.
sourcepub fn build(self) -> LogAnomalyClass
pub fn build(self) -> LogAnomalyClass
Consumes the builder and constructs a LogAnomalyClass
.
Trait Implementations§
source§impl Clone for LogAnomalyClassBuilder
impl Clone for LogAnomalyClassBuilder
source§fn clone(&self) -> LogAnomalyClassBuilder
fn clone(&self) -> LogAnomalyClassBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LogAnomalyClassBuilder
impl Debug for LogAnomalyClassBuilder
source§impl Default for LogAnomalyClassBuilder
impl Default for LogAnomalyClassBuilder
source§fn default() -> LogAnomalyClassBuilder
fn default() -> LogAnomalyClassBuilder
source§impl PartialEq for LogAnomalyClassBuilder
impl PartialEq for LogAnomalyClassBuilder
source§fn eq(&self, other: &LogAnomalyClassBuilder) -> bool
fn eq(&self, other: &LogAnomalyClassBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.