CostControlNotification Class
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.
An alert notification with an explicit threshold, enabled state, and Event Grid destination.
public class CostControlNotification : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CognitiveServices.Models.CostControlNotification>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CognitiveServices.Models.CostControlNotification>
type CostControlNotification = class
interface IJsonModel<CostControlNotification>
interface IPersistableModel<CostControlNotification>
Public Class CostControlNotification
Implements IJsonModel(Of CostControlNotification), IPersistableModel(Of CostControlNotification)
- Inheritance
-
CostControlNotification
- Implements
Constructors
| Name | Description |
|---|---|
| CostControlNotification(ResourceIdentifier, CostControlThresholdType, Double, Boolean) |
Initializes a new instance of CostControlNotification. |
Properties
| Name | Description |
|---|---|
| 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 |
| 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. |