你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
MetricAlertResourcePatch 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
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
警报电子邮件中将包含的指标警报的说明。
- targetResourceType
- String
创建/更新警报的目标资源 () 的资源类型。 对于 MultipleResourceMultipleMetricCriteria 是必需的。
- targetResourceRegion
- String
目标资源的区域 (创建/更新警报的) 。 对于 MultipleResourceMultipleMetricCriteria 是必需的。
- criteria
- MetricAlertCriteria
定义特定的警报条件信息。
- actions
- IList<MetricAlertAction>
警报规则变为活动状态时以及解决警报条件时执行的操作数组。