Language

CostControlNotification Constructor

Definition

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.

Applies to