Language

CostControlAction(CostControlThresholdType, Double) Constructor

Definition

Initializes a new instance of CostControlAction.

public CostControlAction(Azure.ResourceManager.CognitiveServices.Models.CostControlThresholdType thresholdType, double threshold);
new Azure.ResourceManager.CognitiveServices.Models.CostControlAction : Azure.ResourceManager.CognitiveServices.Models.CostControlThresholdType * double -> Azure.ResourceManager.CognitiveServices.Models.CostControlAction
Public Sub New (thresholdType As CostControlThresholdType, threshold As Double)

Parameters

thresholdType
CostControlThresholdType

Whether threshold is a percentage of amount or an absolute value in the budget's unit.

threshold
Double

The positive threshold. Percentages cannot exceed 100; absolute thresholds cannot exceed amount and must be whole numbers for Tokens budgets.

Applies to