CostControlThreshold 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 CostControlThreshold.
public CostControlThreshold(Azure.ResourceManager.CognitiveServices.Models.CostControlThresholdType type, double value, Azure.ResourceManager.CognitiveServices.Models.CostControlThresholdAction action);
new Azure.ResourceManager.CognitiveServices.Models.CostControlThreshold : Azure.ResourceManager.CognitiveServices.Models.CostControlThresholdType * double * Azure.ResourceManager.CognitiveServices.Models.CostControlThresholdAction -> Azure.ResourceManager.CognitiveServices.Models.CostControlThreshold
Public Sub New (type As CostControlThresholdType, value As Double, action As CostControlThresholdAction)
Parameters
How the threshold value is interpreted.
- value
- Double
Gets or sets the threshold value. Legacy Audit definitions retain their stored values; new thresholds support only Alert or Block.
- action
- CostControlThresholdAction
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.