Interface Alert.Builder

    • Method Detail

      • action

        Alert.Builder action​(Action action)

        Action that will be triggered when there is an alert.

        Parameters:
        action - Action that will be triggered when there is an alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alertDescription

        Alert.Builder alertDescription​(String alertDescription)

        A description of the alert.

        Parameters:
        alertDescription - A description of the alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alertArn

        Alert.Builder alertArn​(String alertArn)

        The ARN of the alert.

        Parameters:
        alertArn - The ARN of the alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • anomalyDetectorArn

        Alert.Builder anomalyDetectorArn​(String anomalyDetectorArn)

        The ARN of the detector to which the alert is attached.

        Parameters:
        anomalyDetectorArn - The ARN of the detector to which the alert is attached.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alertName

        Alert.Builder alertName​(String alertName)

        The name of the alert.

        Parameters:
        alertName - The name of the alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alertSensitivityThreshold

        Alert.Builder alertSensitivityThreshold​(Integer alertSensitivityThreshold)

        The minimum severity for an anomaly to trigger the alert.

        Parameters:
        alertSensitivityThreshold - The minimum severity for an anomaly to trigger the alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alertType

        Alert.Builder alertType​(String alertType)

        The type of the alert.

        Parameters:
        alertType - The type of the alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AlertType, AlertType
      • alertType

        Alert.Builder alertType​(AlertType alertType)

        The type of the alert.

        Parameters:
        alertType - The type of the alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AlertType, AlertType
      • alertStatus

        Alert.Builder alertStatus​(String alertStatus)

        The status of the alert.

        Parameters:
        alertStatus - The status of the alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AlertStatus, AlertStatus
      • alertStatus

        Alert.Builder alertStatus​(AlertStatus alertStatus)

        The status of the alert.

        Parameters:
        alertStatus - The status of the alert.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        AlertStatus, AlertStatus
      • lastModificationTime

        Alert.Builder lastModificationTime​(Instant lastModificationTime)

        The time at which the alert was last modified.

        Parameters:
        lastModificationTime - The time at which the alert was last modified.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • creationTime

        Alert.Builder creationTime​(Instant creationTime)

        The time at which the alert was created.

        Parameters:
        creationTime - The time at which the alert was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • alertFilters

        Alert.Builder alertFilters​(AlertFilters alertFilters)

        The configuration of the alert filters, containing MetricList and DimensionFilter.

        Parameters:
        alertFilters - The configuration of the alert filters, containing MetricList and DimensionFilter.
        Returns:
        Returns a reference to this object so that method calls can be chained together.