Share via


BudgetAssociatedNotification Constructor

Definition

Initializes a new instance of BudgetAssociatedNotification.

public BudgetAssociatedNotification (bool isEnabled, Azure.ResourceManager.Consumption.Models.NotificationAlertTriggerType operator, decimal threshold, System.Collections.Generic.IEnumerable<string> contactEmails);
new Azure.ResourceManager.Consumption.Models.BudgetAssociatedNotification : bool * Azure.ResourceManager.Consumption.Models.NotificationAlertTriggerType * decimal * seq<string> -> Azure.ResourceManager.Consumption.Models.BudgetAssociatedNotification
Public Sub New (isEnabled As Boolean, operator As NotificationAlertTriggerType, threshold As Decimal, contactEmails As IEnumerable(Of String))

Parameters

isEnabled
Boolean

The notification is enabled or not.

operator
NotificationAlertTriggerType

The comparison operator.

threshold
Decimal

Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000.

contactEmails
IEnumerable<String>

Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified.

Exceptions

contactEmails is null.

Applies to