Skip to content

Commit 9460527

Browse files
authored
Merge pull request #266411 from MicrosoftDocs/main
02/15 AM Publishing
2 parents 9a5c692 + b5014a2 commit 9460527

File tree

67 files changed

+670
-610
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+670
-610
lines changed

articles/azure-monitor/alerts/alerts-common-schema.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.author: abbyweisberg
1010

1111
# Common alert schema
1212

13-
The common alert schema standardizes the consumption of Azure Monitor alert notifications. Historically, activity log, metric, and log alerts each had their own email templates and webhook schemas. The common alert schema provides one standardized schema for all alert notifications.
13+
The common alert schema standardizes the consumption of Azure Monitor alert notifications. Historically, activity log, metric, and log search alerts each had their own email templates and webhook schemas. The common alert schema provides one standardized schema for all alert notifications.
1414

1515
Using a standardized schema helps minimize the number of integrations, which simplifies the process of managing and maintaining your integrations. The common schema enables a richer alert consumption experience in both the Azure portal and the Azure mobile app.
1616

@@ -102,8 +102,8 @@ For sample alerts that use the common schema, see [Sample alert payloads](alerts
102102
| signalType | Identifies the signal on which the alert rule was defined. Possible values are Metric, Log, or Activity Log. |
103103
| monitorCondition | When an alert fires, the alert's monitor condition is set to **Fired**. When the underlying condition that caused the alert to fire clears, the monitor condition is set to **Resolved**. |
104104
| monitoringService | The monitoring service or solution that generated the alert. The monitoring service determines which fields are in the alert context. |
105-
| alertTargetIDs | The list of the Azure Resource Manager IDs that are affected targets of an alert. For a log alert defined on a Log Analytics workspace or Application Insights instance, it's the respective workspace or application. |
106-
| configurationItems |The list of affected resources of an alert.<br>In some cases, the configuration items can be different from the alert targets. For example, in metric-for-log or log alerts defined on a Log Analytics workspace, the configuration items are the actual resources sending the data, and not the workspace.<br><ul><li>In the log alerts API (Scheduled Query Rules) v2021-08-01, the `configurationItem` values are taken from explicitly defined dimensions in this priority: `_ResourceId`, `ResourceId`, `Resource`, `Computer`.</li><li>In earlier versions of the log alerts API, the `configurationItem` values are taken implicitly from the results in this priority: `_ResourceId`, `ResourceId`, `Resource`, `Computer`.</li></ul>In ITSM systems, the `configurationItems` field is used to correlate alerts to resources in a configuration management database. |
105+
| alertTargetIDs | The list of the Azure Resource Manager IDs that are affected targets of an alert. For a log search alert defined on a Log Analytics workspace or Application Insights instance, it's the respective workspace or application. |
106+
| configurationItems |The list of affected resources of an alert.<br>In some cases, the configuration items can be different from the alert targets. For example, in metric-for-log or log search alerts defined on a Log Analytics workspace, the configuration items are the actual resources sending the data, and not the workspace.<br><ul><li>In the log search alerts API (Scheduled Query Rules) v2021-08-01, the `configurationItem` values are taken from explicitly defined dimensions in this priority: `_ResourceId`, `ResourceId`, `Resource`, `Computer`.</li><li>In earlier versions of the log search alerts API, the `configurationItem` values are taken implicitly from the results in this priority: `_ResourceId`, `ResourceId`, `Resource`, `Computer`.</li></ul>In ITSM systems, the `configurationItems` field is used to correlate alerts to resources in a configuration management database. |
107107
| originAlertId | The ID of the alert instance, as generated by the monitoring service generating it. |
108108
| firedDateTime | The date and time when the alert instance was fired in Coordinated Universal Time (UTC). |
109109
| resolvedDateTime | The date and time when the monitor condition for the alert instance is set to **Resolved** in UTC. Currently only applicable for metric alerts.|
@@ -230,12 +230,12 @@ For sample alerts that use the common schema, see [Sample alert payloads](alerts
230230
}
231231
```
232232

233-
## Alert context fields for Log alerts
233+
## Alert context fields for log search alerts
234234

235235
> [!NOTE]
236-
> When you enable the common schema, the fields in the payload are reset to the common schema fields. Therefore, log alerts have these limitations regarding the common schema:
237-
> - The common schema is not supported for log alerts using webhooks with a custom email subject and/or JSON payload, since the common schema overwrites the custom configurations.
238-
> - Alerts using the common schema have an upper size limit of 256 KB per alert. If the log alerts payload includes search results that cause the alert to exceed the maximum size, the search results aren't embedded in the log alerts payload. You can check if the payload includes the search results with the `IncludedSearchResults` flag. Use `LinkToFilteredSearchResultsAPI` or `LinkToSearchResultsAPI` to access query results with the [Log Analytics API](/rest/api/loganalytics/dataaccess/query/get) if the search results are not included.
236+
> When you enable the common schema, the fields in the payload are reset to the common schema fields. Therefore, log search alerts have these limitations regarding the common schema:
237+
> - The common schema is not supported for log search alerts using webhooks with a custom email subject and/or JSON payload, since the common schema overwrites the custom configurations.
238+
> - Alerts using the common schema have an upper size limit of 256 KB per alert. If the log search alerts payload includes search results that cause the alert to exceed the maximum size, the search results aren't embedded in the log search alerts payload. You can check if the payload includes the search results with the `IncludedSearchResults` flag. Use `LinkToFilteredSearchResultsAPI` or `LinkToSearchResultsAPI` to access query results with the [Log Analytics API](/rest/api/loganalytics/dataaccess/query/get) if the search results are not included.
239239
240240
|Field |Description |
241241
|---------|---------|
@@ -270,7 +270,7 @@ For sample alerts that use the common schema, see [Sample alert payloads](alerts
270270

271271

272272

273-
### Sample log alert when the monitoringService = Log Analytics
273+
### Sample log search alert when the monitoringService = Log Analytics
274274

275275
```json
276276
{
@@ -344,7 +344,7 @@ For sample alerts that use the common schema, see [Sample alert payloads](alerts
344344
}
345345
}
346346
```
347-
### Sample log alert when the monitoringService = Application Insights
347+
### Sample log search alert when the monitoringService = Application Insights
348348

349349
```json
350350
{
@@ -414,10 +414,10 @@ For sample alerts that use the common schema, see [Sample alert payloads](alerts
414414
}
415415
}
416416
```
417-
### Sample log alert when the monitoringService = Log Alerts V2
417+
### Sample log search alert when the monitoringService = Log Alerts V2
418418

419419
> [!NOTE]
420-
> Log alert rules from API version 2020-05-01 use this payload type, which only supports common schema. Search results aren't embedded in the log alerts payload when you use this version. Use [dimensions](./alerts-unified-log.md#split-by-alert-dimensions) to provide context to fired alerts. You can also use `LinkToFilteredSearchResultsAPI` or `LinkToSearchResultsAPI` to access query results with the [Log Analytics API](/rest/api/loganalytics/dataaccess/query/get). If you must embed the results, use a logic app with the provided links to generate a custom payload.
420+
> Log search alert rules from API version 2020-05-01 use this payload type, which only supports common schema. Search results aren't embedded in the log search alerts payload when you use this version. Use [dimensions](./alerts-unified-log.md#split-by-alert-dimensions) to provide context to fired alerts. You can also use `LinkToFilteredSearchResultsAPI` or `LinkToSearchResultsAPI` to access query results with the [Log Analytics API](/rest/api/loganalytics/dataaccess/query/get). If you must embed the results, use a logic app with the provided links to generate a custom payload.
421421
422422
```json
423423
{
@@ -463,6 +463,7 @@ For sample alerts that use the common schema, see [Sample alert payloads](alerts
463463
## Alert context fields for activity log alerts
464464

465465
See [Azure activity log event schema](../essentials/activity-log-schema.md) for detailed information about the fields in activity log alerts.
466+
466467
### Sample activity log alert when the monitoringService = Activity Log - Administrative
467468

468469
```json

0 commit comments

Comments
 (0)