Skip to content

Commit 6ac8188

Browse files
Merge pull request #224611 from jacegummersall/patch-6
Add Forecasted and actual budget alerts
2 parents 0a7f67e + 31ae25c commit 6ac8188

File tree

1 file changed

+84
-0
lines changed

1 file changed

+84
-0
lines changed

articles/azure-monitor/alerts/alerts-common-schema-test-action-definitions.md

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,90 @@ You can also use `LinkToFilteredSearchResultsAPI` or `LinkToSearchResultsAPI` to
707707
}
708708
```
709709

710+
#### monitoringService = Actual Cost Budget
711+
712+
**Sample values**
713+
```json
714+
{
715+
"schemaId": "azureMonitorCommonAlertSchema",
716+
"data": {
717+
"essentials": {
718+
"monitoringService": "CostAlerts",
719+
"firedDateTime": "2022-12-07T21:13:20.645Z",
720+
"description": "Your spend for budget Test_actual_cost_budget is now $11,111.00 exceeding your specified threshold $25.00.",
721+
"essentialsVersion": "1.0",
722+
"alertContextVersion": "1.0",
723+
"alertId": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.CostManagement/alerts/Test_Alert",
724+
"alertRule": null,
725+
"severity": null,
726+
"signalType": null,
727+
"monitorCondition": null,
728+
"alertTargetIDs": null,
729+
"configurationItems": ["budgets"],
730+
"originAlertId": null
731+
},
732+
"alertContext": {
733+
"AlertCategory": "budgets",
734+
"AlertData": {
735+
"Scope": "/subscriptions/11111111-1111-1111-1111-111111111111/",
736+
"ThresholdType": "Actual",
737+
"BudgetType": "Cost",
738+
"BudgetThreshold": "$50.00",
739+
"NotificationThresholdAmount": "$25.00",
740+
"BudgetName": "Test_actual_cost_budget",
741+
"BudgetId": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Consumption/budgets/Test_actual_cost_budget",
742+
"BudgetStartDate": "2022-11-01",
743+
"BudgetCreator": "[email protected]",
744+
"Unit": "USD",
745+
"SpentAmount": "$11,111.00"
746+
}
747+
}
748+
}
749+
}
750+
```
751+
#### monitoringService = Forecasted Budget
752+
753+
**Sample values**
754+
```json
755+
{
756+
"schemaId": "azureMonitorCommonAlertSchema",
757+
"data": {
758+
"essentials": {
759+
"monitoringService": "CostAlerts",
760+
"firedDateTime": "2022-12-07T21:13:29.576Z",
761+
"description": "The total spend for your budget, Test_forcasted_budget, is forecasted to reach $1111.11 before the end of the period. This amount exceeds your specified budget threshold of $50.00.",
762+
"essentialsVersion": "1.0",
763+
"alertContextVersion": "1.0",
764+
"alertId": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.CostManagement/alerts/Test_Alert",
765+
"alertRule": null,
766+
"severity": null,
767+
"signalType": null,
768+
"monitorCondition": null,
769+
"alertTargetIDs": null,
770+
"configurationItems": ["budgets"],
771+
"originAlertId": null
772+
},
773+
"alertContext": {
774+
"AlertCategory": "budgets",
775+
"AlertData": {
776+
"Scope": "/subscriptions/11111111-1111-1111-1111-111111111111/",
777+
"ThresholdType": "Forecasted",
778+
"BudgetType": "Cost",
779+
"BudgetThreshold": "$50.00",
780+
"NotificationThresholdAmount": "$50.00",
781+
"BudgetName": "Test_forcasted_budget",
782+
"BudgetId": "/subscriptions/11111111-1111-1111-1111-111111111111/providers/Microsoft.Consumption/budgets/Test_forcasted_budget",
783+
"BudgetStartDate": "2022-11-01",
784+
"BudgetCreator": "[email protected]",
785+
"Unit": "USD",
786+
"SpentAmount": "$999.99",
787+
"ForecastedTotalForPeriod": "$1111.11"
788+
}
789+
}
790+
}
791+
}
792+
```
793+
710794
#### monitoringService = Smart Alert
711795

712796
**Sample values**

0 commit comments

Comments
 (0)