你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MetricAlertResourcePatch 构造函数

定义

重载

MetricAlertResourcePatch()

初始化 MetricAlertResourcePatch 类的新实例。

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>)

初始化 MetricAlertResourcePatch 类的新实例。

MetricAlertResourcePatch()

初始化 MetricAlertResourcePatch 类的新实例。

public MetricAlertResourcePatch ();
Public Sub New ()

适用于

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>)

初始化 MetricAlertResourcePatch 类的新实例。

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)

参数

tags
IDictionary<String,String>

资源标记

description
String

警报电子邮件中将包含的指标警报的说明。

severity
Nullable<Int32>

警报严重性 {0, 1, 2, 3, 4}

enabled
Nullable<Boolean>

指示是否启用指标警报的标志。

scopes
IList<String>

此指标警报的作用域为的资源 ID 的列表。

evaluationFrequency
Nullable<TimeSpan>

以 ISO 8601 持续时间格式表示的指标警报评估频率。

windowSize
Nullable<TimeSpan>

iso 8601 持续时间格式 (的时间段) ,用于根据阈值监视警报活动。

targetResourceType
String

创建/更新警报的目标资源 () 的资源类型。 对于 MultipleResourceMultipleMetricCriteria 是必需的。

targetResourceRegion
String

目标资源的区域 (创建/更新警报的) 。 对于 MultipleResourceMultipleMetricCriteria 是必需的。

criteria
MetricAlertCriteria

定义特定的警报条件信息。

autoMitigate
Nullable<Boolean>

指示是否应自动解决警报的标志。 默认值为 true。

actions
IList<MetricAlertAction>

警报规则变为活动状态时以及解决警报条件时执行的操作数组。

lastUpdatedTime
Nullable<DateTime>

上次以 ISO8601 格式更新规则的时间。

isMigrated
Nullable<Boolean>

指示是否迁移此警报规则的值。

适用于