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

Notification 构造函数

定义

重载

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 之间。

contactEmails
IList<String>

Email地址,以在超出阈值时向发送预算通知。

contactRoles
IList<String>

联系角色,在超出阈值时向其发送预算通知。

contactGroups
IList<String>

在超出阈值时将预算通知发送到的操作组。

适用于