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.
|
MetricAlertCondition.UpdateStages |
updateAlertCriteria(String name)
Starts update of the previously defined metric alert condition.
|
MetricAlert.Update |
withActionGroups(String... actionGroupId)
Sets the actions that will activate when the condition is met.
|
MetricAlert.Update |
withAutoMitigation()
Set the flag that indicates the alert should be auto resolved.
|
MetricAlert.Update |
withDescription(String description)
Sets description for metric alert.
|
MetricAlert.Update |
withFrequency(org.joda.time.Period frequency)
Set 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()
Set the flag that indicates the alert should not be auto resolved.
|
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.
|
MetricAlert.Update |
withRuleDisabled()
Sets metric alert as disabled.
|
MetricAlert.Update |
withRuleEnabled()
Sets metric alert as enabled.
|
MetricAlert.Update |
withSeverity(int severity)
Set alert severity {0, 1, 2, 3, 4}.
|
MetricAlert.Update withPeriod(org.joda.time.Period size)
size - the windowSize value to setMetricAlert.Update withFrequency(org.joda.time.Period 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.MetricAlertCondition.UpdateStages updateAlertCriteria(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 (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/