You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-monitor/alerts/alerts-common-schema.md
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,8 +87,7 @@ The common schema includes information about the affected resource and the cause
87
87
}
88
88
```
89
89
90
-
For sample alerts that use the common schema, including see
91
-
90
+
For sample alerts that use the common schema, see [Sample alert payloads](alerts-payload-samples.md).
92
91
## Essentials fields
93
92
94
93
| Field | Description|
@@ -668,7 +667,6 @@ See [Azure Monitor managed service for Prometheus rule groups (preview)](../esse
668
667
}
669
668
}
670
669
```
671
-
672
670
## Enable the common alert schema
673
671
674
672
Use action groups in the Azure portal or use the REST API to enable the common alert schema. Schemas are defined at the action level. For example, you must separately enable the schema for an email action and a webhook action.
@@ -682,13 +680,11 @@ Use action groups in the Azure portal or use the REST API to enable the common a
682
680
683
681
1. Open any existing action or a new action in an action group.
684
682
1. Select **Yes** to enable the common alert schema.
685
-
686
683
### Enable the common schema using the REST API
687
684
688
685
You can also use the [Action Groups API](/rest/api/monitor/actiongroups) to opt in to the common alert schema. In the [create or update](/rest/api/monitor/actiongroups/createorupdate) REST API call,
689
686
- Set the "useCommonAlertSchema" flag to `true` to enable the common schema
690
687
- Set the "useCommonAlertSchema" flag to `false` to use the non-common schema for email, webhook, Logic Apps, Azure Functions, or Automation runbook actions.
691
-
692
688
#### Sample REST API call for using the common schema
693
689
694
690
The following [create or update](/rest/api/monitor/actiongroups/createorupdate) REST API request:
@@ -738,7 +734,6 @@ The following [create or update](/rest/api/monitor/actiongroups/createorupdate)
738
734
"tags": {}
739
735
}
740
736
```
741
-
742
737
## Next steps
743
738
744
739
-[Learn how to create a logic app that uses the common alert schema to handle all your alerts](./alerts-common-schema-integrations.md)
0 commit comments