Skip to content

Commit 90f03e5

Browse files
authored
Update alerts-create-new-alert-rule.md
adding changes from bag bash
1 parent 43effca commit 90f03e5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,29 +241,31 @@ Alerts triggered by these alert rules contain a payload that uses the [common al
241241
> [!NOTE]
242242
> We're continually adding more regions for regional data processing.
243243
244-
:::image type="content" source="media/alerts-create-new-alert-rule/alerts-rule-actions-tab.png" alt-text="Screenshot that shows the Actions tab when creating a new alert rule.":::
245-
246-
1. (Optional) In the **Custom properties** section, if you've configured action groups for this alert rule, you can add custom properties in key:value pairs to the alert payload to add more information to the payload. Add the property **Name** and **Value** for the custom property you want included in the payload.
244+
1. (Optional) In the **Custom properties** section, if you've configured action groups for this alert rule, you can add custom properties in key:value pairs to the alert notification payload to add more information to it. Add the property **Name** and **Value** for the custom property you want included in the payload.
247245

248246
You can also use custom properties to extract and manipulate data from alert payloads that use the common schema. You can use those values in the action group webhook or logic app.
249247

250-
The format for extracting values from the common schema, use a "$", and then the path of the common schema field inside curly brackets. For example: `${data.essentials.monitorCondition}`.
248+
The format for extracting values from the common schema, use a "$", and then the path of the [common schema](https://learn.microsoft.com/azure/azure-monitor/alerts/alerts-common-schema) field inside curly brackets. For example: `${data.essentials.monitorCondition}`.
251249

252250
In the following examples, values in the **custom properties** are used to utilize data from the payload:
253251

254252
**Example 1**
253+
This example creates an "Additional Details" tag with data refarding the "window start time" and "window end time".
255254
- **Name:** "Additional Details"
256255
- **Value:** "Evaluation windowStartTime: \${data.alertContext.condition.windowStartTime}. windowEndTime: \${data.alertContext.condition.windowEndTime}"
257256
- **Result:** "AdditionalDetails:Evaluation windowStartTime: 2023-04-04T14:39:24.492Z. windowEndTime: 2023-04-04T14:44:24.492Z"
258257

259258

260259
**Example 2**
260+
This example add the data regarding the reason of resolving or firing the alert.
261261
- **Name:** "Alert \${data.essentials.monitorCondition} reason"
262262
- **Value:** "\${data.alertContext.condition.allOf[0].metricName} \${data.alertContext.condition.allOf[0].operator} \${data.alertContext.condition.allOf[0].threshold} \${data.essentials.monitorCondition}. The value is \${data.alertContext.condition.allOf[0].metricValue}"
263263
- **Result:** Example results could be something like:
264264
- "Alert Resolved reason: Percentage CPU GreaterThan5 Resolved. The value is 3.585"
265265
- “Alert Fired reason": "Percentage CPU GreaterThan5 Fired. The value is 10.585"
266266

267+
:::image type="content" source="media/alerts-create-new-alert-rule/alerts-rule-actions-tab.png" alt-text="Screenshot that shows the Actions tab when creating a new alert rule.":::
268+
267269
1. On the **Details** tab, define the **Project details**.
268270
- Select the **Subscription**.
269271
- Select the **Resource group**.

0 commit comments

Comments
 (0)