Class Alert
- java.lang.Object
-
- software.amazon.awssdk.services.lookoutmetrics.model.Alert
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Alert.Builder,Alert>
@Generated("software.amazon.awssdk:codegen") public final class Alert extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Alert.Builder,Alert>
A configuration for Amazon SNS-integrated notifications.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAlert.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Actionaction()Action that will be triggered when there is an alert.StringalertArn()The ARN of the alert.StringalertDescription()A description of the alert.AlertFiltersalertFilters()The configuration of the alert filters, containing MetricList and DimensionFilter.StringalertName()The name of the alert.IntegeralertSensitivityThreshold()The minimum severity for an anomaly to trigger the alert.AlertStatusalertStatus()The status of the alert.StringalertStatusAsString()The status of the alert.AlertTypealertType()The type of the alert.StringalertTypeAsString()The type of the alert.StringanomalyDetectorArn()The ARN of the detector to which the alert is attached.static Alert.Builderbuilder()InstantcreationTime()The time at which the alert was created.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()InstantlastModificationTime()The time at which the alert was last modified.List<SdkField<?>>sdkFields()static Class<? extends Alert.Builder>serializableBuilderClass()Alert.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
action
public final Action action()
Action that will be triggered when there is an alert.
- Returns:
- Action that will be triggered when there is an alert.
-
alertDescription
public final String alertDescription()
A description of the alert.
- Returns:
- A description of the alert.
-
alertArn
public final String alertArn()
The ARN of the alert.
- Returns:
- The ARN of the alert.
-
anomalyDetectorArn
public final String anomalyDetectorArn()
The ARN of the detector to which the alert is attached.
- Returns:
- The ARN of the detector to which the alert is attached.
-
alertName
public final String alertName()
The name of the alert.
- Returns:
- The name of the alert.
-
alertSensitivityThreshold
public final Integer alertSensitivityThreshold()
The minimum severity for an anomaly to trigger the alert.
- Returns:
- The minimum severity for an anomaly to trigger the alert.
-
alertType
public final AlertType alertType()
The type of the alert.
If the service returns an enum value that is not available in the current SDK version,
alertTypewill returnAlertType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromalertTypeAsString().- Returns:
- The type of the alert.
- See Also:
AlertType
-
alertTypeAsString
public final String alertTypeAsString()
The type of the alert.
If the service returns an enum value that is not available in the current SDK version,
alertTypewill returnAlertType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromalertTypeAsString().- Returns:
- The type of the alert.
- See Also:
AlertType
-
alertStatus
public final AlertStatus alertStatus()
The status of the alert.
If the service returns an enum value that is not available in the current SDK version,
alertStatuswill returnAlertStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromalertStatusAsString().- Returns:
- The status of the alert.
- See Also:
AlertStatus
-
alertStatusAsString
public final String alertStatusAsString()
The status of the alert.
If the service returns an enum value that is not available in the current SDK version,
alertStatuswill returnAlertStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromalertStatusAsString().- Returns:
- The status of the alert.
- See Also:
AlertStatus
-
lastModificationTime
public final Instant lastModificationTime()
The time at which the alert was last modified.
- Returns:
- The time at which the alert was last modified.
-
creationTime
public final Instant creationTime()
The time at which the alert was created.
- Returns:
- The time at which the alert was created.
-
alertFilters
public final AlertFilters alertFilters()
The configuration of the alert filters, containing MetricList and DimensionFilter.
- Returns:
- The configuration of the alert filters, containing MetricList and DimensionFilter.
-
toBuilder
public Alert.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Alert.Builder,Alert>
-
builder
public static Alert.Builder builder()
-
serializableBuilderClass
public static Class<? extends Alert.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-