Microsoft Azure .net SDK"Microsoft.AspNet.WebHooks.Receivers.Azure"支持经典的度量标准警报调用Webhook.它是否支持日志警报,活动日志警报和应用程序警报称为Webhook. [英] Microsoft Azure .net SDK "Microsoft.AspNet.WebHooks.Receivers.Azure" supports classic metric alert calls a webhook. Will it support Log Alert , Activity log Alerts and Application alerts calls a webhook.

查看:80
本文介绍了Microsoft Azure .net SDK"Microsoft.AspNet.WebHooks.Receivers.Azure"支持经典的度量标准警报调用Webhook.它是否支持日志警报,活动日志警报和应用程序警报称为Webhook.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在尝试为Azure警报(指标,日志,活动和应用程序)编写WebHook接收器.每个Alert具有不同的有效负载JSON数据.如以下网址所示:

We are trying to write a WebHook Receiver for Azure Alerts(Metric, Log, Activity and Application). Each of the Alert is having different payload JSON data. as shown in below URL:

链接:https://docs.microsoft.com/zh-cn/azure/monitoring-and-diagnostics/monitor-alerts-unified-log-webhook?toc=/azure/azure-monitor/toc.json

link: https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitor-alerts-unified-log-webhook?toc=/azure/azure-monitor/toc.json

Microsoft提供了一个通过webhook接收天蓝色警报的程序包.

Microsoft provided a package for receiving azure alerts through webhook.

链接:https://blogs.msdn.microsoft.com/cie/2015/11/02/webhooks-for-azure-alerts-creating-a-sample-asp-net-receiver-application/

Link: https://blogs.msdn.microsoft.com/cie/2015/11/02/webhooks-for-azure-alerts-creating-a-sample-asp-net-receiver-application/

但是我发现"Microsoft.AspNet.WebHooks.Receivers.Azure" SDK仅支持Azure经典度量标准警报有效负载JSON.

However I found that "Microsoft.AspNet.WebHooks.Receivers.Azure"  SDK supports only Azure classic metric alert payload JSON.

请告诉我们,有没有支持所有Azure警报(指标,日志,活动和应用程序)的SDK.当我尝试接收Azure日志警报时,出现错误.

Can you please tell us is there any sdk which will be supporting all kinds of Azure Alerts (Metric, Log, Activity and Application). When I tried to receive Azure Log Alert  , Am getting below error.

错误消息:"HTTP请求正文不包含必需的'name'属性."

Error Message: "The HTTP request body did not contain a required 'name' property."

如果我选错了,请重新排列类别.

Request to rerrange the category if I was chosen wrong.

感谢&问候

普拉萨德·雷迪(Prasad Reddy).

Prasad Reddy.

 

推荐答案

您好,普拉萨德(Prasad),对于回答问题的延迟表示歉意.您还记得您安装了哪个版本的SDK.该博客文章来自2015年,因此您可能正在运行一个过时的版本.我建议去 此链接以下载最新版本的接收器SDK.

Hi Prasad, apologies for the delay in responding to your question. Do you recall what version of the SDK you installed. the blog post is from 2015 so Its possible you are running an outdated version. I recommend visiting this link to download the latest version of the receiver SDK.


这篇关于Microsoft Azure .net SDK"Microsoft.AspNet.WebHooks.Receivers.Azure"支持经典的度量标准警报调用Webhook.它是否支持日志警报,活动日志警报和应用程序警报称为Webhook.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆