Interface MetricDynamicAlertCondition.UpdateStages
-
- Enclosing interface:
- MetricDynamicAlertCondition
public static interface MetricDynamicAlertCondition.UpdateStagesGrouping of metric alert condition update stages.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricAlert.Updateparent()Returns back to the metric alert update flow.MetricDynamicAlertCondition.UpdateStageswithCondition(MetricAlertRuleTimeAggregation timeAggregation, DynamicThresholdOperator condition, DynamicThresholdSensitivity sensitivity)Sets the condition to monitor for the current metric alert.MetricDynamicAlertCondition.UpdateStageswithDimension(String dimensionName, String... values)Adds a metric dimension filter.MetricDynamicAlertCondition.UpdateStageswithFailingPeriods(DynamicThresholdFailingPeriods failingPeriods)Sets the failing periods for triggering the alert.MetricDynamicAlertCondition.UpdateStageswithIgnoreDataBefore(OffsetDateTime date)Sets the date from which to start learning the metric historical data and calculate the dynamic thresholds.MetricDynamicAlertCondition.UpdateStageswithoutDimension(String dimensionName)Removes the specified dimension filter.MetricDynamicAlertCondition.UpdateStageswithoutIgnoreDataBefore()Removes the date from which to start learning the metric historical data and calculate the dynamic thresholds.
-
-
-
Method Detail
-
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
MetricDynamicAlertCondition.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
MetricDynamicAlertCondition.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.
-
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
MetricDynamicAlertCondition.UpdateStages withIgnoreDataBefore(OffsetDateTime date)
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.
-
-