Struct aws_sdk_devopsguru::model::reactive_anomaly::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ReactiveAnomaly
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn severity(self, input: AnomalySeverity) -> Self
pub fn severity(self, input: AnomalySeverity) -> Self
The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide.
sourcepub fn set_severity(self, input: Option<AnomalySeverity>) -> Self
pub fn set_severity(self, input: Option<AnomalySeverity>) -> Self
The severity of the anomaly. The severity of anomalies that generate an insight determine that insight's severity. For more information, see Understanding insight severities in the Amazon DevOps Guru User Guide.
sourcepub fn status(self, input: AnomalyStatus) -> Self
pub fn status(self, input: AnomalyStatus) -> Self
The status of the anomaly.
sourcepub fn set_status(self, input: Option<AnomalyStatus>) -> Self
pub fn set_status(self, input: Option<AnomalyStatus>) -> Self
The status of the anomaly.
sourcepub fn anomaly_time_range(self, input: AnomalyTimeRange) -> Self
pub fn anomaly_time_range(self, input: AnomalyTimeRange) -> Self
A time range that specifies when the observed unusual behavior in an anomaly started and ended. This is different from AnomalyReportedTimeRange
, which specifies the time range when DevOps Guru opens and then closes an anomaly.
sourcepub fn set_anomaly_time_range(self, input: Option<AnomalyTimeRange>) -> Self
pub fn set_anomaly_time_range(self, input: Option<AnomalyTimeRange>) -> Self
A time range that specifies when the observed unusual behavior in an anomaly started and ended. This is different from AnomalyReportedTimeRange
, which specifies the time range when DevOps Guru opens and then closes an anomaly.
sourcepub fn anomaly_reported_time_range(self, input: AnomalyReportedTimeRange) -> Self
pub fn anomaly_reported_time_range(self, input: AnomalyReportedTimeRange) -> Self
An AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.
sourcepub fn set_anomaly_reported_time_range(
self,
input: Option<AnomalyReportedTimeRange>
) -> Self
pub fn set_anomaly_reported_time_range(
self,
input: Option<AnomalyReportedTimeRange>
) -> Self
An AnomalyReportedTimeRange
object that specifies the time range between when the anomaly is opened and the time when it is closed.
sourcepub fn source_details(self, input: AnomalySourceDetails) -> Self
pub fn source_details(self, input: AnomalySourceDetails) -> Self
Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is Amazon CloudWatch metrics.
sourcepub fn set_source_details(self, input: Option<AnomalySourceDetails>) -> Self
pub fn set_source_details(self, input: Option<AnomalySourceDetails>) -> Self
Details about the source of the analyzed operational data that triggered the anomaly. The one supported source is Amazon CloudWatch metrics.
sourcepub fn associated_insight_id(self, input: impl Into<String>) -> Self
pub fn associated_insight_id(self, input: impl Into<String>) -> Self
The ID of the insight that contains this anomaly. An insight is composed of related anomalies.
sourcepub fn set_associated_insight_id(self, input: Option<String>) -> Self
pub fn set_associated_insight_id(self, input: Option<String>) -> Self
The ID of the insight that contains this anomaly. An insight is composed of related anomalies.
sourcepub fn resource_collection(self, input: ResourceCollection) -> Self
pub fn resource_collection(self, input: ResourceCollection) -> Self
A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
sourcepub fn set_resource_collection(self, input: Option<ResourceCollection>) -> Self
pub fn set_resource_collection(self, input: Option<ResourceCollection>) -> Self
A collection of Amazon Web Services resources supported by DevOps Guru. The two types of Amazon Web Services resource collections supported are Amazon Web Services CloudFormation stacks and Amazon Web Services resources that contain the same Amazon Web Services tag. DevOps Guru can be configured to analyze the Amazon Web Services resources that are defined in the stacks or that are tagged using the same tag key. You can specify up to 500 Amazon Web Services CloudFormation stacks.
sourcepub fn type(self, input: AnomalyType) -> Self
pub fn type(self, input: AnomalyType) -> Self
The type of the reactive anomaly. It can be one of the following types.
-
CAUSAL
- the anomaly can cause a new insight. -
CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
sourcepub fn set_type(self, input: Option<AnomalyType>) -> Self
pub fn set_type(self, input: Option<AnomalyType>) -> Self
The type of the reactive anomaly. It can be one of the following types.
-
CAUSAL
- the anomaly can cause a new insight. -
CONTEXTUAL
- the anomaly contains additional information about an insight or its causal anomaly.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the reactive anomaly.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the reactive anomaly.
sourcepub fn causal_anomaly_id(self, input: impl Into<String>) -> Self
pub fn causal_anomaly_id(self, input: impl Into<String>) -> Self
The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly is always `NULL`.
sourcepub fn set_causal_anomaly_id(self, input: Option<String>) -> Self
pub fn set_causal_anomaly_id(self, input: Option<String>) -> Self
The ID of the causal anomaly that is associated with this reactive anomaly. The ID of a `CAUSAL` anomaly is always `NULL`.
sourcepub fn anomaly_resources(self, input: AnomalyResource) -> Self
pub fn anomaly_resources(self, input: AnomalyResource) -> Self
Appends an item to anomaly_resources
.
To override the contents of this collection use set_anomaly_resources
.
The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru.
sourcepub fn set_anomaly_resources(self, input: Option<Vec<AnomalyResource>>) -> Self
pub fn set_anomaly_resources(self, input: Option<Vec<AnomalyResource>>) -> Self
The Amazon Web Services resources in which anomalous behavior was detected by DevOps Guru.
sourcepub fn build(self) -> ReactiveAnomaly
pub fn build(self) -> ReactiveAnomaly
Consumes the builder and constructs a ReactiveAnomaly
.