Skip to content

Commit efa028e

Browse files
Merge pull request #247744 from nolavime/main
Main
2 parents ae7ebfb + 9f68343 commit efa028e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ 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-
| targetResource | 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. |
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. |
106106
| 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. |
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). |

articles/azure-monitor/alerts/alerts-create-new-alert-rule.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,16 @@ To edit an existing alert rule:
144144

145145
To use one of the predefined alert rule queries, expand the **Schema and filter** pane on the left of the **Logs** pane. Then select the **Queries** tab, and select one of the queries.
146146

147-
1. (Optional) If you're querying an ADX cluster, Log Analytics can't automatically identify the column with the event timestamp, so we recommend that you add a time range filter to the query. For example:
148-
```azurecli
147+
1. (Optional) If you're querying an ADX or ARG cluster, Log Analytics can't automatically identify the column with the event timestamp, so we recommend that you add a time range filter to the query. For example:
148+
```KQL
149149
adx(cluster).table
150150
| where MyTS >= ago(5m) and MyTS <= now()
151151
```
152-
152+
```KQL
153+
arg("").Resources
154+
| where type =~ 'Microsoft.Compute/virtualMachines'
155+
| project _ResourceId=tolower(id), tags
156+
```
153157
:::image type="content" source="media/alerts-create-new-alert-rule/alerts-logs-conditions-tab.png" alt-text="Screenshot that shows the Condition tab when creating a new log alert rule.":::
154158
155159
1. Select **Run** to run the alert.

0 commit comments

Comments
 (0)