Interface MetricAlert
- All Superinterfaces:
GroupableResource<MonitorManager,
,MetricAlertResourceInner> HasId
,HasInnerModel<MetricAlertResourceInner>
,HasManager<MonitorManager>
,HasName
,HasResourceGroup
,Indexable
,Refreshable<MetricAlert>
,Resource
,Updatable<MetricAlert.Update>
public interface MetricAlert
extends GroupableResource<MonitorManager,MetricAlertResourceInner>, Refreshable<MetricAlert>, Updatable<MetricAlert.Update>
An immutable client-side representation of a Metric Alert.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
The entirety of a Metric Alert definition.static interface
Metric Alert definition for multiple resource.static interface
Grouping of metric alerts definition stages.static interface
The template for an update operation, containing all the settings that can be modified.static interface
Grouping of metric alerts update stages.Nested classes/interfaces inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T>, Resource.DefinitionWithTags<T>, Resource.UpdateWithTags<T>
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.Gets metric alert criterias, indexed by name.boolean
Get the flag that indicates whether the alert should be auto resolved or not.Get the description of the metric alert that will be included in the alert email.Gets metric dynamic alert criterias, indexed by name.boolean
enabled()
Get the flag that indicates whether the metric alert is enabled.Get how often the metric alert is evaluated represented in ISO 8601 duration format.Get last time the rule was updated in ISO8601 format.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}.Get the Duration of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModel
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
manager
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
name
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupName
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsync
Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
region, regionName, tags, type
-
Method Details
-
description
String description()Get the description of the metric alert that will be included in the alert email.- Returns:
- the description value
-
severity
int severity()Get alert severity {0, 1, 2, 3, 4}.- Returns:
- the severity value
-
enabled
boolean enabled()Get the flag that indicates whether the metric alert is enabled.- Returns:
- the enabled value
-
scopes
Collection<String> scopes()Get the list of resource id's that this metric alert is scoped to.- Returns:
- the scopes value
-
evaluationFrequency
Duration evaluationFrequency()Get how often the metric alert is evaluated represented in ISO 8601 duration format.- Returns:
- the evaluationFrequency value
-
windowSize
Duration windowSize()Get the Duration of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.- Returns:
- the windowSize value
-
alertCriterias
Map<String,MetricAlertCondition> alertCriterias()Gets metric alert criterias, indexed by name.- Returns:
- metric alert criterias, indexed by name
-
dynamicAlertCriterias
Map<String,MetricDynamicAlertCondition> dynamicAlertCriterias()Gets metric dynamic alert criterias, indexed by name.- Returns:
- metric dynamic alert criterias, indexed by name
-
autoMitigate
boolean autoMitigate()Get the flag that indicates whether the alert should be auto resolved or not.- Returns:
- the autoMitigate value
-
actionGroupIds
Collection<String> actionGroupIds()Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.- Returns:
- the actions value
-
lastUpdatedTime
OffsetDateTime lastUpdatedTime()Get last time the rule was updated in ISO8601 format.- Returns:
- the lastUpdatedTime value
-