MetricAlertResourcePatch Constructors

Definition

Overloads

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.

MetricAlertResourcePatch()

Initializes a new instance of the MetricAlertResourcePatch class.

public MetricAlertResourcePatch ();
Public Sub New ()

Applies to

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.

public MetricAlertResourcePatch (System.Collections.Generic.IDictionary<string,string> tags = default, string description = default, int? severity = default, bool? enabled = default, System.Collections.Generic.IList<string> scopes = default, TimeSpan? evaluationFrequency = default, TimeSpan? windowSize = default, string targetResourceType = default, string targetResourceRegion = default, Microsoft.Azure.Management.Monitor.Models.MetricAlertCriteria criteria = default, bool? autoMitigate = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricAlertAction> actions = default, DateTime? lastUpdatedTime = default, bool? isMigrated = default);
new Microsoft.Azure.Management.Monitor.Models.MetricAlertResourcePatch : System.Collections.Generic.IDictionary<string, string> * string * Nullable<int> * Nullable<bool> * System.Collections.Generic.IList<string> * Nullable<TimeSpan> * Nullable<TimeSpan> * string * string * Microsoft.Azure.Management.Monitor.Models.MetricAlertCriteria * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.MetricAlertAction> * Nullable<DateTime> * Nullable<bool> -> Microsoft.Azure.Management.Monitor.Models.MetricAlertResourcePatch
Public Sub New (Optional tags As IDictionary(Of String, String) = Nothing, Optional description As String = Nothing, Optional severity As Nullable(Of Integer) = Nothing, Optional enabled As Nullable(Of Boolean) = Nothing, Optional scopes As IList(Of String) = Nothing, Optional evaluationFrequency As Nullable(Of TimeSpan) = Nothing, Optional windowSize As Nullable(Of TimeSpan) = Nothing, Optional targetResourceType As String = Nothing, Optional targetResourceRegion As String = Nothing, Optional criteria As MetricAlertCriteria = Nothing, Optional autoMitigate As Nullable(Of Boolean) = Nothing, Optional actions As IList(Of MetricAlertAction) = Nothing, Optional lastUpdatedTime As Nullable(Of DateTime) = Nothing, Optional isMigrated As Nullable(Of Boolean) = Nothing)

Parameters

tags
IDictionary<String,String>

Resource tags

description
String

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

severity
Nullable<Int32>

Alert severity {0, 1, 2, 3, 4}

enabled
Nullable<Boolean>

the flag that indicates whether the metric alert is enabled.

scopes
IList<String>

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

evaluationFrequency
Nullable<TimeSpan>

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

windowSize
Nullable<TimeSpan>

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

targetResourceType
String

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

targetResourceRegion
String

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

criteria
MetricAlertCriteria

defines the specific alert criteria information.

autoMitigate
Nullable<Boolean>

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

actions
IList<MetricAlertAction>

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

lastUpdatedTime
Nullable<DateTime>

Last time the rule was updated in ISO8601 format.

isMigrated
Nullable<Boolean>

the value indicating whether this alert rule is migrated.

Applies to