-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding support for RU Alerts in new Budgets API version (#23140)
* Updating budgets swagger definition to include modifications from RU Alert category * Adding new examples for all scenarios of RU Alerts, added new examples for all scopes for Cost Budgets * Spelling & lintdiff fixes * prettier-fix * Added more descriptions, and some light markdown to larger descripitons * Addressing comments * prettier-fix * Updating description for amount property * addressing Shravan's offline comments * spell check * removing aws scopes from scope description * Addressing comments from internal review, removed legacy tags for EA
- Loading branch information
Showing
24 changed files
with
2,220 additions
and
99 deletions.
There are no files selected for viewing
253 changes: 206 additions & 47 deletions
253
...e-manager/Microsoft.CostManagement/preview/2023-04-01-preview/costmanagement.budgets.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 125 additions & 0 deletions
125
...CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservationIdFilter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-04-01-preview", | ||
"billingAccountId": "123456", | ||
"budgetName": "TestAlertRule", | ||
"scope": "providers/Microsoft.Billing/billingAccounts/123456", | ||
"parameters": { | ||
"eTag": "\"1d34d016a593709\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": { | ||
"dimensions": { | ||
"name": "ReservationId", | ||
"operator": "In", | ||
"values": [ | ||
"00000000-0000-0000-0000-000000000000", | ||
"00000000-0000-0000-0000-000000000001", | ||
"00000000-0000-0000-0000-000000000002" | ||
] | ||
} | ||
}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", | ||
"name": "TestAlertRule", | ||
"type": "Microsoft.CostManagement/budgets", | ||
"eTag": "\"1d34d012214157f\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": { | ||
"dimensions": { | ||
"name": "ReservationId", | ||
"operator": "In", | ||
"values": [ | ||
"00000000-0000-0000-0000-000000000000", | ||
"00000000-0000-0000-0000-000000000001", | ||
"00000000-0000-0000-0000-000000000002" | ||
] | ||
} | ||
}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", | ||
"name": "TestAlertRule", | ||
"type": "Microsoft.CostManagement/budgets", | ||
"eTag": "\"1d34d012214157f\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": { | ||
"dimensions": { | ||
"name": "ReservationId", | ||
"operator": "In", | ||
"values": [ | ||
"00000000-0000-0000-0000-000000000000", | ||
"00000000-0000-0000-0000-000000000001", | ||
"00000000-0000-0000-0000-000000000002" | ||
] | ||
} | ||
}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
125 changes: 125 additions & 0 deletions
125
...rUpdate-ReservationUtilization-BillingAccountEA-AlertRule-ReservedResourceTypeFilter.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-04-01-preview", | ||
"billingAccountId": "123456", | ||
"budgetName": "TestAlertRule", | ||
"scope": "providers/Microsoft.Billing/billingAccounts/123456", | ||
"parameters": { | ||
"eTag": "\"1d34d016a593709\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": { | ||
"dimensions": { | ||
"name": "ReservedResourceType", | ||
"operator": "In", | ||
"values": [ | ||
"VirtualMachines", | ||
"SqlDatabases", | ||
"CosmosDb" | ||
] | ||
} | ||
}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", | ||
"name": "TestAlertRule", | ||
"type": "Microsoft.CostManagement/budgets", | ||
"eTag": "\"1d34d012214157f\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": { | ||
"dimensions": { | ||
"name": "ReservedResourceType", | ||
"operator": "In", | ||
"values": [ | ||
"VirtualMachines", | ||
"SqlDatabases", | ||
"CosmosDb" | ||
] | ||
} | ||
}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", | ||
"name": "TestAlertRule", | ||
"type": "Microsoft.CostManagement/budgets", | ||
"eTag": "\"1d34d012214157f\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": { | ||
"dimensions": { | ||
"name": "ReservedResourceType", | ||
"operator": "In", | ||
"values": [ | ||
"VirtualMachines", | ||
"SqlDatabases", | ||
"CosmosDb" | ||
] | ||
} | ||
}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
95 changes: 95 additions & 0 deletions
95
...ationUtilization/EA/CreateOrUpdate-ReservationUtilization-BillingAccountEA-AlertRule.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2023-04-01-preview", | ||
"billingAccountId": "123456", | ||
"budgetName": "TestAlertRule", | ||
"scope": "providers/Microsoft.Billing/billingAccounts/123456", | ||
"parameters": { | ||
"eTag": "\"1d34d016a593709\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": {}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"body": { | ||
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", | ||
"name": "TestAlertRule", | ||
"type": "Microsoft.CostManagement/budgets", | ||
"eTag": "\"1d34d012214157f\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": {}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"200": { | ||
"body": { | ||
"id": "providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/budgets/TestAlertRule", | ||
"name": "TestAlertRule", | ||
"type": "Microsoft.CostManagement/budgets", | ||
"eTag": "\"1d34d012214157f\"", | ||
"properties": { | ||
"category": "ReservationUtilization", | ||
"timeGrain": "Last7Days", | ||
"timePeriod": { | ||
"startDate": "2023-04-01T00:00:00Z", | ||
"endDate": "2025-04-01T00:00:00Z" | ||
}, | ||
"filter": {}, | ||
"notifications": { | ||
"Actual_LessThan_99_Percent": { | ||
"enabled": true, | ||
"operator": "LessThan", | ||
"threshold": 99, | ||
"frequency": "Weekly", | ||
"locale": "en-us", | ||
"contactEmails": [ | ||
"[email protected]", | ||
"[email protected]" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.