Skip to content

Commit ac0a74d

Browse files
Merge pull request #233127 from nolavime/patch-105
Custom Properties addition
2 parents 1771b3a + 299d61e commit ac0a74d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ The common schema includes information about the affected resource and the cause
3333

3434
If you want to route alert instances to specific teams based on criteria such as a resource group, you can use the fields in the **Essentials** section to provide routing logic for all alert types. The teams that receive the alert notification can then use the context fields for their investigation.
3535
- **Alert context**: Fields that vary depending on the type of the alert. The alert context fields describe the cause of the alert. For example, a metric alert would have fields like the metric name and metric value in the alert context. An activity log alert would have information about the event that generated the alert.
36+
- **Custom Properties**: A “key: value” object, defined in the alert rule and added to the webhook notifications.
37+
If the custom properties are not set in the Alert rule, this field will be null. Note: today this is only supported for Metric Alerts other alert types will contain null in this field.
3638

3739
## Sample alert payload
3840

@@ -82,6 +84,10 @@ The common schema includes information about the affected resource and the cause
8284
}
8385
]
8486
}
87+
"customProperties":{
88+
"Key1": "Value1",
89+
"Key2": "Value2"
90+
}
8591
}
8692
}
8793
}

0 commit comments

Comments
 (0)