你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Notification 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Notification() |
初始化 Notification 类的新实例。 |
Notification(Boolean, String, Decimal, IList<String>, IList<String>, IList<String>) |
初始化 Notification 类的新实例。 |
Notification()
初始化 Notification 类的新实例。
public Notification ();
Public Sub New ()
适用于
Notification(Boolean, String, Decimal, IList<String>, IList<String>, IList<String>)
初始化 Notification 类的新实例。
public Notification (bool enabled, string operatorProperty, decimal threshold, System.Collections.Generic.IList<string> contactEmails, System.Collections.Generic.IList<string> contactRoles = default, System.Collections.Generic.IList<string> contactGroups = default);
new Microsoft.Azure.Management.Consumption.Models.Notification : bool * string * decimal * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Consumption.Models.Notification
Public Sub New (enabled As Boolean, operatorProperty As String, threshold As Decimal, contactEmails As IList(Of String), Optional contactRoles As IList(Of String) = Nothing, Optional contactGroups As IList(Of String) = Nothing)
参数
- enabled
- Boolean
通知已启用或未启用。
- operatorProperty
- String
比较运算符。 可能的值包括:“EqualTo”、“GreaterThan”、“GreaterThanOrEqualTo”
- threshold
- Decimal
与通知关联的阈值。 当成本超过阈值时,将发送通知。 它始终为百分比,并且必须介于 0 和 1000 之间。