MetricAlert.UpdateStages.WithMetricUpdate Interface
public static interface MetricAlert.UpdateStages.WithMetricUpdate
The stage of a metric alerts update allowing to modify settings.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract
Metric |
defineAlertCriteria(String name)
Starts definition of the metric alert condition. |
abstract
Metric |
defineDynamicAlertCriteria(String name)
Starts definition of the metric dynamic alert condition. |
abstract
Update |
updateAlertCriteria(String name)
Starts update of the previously defined metric alert condition. |
abstract
Update |
updateDynamicAlertCriteria(String name)
Starts update of the previously defined metric dynamic alert condition. |
abstract Update |
withActionGroups(String[] actionGroupId)
Sets the actions that will activate when the condition is met. |
abstract Update |
withAutoMitigation()
Sets the flag that indicates the alert should be auto resolved. |
abstract Update |
withDescription(String description)
Sets description for metric alert. |
abstract Update |
withFrequency(Duration frequency)
Sets how often the metric alert is evaluated represented in ISO 8601 duration format. |
abstract Update |
withPeriod(Duration size)
Sets the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. |
abstract Update |
withRuleDisabled()
Sets metric alert as disabled. |
abstract Update |
withRuleEnabled()
Sets metric alert as enabled. |
abstract Update |
withSeverity(int severity)
Sets alert severity {0, 1, 2, 3, 4}. |
abstract Update |
withoutActionGroup(String actionGroupId)
Removes the specified action group from the actions list. |
abstract Update |
withoutAlertCriteria(String name)
Removes a condition from the previously defined metric alert conditions. |
abstract Update |
withoutAutoMitigation()
Sets the flag that indicates the alert should not be auto resolved. |
Method Details
defineAlertCriteria
public abstract MetricAlertCondition.UpdateDefinitionStages.Blank.MetricName
Starts definition of the metric alert condition.
Parameters:
Returns:
defineDynamicAlertCriteria
public abstract MetricDynamicAlertCondition.UpdateDefinitionStages.Blank.MetricName
Starts definition of the metric dynamic alert condition.
Parameters:
Returns:
updateAlertCriteria
public abstract MetricAlertCondition.UpdateStages updateAlertCriteria(String name)
Starts update of the previously defined metric alert condition.
Parameters:
Returns:
updateDynamicAlertCriteria
public abstract MetricDynamicAlertCondition.UpdateStages updateDynamicAlertCriteria(String name)
Starts update of the previously defined metric dynamic alert condition.
Parameters:
Returns:
withActionGroups
public abstract MetricAlert.Update withActionGroups(String[] actionGroupId)
Sets the actions that will activate when the condition is met.
Parameters:
Returns:
withAutoMitigation
public abstract MetricAlert.Update withAutoMitigation()
Sets the flag that indicates the alert should be auto resolved.
Returns:
withDescription
public abstract MetricAlert.Update withDescription(String description)
Sets description for metric alert.
Parameters:
Returns:
withFrequency
public abstract MetricAlert.Update withFrequency(Duration frequency)
Sets how often the metric alert is evaluated represented in ISO 8601 duration format.
Parameters:
Returns:
withPeriod
public abstract MetricAlert.Update withPeriod(Duration size)
Sets the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
Parameters:
Returns:
withRuleDisabled
public abstract MetricAlert.Update withRuleDisabled()
Sets metric alert as disabled.
Returns:
withRuleEnabled
public abstract MetricAlert.Update withRuleEnabled()
Sets metric alert as enabled.
Returns:
withSeverity
public abstract MetricAlert.Update withSeverity(int severity)
Sets alert severity {0, 1, 2, 3, 4}.
Parameters:
Returns:
withoutActionGroup
public abstract MetricAlert.Update withoutActionGroup(String actionGroupId)
Removes the specified action group from the actions list.
Parameters:
Returns:
withoutAlertCriteria
public abstract MetricAlert.Update withoutAlertCriteria(String name)
Removes a condition from the previously defined metric alert conditions.
Parameters:
Returns:
withoutAutoMitigation
public abstract MetricAlert.Update withoutAutoMitigation()
Sets the flag that indicates the alert should not be auto resolved.
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for