Interface MetricAlert.UpdateStages.WithMetricUpdate
-
- All Known Subinterfaces:
MetricAlert.Update
- Enclosing interface:
- MetricAlert.UpdateStages
public static interface MetricAlert.UpdateStages.WithMetricUpdateThe stage of a metric alerts update allowing to modify settings.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MetricAlertCondition.UpdateDefinitionStages.Blank.MetricName<MetricAlert.Update>defineAlertCriteria(String name)Starts definition of the metric alert condition.MetricAlertCondition.UpdateStagesupdateAlertCriteria(String name)Starts update of the previously defined metric alert condition.MetricAlert.UpdatewithActionGroups(String... actionGroupId)Sets the actions that will activate when the condition is met.MetricAlert.UpdatewithAutoMitigation()Set the flag that indicates the alert should be auto resolved.MetricAlert.UpdatewithDescription(String description)Sets description for metric alert.MetricAlert.UpdatewithFrequency(org.joda.time.Period frequency)Set how often the metric alert is evaluated represented in ISO 8601 duration format.MetricAlert.UpdatewithoutActionGroup(String actionGroupId)Removes the specified action group from the actions list.MetricAlert.UpdatewithoutAlertCriteria(String name)Removes a condition from the previously defined metric alert conditions.MetricAlert.UpdatewithoutAutoMitigation()Set the flag that indicates the alert should not be auto resolved.MetricAlert.UpdatewithPeriod(org.joda.time.Period size)Sets the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.MetricAlert.UpdatewithRuleDisabled()Sets metric alert as disabled.MetricAlert.UpdatewithRuleEnabled()Sets metric alert as enabled.MetricAlert.UpdatewithSeverity(int severity)Set alert severity {0, 1, 2, 3, 4}.
-
-
-
Method Detail
-
withPeriod
MetricAlert.Update withPeriod(org.joda.time.Period size)
Sets the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.- Parameters:
size- the windowSize value to set- Returns:
- the next stage of the metric alert update.
-
withFrequency
MetricAlert.Update withFrequency(org.joda.time.Period frequency)
Set how often the metric alert is evaluated represented in ISO 8601 duration format.- Parameters:
frequency- the evaluationFrequency value to set.- Returns:
- the next stage of the metric alert update.
-
withSeverity
MetricAlert.Update withSeverity(int severity)
Set alert severity {0, 1, 2, 3, 4}.- Parameters:
severity- the severity value to set- Returns:
- the next stage of the metric alert update.
-
withDescription
MetricAlert.Update withDescription(String description)
Sets description for metric alert.- Parameters:
description- Human readable text description of the metric alert.- Returns:
- the next stage of the metric alert update.
-
withRuleEnabled
MetricAlert.Update withRuleEnabled()
Sets metric alert as enabled.- Returns:
- the next stage of the metric alert update.
-
withRuleDisabled
MetricAlert.Update withRuleDisabled()
Sets metric alert as disabled.- Returns:
- the next stage of the metric alert update.
-
withActionGroups
MetricAlert.Update withActionGroups(String... actionGroupId)
Sets the actions that will activate when the condition is met.- Parameters:
actionGroupId- resource Ids of theActionGroup.- Returns:
- the next stage of the metric alert update.
-
withoutActionGroup
MetricAlert.Update withoutActionGroup(String actionGroupId)
Removes the specified action group from the actions list.- Parameters:
actionGroupId- resource Id of theActionGroupto remove.- Returns:
- the next stage of the metric alert update.
-
defineAlertCriteria
MetricAlertCondition.UpdateDefinitionStages.Blank.MetricName<MetricAlert.Update> defineAlertCriteria(String name)
Starts definition of the metric alert condition.- Parameters:
name- sets the name of the condition.- Returns:
- the next stage of the metric alert update.
-
updateAlertCriteria
MetricAlertCondition.UpdateStages updateAlertCriteria(String name)
Starts update of the previously defined metric alert condition.- Parameters:
name- name of the condition that should be updated.- Returns:
- the next stage of the metric alert update.
-
withoutAlertCriteria
MetricAlert.Update withoutAlertCriteria(String name)
Removes a condition from the previously defined metric alert conditions.- Parameters:
name- name of the condition that should be removed.- Returns:
- the next stage of the metric alert update.
-
withAutoMitigation
MetricAlert.Update withAutoMitigation()
Set the flag that indicates the alert should be auto resolved.- Returns:
- the next stage of the metric alert update.
-
withoutAutoMitigation
MetricAlert.Update withoutAutoMitigation()
Set the flag that indicates the alert should not be auto resolved.- Returns:
- the next stage of the metric alert update.
-
-