你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AlertRuleResourcePatch 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
AlertRuleResourcePatch() |
初始化 AlertRuleResourcePatch 类的新实例。 |
AlertRuleResourcePatch(String, Boolean, RuleCondition, IDictionary<String,String>, String, String, RuleAction, IList<RuleAction>, Nullable<DateTime>) |
初始化 AlertRuleResourcePatch 类的新实例。 |
AlertRuleResourcePatch()
初始化 AlertRuleResourcePatch 类的新实例。
public AlertRuleResourcePatch ();
Public Sub New ()
适用于
AlertRuleResourcePatch(String, Boolean, RuleCondition, IDictionary<String,String>, String, String, RuleAction, IList<RuleAction>, Nullable<DateTime>)
初始化 AlertRuleResourcePatch 类的新实例。
public AlertRuleResourcePatch (string name, bool isEnabled, Microsoft.Azure.Management.Monitor.Models.RuleCondition condition, System.Collections.Generic.IDictionary<string,string> tags = default, string description = default, string provisioningState = default, Microsoft.Azure.Management.Monitor.Models.RuleAction action = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.RuleAction> actions = default, DateTime? lastUpdatedTime = default);
new Microsoft.Azure.Management.Monitor.Models.AlertRuleResourcePatch : string * bool * Microsoft.Azure.Management.Monitor.Models.RuleCondition * System.Collections.Generic.IDictionary<string, string> * string * string * Microsoft.Azure.Management.Monitor.Models.RuleAction * System.Collections.Generic.IList<Microsoft.Azure.Management.Monitor.Models.RuleAction> * Nullable<DateTime> -> Microsoft.Azure.Management.Monitor.Models.AlertRuleResourcePatch
Public Sub New (name As String, isEnabled As Boolean, condition As RuleCondition, Optional tags As IDictionary(Of String, String) = Nothing, Optional description As String = Nothing, Optional provisioningState As String = Nothing, Optional action As RuleAction = Nothing, Optional actions As IList(Of RuleAction) = Nothing, Optional lastUpdatedTime As Nullable(Of DateTime) = Nothing)
参数
- name
- String
警报规则的名称。
- isEnabled
- Boolean
指示是否启用警报规则的标志。
- condition
- RuleCondition
导致激活警报规则的条件。
- tags
- IDictionary<String,String>
资源标记
- description
- String
警报电子邮件中将包含的警报规则的说明。
- provisioningState
- String
预配状态。
- action
- RuleAction
在警报规则变为活动状态以及解决警报条件时执行的操作。
- actions
- IList<RuleAction>
警报规则变为活动状态时以及解决警报条件时执行的操作数组。