CostControlNotification interface

An alert notification with an explicit threshold, enabled state, and Event Grid destination.

Properties

enabled

Whether this notification is enabled. Disabled notifications remain configured but do not publish alerts.

eventGridConnectionId

The full resource ID of the Cognitive Services Event Grid connection used to publish this notification.

operator

The threshold comparison. Only GreaterThanOrEqualTo is supported.

threshold

The positive threshold. Percentages cannot exceed 100; absolute thresholds cannot exceed amount and must be whole numbers for Tokens budgets.

thresholdType

Whether threshold is a percentage of amount or an absolute value in the budget's unit.

Property Details

enabled

Whether this notification is enabled. Disabled notifications remain configured but do not publish alerts.

enabled: boolean

Property Value

boolean

eventGridConnectionId

The full resource ID of the Cognitive Services Event Grid connection used to publish this notification.

eventGridConnectionId: string

Property Value

string

operator

The threshold comparison. Only GreaterThanOrEqualTo is supported.

operator: "GreaterThanOrEqualTo"

Property Value

"GreaterThanOrEqualTo"

threshold

The positive threshold. Percentages cannot exceed 100; absolute thresholds cannot exceed amount and must be whole numbers for Tokens budgets.

threshold: number

Property Value

number

thresholdType

Whether threshold is a percentage of amount or an absolute value in the budget's unit.

thresholdType: string

Property Value

string