CostControlProperties interface
The consumption budget and its traffic selection, notifications, and enforcement actions. A cost control applies within its owner's scope.
Properties
| amount | 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. |
| category | Whether the budget measures estimated cost in United States dollars or token consumption. This category cannot be changed after creation. |
| filter | Optional traffic selection. Omission selects all eligible traffic within the owner's scope. |
| grouping | Optional additional partitioning of consumption. Omission or an empty array uses one counter for the owning account or Foundry project. Responses omit owner-default grouping. A project-owned control cannot explicitly group by project. |
| notifications | Alert notifications keyed by nonempty, case-insensitively unique names. Each notification supplies its own Event Grid connection. PUT and the complete merged PATCH result may contain at most one notification, including disabled notifications. Omission on creation creates no notifications. |
| provider | The resource provider for this budget. Omission selects Microsoft.CognitiveServices; responses return that value. |
| provider |
Optional provider-specific enforcement settings. Omission creates no blocking actions. |
| time |
The calendar-aligned UTC interval at which consumption counters renew within the validity window. |
| time |
The finite UTC validity window during which the control applies. |
Property Details
amount
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.
amount: number
Property Value
number
category
Whether the budget measures estimated cost in United States dollars or token consumption. This category cannot be changed after creation.
category: string
Property Value
string
filter
Optional traffic selection. Omission selects all eligible traffic within the owner's scope.
filter?: CostControlFilter
Property Value
grouping
Optional additional partitioning of consumption. Omission or an empty array uses one counter for the owning account or Foundry project. Responses omit owner-default grouping. A project-owned control cannot explicitly group by project.
grouping?: CostControlGrouping[]
Property Value
notifications
Alert notifications keyed by nonempty, case-insensitively unique names. Each notification supplies its own Event Grid connection. PUT and the complete merged PATCH result may contain at most one notification, including disabled notifications. Omission on creation creates no notifications.
notifications?: Record<string, CostControlNotification>
Property Value
Record<string, CostControlNotification>
provider
The resource provider for this budget. Omission selects Microsoft.CognitiveServices; responses return that value.
provider?: "Microsoft.CognitiveServices"
Property Value
"Microsoft.CognitiveServices"
providerProperties
Optional provider-specific enforcement settings. Omission creates no blocking actions.
providerProperties?: CostControlProviderProperties
Property Value
timeGrain
The calendar-aligned UTC interval at which consumption counters renew within the validity window.
timeGrain: string
Property Value
string
timePeriod
The finite UTC validity window during which the control applies.
timePeriod: CostControlTimePeriod