Sprog

CostControlNotification Class

Definition

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 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.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<CostControlNotification>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<CostControlNotification>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<CostControlNotification>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<CostControlNotification>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<CostControlNotification>.Write(ModelReaderWriterOptions)

Applies to