Struct aws_sdk_devopsguru::model::log_anomaly_class::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for LogAnomalyClass
.
Implementations§
source§impl Builder
impl Builder
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 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 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 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 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 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 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 build(self) -> LogAnomalyClass
pub fn build(self) -> LogAnomalyClass
Consumes the builder and constructs a LogAnomalyClass
.