public interface MetricAlert extends GroupableResource<MonitorManager,MetricAlertResourceInner>, Refreshable<MetricAlert>, Updatable<MetricAlert.Update>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MetricAlert.Definition
The entirety of a Metric Alert definition.
|
static interface |
MetricAlert.DefinitionMultipleResource
Metric Alert definition for multiple resource.
|
static interface |
MetricAlert.DefinitionStages
Grouping of metric alerts definition stages.
|
static interface |
MetricAlert.Update
The template for an update operation, containing all the settings that can be modified.
|
static interface |
MetricAlert.UpdateStages
Grouping of metric alerts update stages.
|
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T>| Modifier and Type | Method and Description |
|---|---|
Collection<String> |
actionGroupIds()
Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is
resolved.
|
Map<String,MetricAlertCondition> |
alertCriterias() |
boolean |
autoMitigate()
Get the flag that indicates whether the alert should be auto resolved or not.
|
String |
description()
Get the description of the metric alert that will be included in the alert email.
|
Map<String,MetricDynamicAlertCondition> |
dynamicAlertCriterias() |
boolean |
enabled()
Get the flag that indicates whether the metric alert is enabled.
|
Duration |
evaluationFrequency()
Get how often the metric alert is evaluated represented in ISO 8601 duration format.
|
OffsetDateTime |
lastUpdatedTime()
Get last time the rule was updated in ISO8601 format.
|
Collection<String> |
scopes()
Get the list of resource id's that this metric alert is scoped to.
|
int |
severity()
Get alert severity {0, 1, 2, 3, 4}.
|
Duration |
windowSize()
Get the Duration of time (in ISO 8601 duration format) that is used to monitor alert activity based on the
threshold.
|
region, regionName, tags, typenameresourceGroupNamemanagerinnerModelrefresh, refreshAsyncString description()
int severity()
boolean enabled()
Collection<String> scopes()
Duration evaluationFrequency()
Duration windowSize()
Map<String,MetricAlertCondition> alertCriterias()
Map<String,MetricDynamicAlertCondition> dynamicAlertCriterias()
boolean autoMitigate()
Collection<String> actionGroupIds()
OffsetDateTime lastUpdatedTime()
Copyright © 2020 Microsoft Corporation. All rights reserved.