Interface MetricAlertCondition.UpdateStages

  • Enclosing interface:
    MetricAlertCondition

    public static interface MetricAlertCondition.UpdateStages
    Grouping of metric alert condition update stages.
    • Method Detail

      • withCondition

        MetricAlertCondition.UpdateStages withCondition​(MetricAlertRuleTimeAggregation timeAggregation,
                                                        MetricAlertRuleCondition condition,
                                                        double threshold)
        Sets the condition to monitor for the current metric alert.
        Parameters:
        condition - the criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.
        timeAggregation - the criteria time aggregation types. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total'.
        threshold - the criteria threshold value that activates the alert.
        Returns:
        the next stage of the metric alert condition update.
      • withDimension

        MetricAlertCondition.UpdateStages withDimension​(String dimensionName,
                                                        String... values)
        Adds a metric dimension filter.
        Parameters:
        dimensionName - the name of the dimension.
        values - list of dimension values to alert on.
        Returns:
        the next stage of the metric alert condition update.
      • withoutDimension

        MetricAlertCondition.UpdateStages withoutDimension​(String dimensionName)
        Removes the specified dimension filter.
        Parameters:
        dimensionName - dimensionName the name of the dimension.
        Returns:
        the next stage of the metric alert condition update.
      • parent

        MetricAlert.Update parent()
        Returns back to the metric alert update flow.
        Returns:
        the next stage of the metric alert update.