CostControlThreshold 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 action evaluated when cost control consumption reaches a threshold.
public class CostControlThreshold : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CognitiveServices.Models.CostControlThreshold>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CognitiveServices.Models.CostControlThreshold>
type CostControlThreshold = class
interface IJsonModel<CostControlThreshold>
interface IPersistableModel<CostControlThreshold>
Public Class CostControlThreshold
Implements IJsonModel(Of CostControlThreshold), IPersistableModel(Of CostControlThreshold)
- Inheritance
-
CostControlThreshold
- Implements
Constructors
| Name | Description |
|---|---|
| CostControlThreshold(CostControlThresholdType, Double, CostControlThresholdAction) |
Initializes a new instance of CostControlThreshold. |
Properties
| Name | Description |
|---|---|
| Action |
Gets or sets the threshold action. Authored thresholds must explicitly specify Alert or Block. Legacy stored definitions with omitted actions continue to read as Audit. |
| Type |
How the threshold value is interpreted. |
| Value |
Gets or sets the threshold value. Legacy Audit definitions retain their stored values; new thresholds support only Alert or Block. |