BudgetNotification Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of BudgetNotification.
public BudgetNotification(bool enabled, Azure.ResourceManager.CostManagement.Models.BudgetNotificationOperatorType operator, float threshold, System.Collections.Generic.IEnumerable<string> contactEmails);
new Azure.ResourceManager.CostManagement.Models.BudgetNotification : bool * Azure.ResourceManager.CostManagement.Models.BudgetNotificationOperatorType * single * seq<string> -> Azure.ResourceManager.CostManagement.Models.BudgetNotification
Public Sub New (enabled As Boolean, operator As BudgetNotificationOperatorType, threshold As Single, contactEmails As IEnumerable(Of String))
Parameters
- enabled
- Boolean
The notification is enabled or not. Supported for CategoryType(s): Cost, ReservationUtilization.
- operator
- BudgetNotificationOperatorType
The comparison operator. Supported for CategoryType(s): Cost, ReservationUtilization. Supported operators for CategoryType: Cost
- GreaterThan
- GreaterThanOrEqualTo
- LessThan
- threshold
- Single
Threshold value associated with a notification. It is always percent with a maximum of 2 decimal places. Supported for CategoryType(s): Cost, ReservationUtilization. CategoryType: Cost - Must be between 0 and 1000. Notification is sent when the cost exceeded the threshold. CategoryType: ReservationUtilization - Must be between 0 and 100. Notification is sent when a reservation has a utilization percentage below the threshold.
- contactEmails
- IEnumerable<String>
Email addresses to send the notification to when the threshold is breached. 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. Supported for CategoryType(s): Cost, ReservationUtilization.
Exceptions
contactEmails is null.