CostControlAction(CostControlThresholdType, Double) Constructor
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.
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.