CostControlNotification 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 CostControlNotification.
public CostControlNotification(Azure.Core.ResourceIdentifier eventGridConnectionId, Azure.ResourceManager.CognitiveServices.Models.CostControlThresholdType thresholdType, double threshold, bool enabled);
new Azure.ResourceManager.CognitiveServices.Models.CostControlNotification : Azure.Core.ResourceIdentifier * Azure.ResourceManager.CognitiveServices.Models.CostControlThresholdType * double * bool -> Azure.ResourceManager.CognitiveServices.Models.CostControlNotification
Public Sub New (eventGridConnectionId As ResourceIdentifier, thresholdType As CostControlThresholdType, threshold As Double, enabled As Boolean)
Parameters
- eventGridConnectionId
- ResourceIdentifier
The full resource ID of the Cognitive Services Event Grid connection used to publish this notification.
- thresholdType
- CostControlThresholdType
Whether threshold is a percentage of amount or an absolute value in the budget's unit.
- threshold
- Double
The positive threshold. Percentages cannot exceed 100; absolute thresholds cannot exceed amount and must be whole numbers for Tokens budgets.
- enabled
- Boolean
Whether this notification is enabled. Disabled notifications remain configured but do not publish alerts.
Exceptions
eventGridConnectionId is null.