Interface MetricDynamicAlertCondition.UpdateStages
- Enclosing interface:
- MetricDynamicAlertCondition
public static interface MetricDynamicAlertCondition.UpdateStages
Grouping of metric alert condition update stages.
-
Method Summary
Modifier and TypeMethodDescriptionparent()Returns back to the metric alert update flow.withCondition(MetricAlertRuleTimeAggregation timeAggregation, DynamicThresholdOperator condition, DynamicThresholdSensitivity sensitivity) Sets the condition to monitor for the current metric alert.withDimension(String dimensionName, String... values) Adds a metric dimension filter.withFailingPeriods(DynamicThresholdFailingPeriods failingPeriods) Sets the failing periods for triggering the alert.Sets the date from which to start learning the metric historical data and calculate the dynamic thresholds.withoutDimension(String dimensionName) Removes the specified dimension filter.Removes the date from which to start learning the metric historical data and calculate the dynamic thresholds.
-
Method Details
-
withCondition
MetricDynamicAlertCondition.UpdateStages withCondition(MetricAlertRuleTimeAggregation timeAggregation, DynamicThresholdOperator condition, DynamicThresholdSensitivity sensitivity) Sets the condition to monitor for the current metric alert.- Parameters:
condition- the criteria operator.timeAggregation- the criteria time aggregation types.sensitivity- the threshold sensitivity that activates the alert.- Returns:
- the next stage of metric alert condition definition.
-
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.
-
withFailingPeriods
MetricDynamicAlertCondition.UpdateStages withFailingPeriods(DynamicThresholdFailingPeriods failingPeriods) Sets the failing periods for triggering the alert.- Parameters:
failingPeriods- the failing periods for triggering the alert.- Returns:
- the next stage of metric alert condition definition.
-
withIgnoreDataBefore
Sets the date from which to start learning the metric historical data and calculate the dynamic thresholds.- Parameters:
date- the date from which to start learning the metric historical data and calculate the dynamic thresholds.- Returns:
- the next stage of metric alert condition definition.
-
withoutIgnoreDataBefore
MetricDynamicAlertCondition.UpdateStages withoutIgnoreDataBefore()Removes the date from which to start learning the metric historical data and calculate the dynamic thresholds.- 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.
-