CostControlAction 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.
Blocks requests when consumption reaches the explicitly configured threshold. No implicit blocking action is created.
public class CostControlAction : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CognitiveServices.Models.CostControlAction>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CognitiveServices.Models.CostControlAction>
type CostControlAction = class
interface IJsonModel<CostControlAction>
interface IPersistableModel<CostControlAction>
Public Class CostControlAction
Implements IJsonModel(Of CostControlAction), IPersistableModel(Of CostControlAction)
- Inheritance
-
CostControlAction
- Implements
Constructors
| Name | Description |
|---|---|
| CostControlAction(CostControlThresholdType, Double) |
Initializes a new instance of CostControlAction. |
Properties
| Name | Description |
|---|---|
| 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. |
| Type |
The enforcement action. Only |