public static interface Alert.Builder extends SdkPojo, CopyableBuilder<Alert.Builder,Alert>
| Modifier and Type | Method and Description |
|---|---|
Alert.Builder |
action(Action action)
Action that will be triggered when there is an alert.
|
default Alert.Builder |
action(Consumer<Action.Builder> action)
Action that will be triggered when there is an alert.
|
Alert.Builder |
alertArn(String alertArn)
The ARN of the alert.
|
Alert.Builder |
alertDescription(String alertDescription)
A description of the alert.
|
Alert.Builder |
alertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
|
default Alert.Builder |
alertFilters(Consumer<AlertFilters.Builder> alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
|
Alert.Builder |
alertName(String alertName)
The name of the alert.
|
Alert.Builder |
alertSensitivityThreshold(Integer alertSensitivityThreshold)
The minimum severity for an anomaly to trigger the alert.
|
Alert.Builder |
alertStatus(AlertStatus alertStatus)
The status of the alert.
|
Alert.Builder |
alertStatus(String alertStatus)
The status of the alert.
|
Alert.Builder |
alertType(AlertType alertType)
The type of the alert.
|
Alert.Builder |
alertType(String alertType)
The type of the alert.
|
Alert.Builder |
anomalyDetectorArn(String anomalyDetectorArn)
The ARN of the detector to which the alert is attached.
|
Alert.Builder |
creationTime(Instant creationTime)
The time at which the alert was created.
|
Alert.Builder |
lastModificationTime(Instant lastModificationTime)
The time at which the alert was last modified.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildAlert.Builder action(Action action)
Action that will be triggered when there is an alert.
action - Action that will be triggered when there is an alert.default Alert.Builder action(Consumer<Action.Builder> action)
Action that will be triggered when there is an alert.
This is a convenience method that creates an instance of theAction.Builder avoiding the need to
create one manually via Action.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to action(Action).
action - a consumer that will call methods on Action.Builderaction(Action)Alert.Builder alertDescription(String alertDescription)
A description of the alert.
alertDescription - A description of the alert.Alert.Builder alertArn(String alertArn)
The ARN of the alert.
alertArn - The ARN of the alert.Alert.Builder anomalyDetectorArn(String anomalyDetectorArn)
The ARN of the detector to which the alert is attached.
anomalyDetectorArn - The ARN of the detector to which the alert is attached.Alert.Builder alertName(String alertName)
The name of the alert.
alertName - The name of the alert.Alert.Builder alertSensitivityThreshold(Integer alertSensitivityThreshold)
The minimum severity for an anomaly to trigger the alert.
alertSensitivityThreshold - The minimum severity for an anomaly to trigger the alert.Alert.Builder alertType(String alertType)
The type of the alert.
Alert.Builder alertType(AlertType alertType)
The type of the alert.
Alert.Builder alertStatus(String alertStatus)
The status of the alert.
alertStatus - The status of the alert.AlertStatus,
AlertStatusAlert.Builder alertStatus(AlertStatus alertStatus)
The status of the alert.
alertStatus - The status of the alert.AlertStatus,
AlertStatusAlert.Builder lastModificationTime(Instant lastModificationTime)
The time at which the alert was last modified.
lastModificationTime - The time at which the alert was last modified.Alert.Builder creationTime(Instant creationTime)
The time at which the alert was created.
creationTime - The time at which the alert was created.Alert.Builder alertFilters(AlertFilters alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
alertFilters - The configuration of the alert filters, containing MetricList and DimensionFilter.default Alert.Builder alertFilters(Consumer<AlertFilters.Builder> alertFilters)
The configuration of the alert filters, containing MetricList and DimensionFilter.
This is a convenience method that creates an instance of theAlertFilters.Builder avoiding the need
to create one manually via AlertFilters.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its
result is passed to alertFilters(AlertFilters).
alertFilters - a consumer that will call methods on AlertFilters.BuilderalertFilters(AlertFilters)Copyright © 2023. All rights reserved.