Language

CostControlThreshold Constructor

Definition

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

type
CostControlThresholdType

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.

Applies to