Interface UpdateAnomalyRequest.Builder

    • Method Detail

      • anomalyId

        UpdateAnomalyRequest.Builder anomalyId​(String anomalyId)

        If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.

        Parameters:
        anomalyId - If you are suppressing or unsuppressing an anomaly, specify its unique ID here. You can find anomaly IDs by using the ListAnomalies operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • patternId

        UpdateAnomalyRequest.Builder patternId​(String patternId)

        If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.

        Parameters:
        patternId - If you are suppressing or unsuppressing an pattern, specify its unique ID here. You can find pattern IDs by using the ListAnomalies operation.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • anomalyDetectorArn

        UpdateAnomalyRequest.Builder anomalyDetectorArn​(String anomalyDetectorArn)

        The ARN of the anomaly detector that this operation is to act on.

        Parameters:
        anomalyDetectorArn - The ARN of the anomaly detector that this operation is to act on.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • suppressionType

        UpdateAnomalyRequest.Builder suppressionType​(String suppressionType)

        Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.

        Parameters:
        suppressionType - Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SuppressionType, SuppressionType
      • suppressionType

        UpdateAnomalyRequest.Builder suppressionType​(SuppressionType suppressionType)

        Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.

        Parameters:
        suppressionType - Use this to specify whether the suppression to be temporary or infinite. If you specify LIMITED, you must also specify a suppressionPeriod. If you specify INFINITE, any value for suppressionPeriod is ignored.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        SuppressionType, SuppressionType
      • suppressionPeriod

        UpdateAnomalyRequest.Builder suppressionPeriod​(SuppressionPeriod suppressionPeriod)

        If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.

        Parameters:
        suppressionPeriod - If you are temporarily suppressing an anomaly or pattern, use this structure to specify how long the suppression is to last.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • baseline

        UpdateAnomalyRequest.Builder baseline​(Boolean baseline)

        Set this to true to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as baseline behavior. However, if similar but more severe occurrences of this behavior occur in the future, those will still be reported as anomalies.

        The default is false

        Parameters:
        baseline - Set this to true to prevent CloudWatch Logs from displaying this behavior as an anomaly in the future. The behavior is then treated as baseline behavior. However, if similar but more severe occurrences of this behavior occur in the future, those will still be reported as anomalies.

        The default is false

        Returns:
        Returns a reference to this object so that method calls can be chained together.