Struct aws_sdk_cloudwatchlogs::operation::update_log_anomaly_detector::builders::UpdateLogAnomalyDetectorInputBuilder
source · #[non_exhaustive]pub struct UpdateLogAnomalyDetectorInputBuilder { /* private fields */ }
Expand description
A builder for UpdateLogAnomalyDetectorInput
.
Implementations§
source§impl UpdateLogAnomalyDetectorInputBuilder
impl UpdateLogAnomalyDetectorInputBuilder
sourcepub fn anomaly_detector_arn(self, input: impl Into<String>) -> Self
pub fn anomaly_detector_arn(self, input: impl Into<String>) -> Self
The ARN of the anomaly detector that you want to update.
This field is required.sourcepub fn set_anomaly_detector_arn(self, input: Option<String>) -> Self
pub fn set_anomaly_detector_arn(self, input: Option<String>) -> Self
The ARN of the anomaly detector that you want to update.
sourcepub fn get_anomaly_detector_arn(&self) -> &Option<String>
pub fn get_anomaly_detector_arn(&self) -> &Option<String>
The ARN of the anomaly detector that you want to update.
sourcepub fn evaluation_frequency(self, input: EvaluationFrequency) -> Self
pub fn evaluation_frequency(self, input: EvaluationFrequency) -> Self
Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting evaluationFrequency
to FIFTEEN_MIN
might be appropriate.
sourcepub fn set_evaluation_frequency(
self,
input: Option<EvaluationFrequency>,
) -> Self
pub fn set_evaluation_frequency( self, input: Option<EvaluationFrequency>, ) -> Self
Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting evaluationFrequency
to FIFTEEN_MIN
might be appropriate.
sourcepub fn get_evaluation_frequency(&self) -> &Option<EvaluationFrequency>
pub fn get_evaluation_frequency(&self) -> &Option<EvaluationFrequency>
Specifies how often the anomaly detector runs and look for anomalies. Set this value according to the frequency that the log group receives new logs. For example, if the log group receives new log events every 10 minutes, then setting evaluationFrequency
to FIFTEEN_MIN
might be appropriate.
sourcepub fn filter_pattern(self, input: impl Into<String>) -> Self
pub fn filter_pattern(self, input: impl Into<String>) -> Self
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
sourcepub fn set_filter_pattern(self, input: Option<String>) -> Self
pub fn set_filter_pattern(self, input: Option<String>) -> Self
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
sourcepub fn get_filter_pattern(&self) -> &Option<String>
pub fn get_filter_pattern(&self) -> &Option<String>
A symbolic description of how CloudWatch Logs should interpret the data in each log event. For example, a log event can contain timestamps, IP addresses, strings, and so on. You use the filter pattern to specify what to look for in the log event message.
sourcepub fn anomaly_visibility_time(self, input: i64) -> Self
pub fn anomaly_visibility_time(self, input: i64) -> Self
The number of days to use as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.
sourcepub fn set_anomaly_visibility_time(self, input: Option<i64>) -> Self
pub fn set_anomaly_visibility_time(self, input: Option<i64>) -> Self
The number of days to use as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.
sourcepub fn get_anomaly_visibility_time(&self) -> &Option<i64>
pub fn get_anomaly_visibility_time(&self) -> &Option<i64>
The number of days to use as the life cycle of anomalies. After this time, anomalies are automatically baselined and the anomaly detector model will treat new occurrences of similar event as normal. Therefore, if you do not correct the cause of an anomaly during this time, it will be considered normal going forward and will not be detected.
sourcepub fn enabled(self, input: bool) -> Self
pub fn enabled(self, input: bool) -> Self
Use this parameter to pause or restart the anomaly detector.
This field is required.sourcepub fn set_enabled(self, input: Option<bool>) -> Self
pub fn set_enabled(self, input: Option<bool>) -> Self
Use this parameter to pause or restart the anomaly detector.
sourcepub fn get_enabled(&self) -> &Option<bool>
pub fn get_enabled(&self) -> &Option<bool>
Use this parameter to pause or restart the anomaly detector.
sourcepub fn build(self) -> Result<UpdateLogAnomalyDetectorInput, BuildError>
pub fn build(self) -> Result<UpdateLogAnomalyDetectorInput, BuildError>
Consumes the builder and constructs a UpdateLogAnomalyDetectorInput
.
source§impl UpdateLogAnomalyDetectorInputBuilder
impl UpdateLogAnomalyDetectorInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<UpdateLogAnomalyDetectorOutput, SdkError<UpdateLogAnomalyDetectorError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<UpdateLogAnomalyDetectorOutput, SdkError<UpdateLogAnomalyDetectorError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for UpdateLogAnomalyDetectorInputBuilder
impl Clone for UpdateLogAnomalyDetectorInputBuilder
source§fn clone(&self) -> UpdateLogAnomalyDetectorInputBuilder
fn clone(&self) -> UpdateLogAnomalyDetectorInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for UpdateLogAnomalyDetectorInputBuilder
impl Default for UpdateLogAnomalyDetectorInputBuilder
source§fn default() -> UpdateLogAnomalyDetectorInputBuilder
fn default() -> UpdateLogAnomalyDetectorInputBuilder
source§impl PartialEq for UpdateLogAnomalyDetectorInputBuilder
impl PartialEq for UpdateLogAnomalyDetectorInputBuilder
source§fn eq(&self, other: &UpdateLogAnomalyDetectorInputBuilder) -> bool
fn eq(&self, other: &UpdateLogAnomalyDetectorInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateLogAnomalyDetectorInputBuilder
Auto Trait Implementations§
impl Freeze for UpdateLogAnomalyDetectorInputBuilder
impl RefUnwindSafe for UpdateLogAnomalyDetectorInputBuilder
impl Send for UpdateLogAnomalyDetectorInputBuilder
impl Sync for UpdateLogAnomalyDetectorInputBuilder
impl Unpin for UpdateLogAnomalyDetectorInputBuilder
impl UnwindSafe for UpdateLogAnomalyDetectorInputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more