Skip to content

Commit 83f852a

Browse files
author
msftbot[bot]
authored
[ReleasePR consumption] Cost Management: Reservation Recommendations API: Add multiple missing properties in specs (#1601)
Create to sync Azure/azure-rest-api-specs#13967 [ReCreate this PR](https://github.com/azure-resource-manager-schemas/compare/master...AzureSDKAutomation:sdkAuto/consumption?expand=1)
2 parents 762c77a + 3d83693 commit 83f852a

File tree

4 files changed

+423
-7
lines changed

4 files changed

+423
-7
lines changed

schemas/2018-05-01/subscriptionDeploymentTemplate.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@
195195
{
196196
"$ref": "https://schema.management.azure.com/schemas/2019-10-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets"
197197
},
198+
{
199+
"$ref": "https://schema.management.azure.com/schemas/2019-11-01/Microsoft.Consumption.json#/unknown_resourceDefinitions/budgets"
200+
},
198201
{
199202
"$ref": "https://schema.management.azure.com/schemas/2020-02-01-preview/Microsoft.Datadog.json#/subscription_resourceDefinitions/agreements"
200203
},

schemas/2019-05-01/Microsoft.Consumption.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,16 @@
7979
],
8080
"description": "The category of the budget, whether the budget tracks cost or usage."
8181
},
82-
"filters": {
82+
"filter": {
8383
"oneOf": [
8484
{
85-
"$ref": "#/definitions/Filters"
85+
"$ref": "#/definitions/Filter"
8686
},
8787
{
8888
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
8989
}
9090
],
91-
"description": "May be used to filter budgets by resource group, resource, or meter."
91+
"description": "May be used to filter budgets by user-specified dimensions and/or tags."
9292
},
9393
"notifications": {
9494
"oneOf": [
@@ -163,7 +163,7 @@
163163
],
164164
"description": "The start and end date for a budget."
165165
},
166-
"Filters": {
166+
"Filter": {
167167
"type": "object",
168168
"properties": {
169169
"meters": {
@@ -221,7 +221,7 @@
221221
"description": "The dictionary of filters on tags."
222222
}
223223
},
224-
"description": "May be used to filter budgets by resource group, resource, or meter."
224+
"description": "May be used to filter budgets by user-specified dimensions and/or tags."
225225
},
226226
"Notification": {
227227
"type": "object",
@@ -238,7 +238,7 @@
238238
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
239239
}
240240
],
241-
"description": "Email addresses to send the budget notification to when the threshold is exceeded."
241+
"description": "Email addresses to send the budget notification to when the threshold is exceeded. Must have at least one contact email or contact group specified at the Subscription or Resource Group scopes. All other scopes must have at least one contact email specified."
242242
},
243243
"contactGroups": {
244244
"oneOf": [
@@ -252,7 +252,7 @@
252252
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
253253
}
254254
],
255-
"description": "Action groups to send the budget notification to when the threshold is exceeded."
255+
"description": "Action groups to send the budget notification to when the threshold is exceeded. Must be provided as a fully qualified Azure resource id. Only supported at Subscription or Resource Group scopes."
256256
},
257257
"contactRoles": {
258258
"oneOf": [
@@ -305,6 +305,20 @@
305305
}
306306
],
307307
"description": "Threshold value associated with a notification. Notification is sent when the cost exceeded the threshold. It is always percent and has to be between 0 and 1000."
308+
},
309+
"thresholdType": {
310+
"oneOf": [
311+
{
312+
"type": "string",
313+
"enum": [
314+
"Actual"
315+
]
316+
},
317+
{
318+
"$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression"
319+
}
320+
],
321+
"description": "The type of threshold."
308322
}
309323
},
310324
"required": [

0 commit comments

Comments
 (0)