Sprog

CostControlNotificationPatch Class

Definition

Edits to an existing named notification. New notifications require all fields after merging; supplied fields cannot be null.

public class CostControlNotificationPatch : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CognitiveServices.Models.CostControlNotificationPatch>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CognitiveServices.Models.CostControlNotificationPatch>
type CostControlNotificationPatch = class
    interface IJsonModel<CostControlNotificationPatch>
    interface IPersistableModel<CostControlNotificationPatch>
Public Class CostControlNotificationPatch
Implements IJsonModel(Of CostControlNotificationPatch), IPersistableModel(Of CostControlNotificationPatch)
Inheritance
CostControlNotificationPatch
Implements

Constructors

Name Description
CostControlNotificationPatch()

Initializes a new instance of CostControlNotificationPatch.

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<CostControlNotificationPatch>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<CostControlNotificationPatch>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<CostControlNotificationPatch>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<CostControlNotificationPatch>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<CostControlNotificationPatch>.Write(ModelReaderWriterOptions)

Applies to