用于警报的Azure Application Insights Webhook有效负载

时间:2019-09-06 20:40:35

标签: azure azure-application-insights

在Azure Application Insights警报中,我们已配置Webhooks以将Json Payload发送到ServiceNow(第三方票证生成应用程序)。警报被触发,我们可以在Azure门户上查看警报,但是无论如何,它都知道警报被触发时在特定时间发送的PAYLOAD是什么。我可以看到触发警报的历史记录,但是没有关于通过Webhook生成并发送的有效负载是什么的视图/信息。

有可能吗?

1 个答案:

答案 0 :(得分:0)

您可以通过对Alerts Management REST API运行查询来查看警报的有效负载:https://docs.microsoft.com/en-us/rest/api/monitor/alertsmanagement/alerts/getbyid

如果您使用的是通用警报架构,那么您将获得的有效负载正是通过Webhook发送的有效负载。否则,某些字段可能会显示在“基本”部分而不是“上下文”部分。