CostControlProperties 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 CostControlProperties.
public CostControlProperties(Azure.ResourceManager.CognitiveServices.Models.CostControlCategory category, double amount, Azure.ResourceManager.CognitiveServices.Models.CostControlTimeGrain timeGrain, Azure.ResourceManager.CognitiveServices.Models.CostControlTimePeriod timePeriod);
new Azure.ResourceManager.CognitiveServices.Models.CostControlProperties : Azure.ResourceManager.CognitiveServices.Models.CostControlCategory * double * Azure.ResourceManager.CognitiveServices.Models.CostControlTimeGrain * Azure.ResourceManager.CognitiveServices.Models.CostControlTimePeriod -> Azure.ResourceManager.CognitiveServices.Models.CostControlProperties
Public Sub New (category As CostControlCategory, amount As Double, timeGrain As CostControlTimeGrain, timePeriod As CostControlTimePeriod)
Parameters
- category
- CostControlCategory
Whether the budget measures estimated cost in United States dollars or token consumption. This category cannot be changed after creation.
- amount
- Double
The positive budget amount, measured in United States dollars for the Cost category or in tokens for the Tokens category. Token amounts must be whole numbers.
- timeGrain
- CostControlTimeGrain
The calendar-aligned UTC interval at which consumption counters renew within the validity window.
- timePeriod
- CostControlTimePeriod
The finite UTC validity window during which the control applies.
Exceptions
timePeriod is null.