MetricAlert Interface
Implements
public interface MetricAlert
extends GroupableResource<MonitorManager,MetricAlertResourceInner>, Refreshable<MetricAlert>, Updatable<Update>
An immutable client-side representation of a Metric Alert.
Method Summary
Modifier and Type | Method and Description |
---|---|
abstract Collection<String> |
actionGroupIds()
Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved. |
abstract
Map<String,Metric |
alertCriterias() |
abstract boolean |
autoMitigate()
Get the flag that indicates whether the alert should be auto resolved or not. |
abstract String |
description()
Get the description of the metric alert that will be included in the alert email. |
abstract
Map<String,Metric |
dynamicAlertCriterias() |
abstract boolean |
enabled()
Get the flag that indicates whether the metric alert is enabled. |
abstract Duration |
evaluationFrequency()
Get how often the metric alert is evaluated represented in ISO 8601 duration format. |
abstract
Offset |
lastUpdatedTime()
Get last time the rule was updated in ISO8601 format. |
abstract Collection<String> |
scopes()
Get the list of resource id's that this metric alert is scoped to. |
abstract int |
severity()
Get alert severity {0, 1, 2, 3, 4}. |
abstract Duration |
windowSize()
Get the Duration of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold. |
Method Details
actionGroupIds
public abstract Collection
Get the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.
Returns:
alertCriterias
public abstract Map
Returns:
autoMitigate
public abstract boolean autoMitigate()
Get the flag that indicates whether the alert should be auto resolved or not.
Returns:
description
public abstract String description()
Get the description of the metric alert that will be included in the alert email.
Returns:
dynamicAlertCriterias
public abstract Map
Returns:
enabled
public abstract boolean enabled()
Get the flag that indicates whether the metric alert is enabled.
Returns:
evaluationFrequency
public abstract Duration evaluationFrequency()
Get how often the metric alert is evaluated represented in ISO 8601 duration format.
Returns:
lastUpdatedTime
public abstract OffsetDateTime lastUpdatedTime()
Get last time the rule was updated in ISO8601 format.
Returns:
scopes
public abstract Collection
Get the list of resource id's that this metric alert is scoped to.
Returns:
severity
public abstract int severity()
Get alert severity {0, 1, 2, 3, 4}.
Returns:
windowSize
public abstract Duration windowSize()
Get the Duration of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.
Returns:
Applies to
Azure SDK for Java