Interface MetricAlertCondition.UpdateStages
- Enclosing interface:
MetricAlertCondition
public static interface MetricAlertCondition.UpdateStages
Grouping of metric alert condition update stages.
-
Method Summary
Modifier and TypeMethodDescriptionparent()Returns back to the metric alert update flow.withCondition(MetricAlertRuleTimeAggregation timeAggregation, MetricAlertRuleCondition condition, double threshold) Sets the condition to monitor for the current metric alert.withDimension(String dimensionName, String... values) Adds a metric dimension filter.withoutDimension(String dimensionName) Removes the specified dimension filter.
-
Method Details
-
withCondition
MetricAlertCondition.UpdateStages withCondition(MetricAlertRuleTimeAggregation timeAggregation, MetricAlertRuleCondition condition, double threshold) Sets the condition to monitor for the current metric alert.- Parameters:
timeAggregation- the criteria time aggregation types. Possible values include: 'Average', 'Minimum', 'Maximum', 'Total'.condition- the criteria operator. Possible values include: 'Equals', 'NotEquals', 'GreaterThan', 'GreaterThanOrEqual', 'LessThan', 'LessThanOrEqual'.threshold- the criteria threshold value that activates the alert.- Returns:
- the next stage of the metric alert condition update.
-
withDimension
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
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.
-