public static interface MetricAlert.UpdateStages.WithMetricUpdate
| Modifier and Type | Method and Description |
|---|---|
MetricAlertCondition.UpdateDefinitionStages.Blank.MetricName<MetricAlert.Update> |
defineAlertCriteria(String name)
Starts definition of the metric alert condition.
|
MetricDynamicAlertCondition.UpdateDefinitionStages.Blank.MetricName<MetricAlert.Update> |
defineDynamicAlertCriteria(String name)
Starts definition of the metric dynamic alert condition.
|
MetricAlertCondition.UpdateStages |
updateAlertCriteria(String name)
Starts update of the previously defined metric alert condition.
|
MetricDynamicAlertCondition.UpdateStages |
updateDynamicAlertCriteria(String name)
Starts update of the previously defined metric dynamic alert condition.
|
MetricAlert.Update |
withActionGroups(String... actionGroupId)
Sets the actions that will activate when the condition is met.
|
MetricAlert.Update |
withAutoMitigation()
Sets the flag that indicates the alert should be auto resolved.
|
MetricAlert.Update |
withDescription(String description)
Sets description for metric alert.
|
MetricAlert.Update |
withFrequency(Duration frequency)
Sets how often the metric alert is evaluated represented in ISO 8601 duration format.
|
MetricAlert.Update |
withoutActionGroup(String actionGroupId)
Removes the specified action group from the actions list.
|
MetricAlert.Update |
withoutAlertCriteria(String name)
Removes a condition from the previously defined metric alert conditions.
|
MetricAlert.Update |
withoutAutoMitigation()
Sets the flag that indicates the alert should not be auto resolved.
|
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.
|
MetricAlert.Update |
withRuleDisabled()
Sets metric alert as disabled.
|
MetricAlert.Update |
withRuleEnabled()
Sets metric alert as enabled.
|
MetricAlert.Update |
withSeverity(int severity)
Sets alert severity {0, 1, 2, 3, 4}.
|
MetricAlert.Update withPeriod(Duration size)
size - the windowSize value to setMetricAlert.Update withFrequency(Duration frequency)
frequency - the evaluationFrequency value to set.MetricAlert.Update withSeverity(int severity)
severity - the severity value to setMetricAlert.Update withDescription(String description)
description - Human readable text description of the metric alert.MetricAlert.Update withRuleEnabled()
MetricAlert.Update withRuleDisabled()
MetricAlert.Update withActionGroups(String... actionGroupId)
actionGroupId - resource Ids of the ActionGroup.MetricAlert.Update withoutActionGroup(String actionGroupId)
actionGroupId - resource Id of the ActionGroup to remove.MetricAlertCondition.UpdateDefinitionStages.Blank.MetricName<MetricAlert.Update> defineAlertCriteria(String name)
name - sets the name of the condition.MetricDynamicAlertCondition.UpdateDefinitionStages.Blank.MetricName<MetricAlert.Update> defineDynamicAlertCriteria(String name)
name - sets the name of the condition.MetricAlertCondition.UpdateStages updateAlertCriteria(String name)
name - name of the condition that should be updated.MetricDynamicAlertCondition.UpdateStages updateDynamicAlertCriteria(String name)
name - name of the condition that should be updated.MetricAlert.Update withoutAlertCriteria(String name)
name - name of the condition that should be removed.MetricAlert.Update withAutoMitigation()
MetricAlert.Update withoutAutoMitigation()
Copyright © 2020 Microsoft Corporation. All rights reserved.