Skip to content

Commit 49ffec7

Browse files
Merge pull request #239961 from nolavime/patch-109
Update alerts-create-new-alert-rule.md
2 parents 51e1f39 + 83017ef commit 49ffec7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,15 +258,15 @@ Alerts triggered by these alert rules contain a payload that uses the [common al
258258
This example creates an "Additional Details" tag with data refarding the "window start time" and "window end time".
259259
260260
- **Name:** "Additional Details"
261-
- **Value:** "Evaluation windowStartTime: \${data.alertContext.condition.windowStartTime}. windowEndTime: \${data.alertContext.condition.windowEndTime}"
261+
- **Value:** "Evaluation windowStartTime: \${data.context.condition.windowStartTime}. windowEndTime: \${data.context.condition.windowEndTime}"
262262
- **Result:** "AdditionalDetails:Evaluation windowStartTime: 2023-04-04T14:39:24.492Z. windowEndTime: 2023-04-04T14:44:24.492Z"
263263
264264
265265
**Example 2**
266266
This example add the data regarding the reason of resolving or firing the alert.
267267
268268
- **Name:** "Alert \${data.essentials.monitorCondition} reason"
269-
- **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}"
269+
- **Value:** "\${data.context.condition.allOf[0].metricName} \${data.context.condition.allOf[0].operator} \${data.context.condition.allOf[0].threshold} \${data.essentials.monitorCondition}. The value is \${data.context.condition.allOf[0].metricValue}"
270270
- **Result:** Example results could be something like:
271271
- "Alert Resolved reason: Percentage CPU GreaterThan5 Resolved. The value is 3.585"
272272
- “Alert Fired reason": "Percentage CPU GreaterThan5 Fired. The value is 10.585"

0 commit comments

Comments
 (0)