Interface MetricDynamicAlertCondition.UpdateDefinitionStages.WithConditionAttach<ParentT>
- Type Parameters:
ParentT- the stage of the parent Metric Alert definition to return to after attaching this definition
- Enclosing interface:
- MetricDynamicAlertCondition.UpdateDefinitionStages
public static interface MetricDynamicAlertCondition.UpdateDefinitionStages.WithConditionAttach<ParentT>
The stage of the definition which specifies metric alert additional filtering options.
-
Method Summary
Modifier and TypeMethodDescriptionattach()Attaches the defined condition to the parent metric alert.withDimension(String dimensionName, String... values) Adds a metric dimension filter.Sets the date from which to start learning the metric historical data and calculate the dynamic thresholds.
-
Method Details
-
withIgnoreDataBefore
MetricDynamicAlertCondition.UpdateDefinitionStages.WithConditionAttach<ParentT> 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.
-
withDimension
MetricDynamicAlertCondition.UpdateDefinitionStages.WithConditionAttach<ParentT> 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 metric alert condition definition.
-
attach
ParentT attach()Attaches the defined condition to the parent metric alert.- Returns:
- the next stage of metric alert definition.
-