Delen via


MetricAlertResourcePatch Class

Definition

The metric alert resource for patch operations.

[Microsoft.Rest.Serialization.JsonTransformation]
public class MetricAlertResourcePatch
[<Microsoft.Rest.Serialization.JsonTransformation>]
type MetricAlertResourcePatch = class
Public Class MetricAlertResourcePatch
Inheritance
MetricAlertResourcePatch
Attributes

Constructors

MetricAlertResourcePatch()

Initializes a new instance of the MetricAlertResourcePatch class.

MetricAlertResourcePatch(IDictionary<String,String>, String, Nullable<Int32>, Nullable<Boolean>, IList<String>, Nullable<TimeSpan>, Nullable<TimeSpan>, String, String, MetricAlertCriteria, Nullable<Boolean>, IList<MetricAlertAction>, Nullable<DateTime>, Nullable<Boolean>)

Initializes a new instance of the MetricAlertResourcePatch class.

Properties

Actions

Gets or sets the array of actions that are performed when the alert rule becomes active, and when an alert condition is resolved.

AutoMitigate

Gets or sets the flag that indicates whether the alert should be auto resolved or not. The default is true.

Criteria

Gets or sets defines the specific alert criteria information.

Description

Gets or sets the description of the metric alert that will be included in the alert email.

Enabled

Gets or sets the flag that indicates whether the metric alert is enabled.

EvaluationFrequency

Gets or sets how often the metric alert is evaluated represented in ISO 8601 duration format.

IsMigrated

Gets the value indicating whether this alert rule is migrated.

LastUpdatedTime

Gets last time the rule was updated in ISO8601 format.

Scopes

Gets or sets the list of resource id's that this metric alert is scoped to.

Severity

Gets or sets alert severity {0, 1, 2, 3, 4}

Tags

Gets or sets resource tags

TargetResourceRegion

Gets or sets the region of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria.

TargetResourceType

Gets or sets the resource type of the target resource(s) on which the alert is created/updated. Mandatory for MultipleResourceMultipleMetricCriteria.

WindowSize

Gets or sets the period of time (in ISO 8601 duration format) that is used to monitor alert activity based on the threshold.

Applies to