aspnet / WebHooks

[Archived] Libraries to create and consume web hooks on ASP.NET Core. Project moved to https://github.com/aspnet/AspLabs
Apache License 2.0
627 stars 439 forks source link

Support Azure Activity Log alerts #203

Closed dougbu closed 5 years ago

dougbu commented 6 years ago

The current Azure Alert receivers (ASP.NET and ASP.NET Core) support Azure Metric alerts and (modulo #146) Availability / Web Test alerts. However Activity Log alerts use a completely different JSON schema, one that does not contain the required context:name field.

To support Activity Log alerts, update how the Azure Alert receivers find event names. One option is to search the schema for something like an event name (see https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-activity-log-alerts-webhook and linked details e.g. https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-service-notifications). Another option is to fall the event name back to a constant value or to allow the event name to be null.

Secondarily, should add strong types per Activity Log alert types e.g. one for Administration alerts and another for Service Health alerts.

dougbu commented 6 years ago

https://docs.microsoft.com/en-us/azure/monitoring-and-diagnostics/monitoring-activity-log-schema contains more details about the various Activity Log alerts.

aspnet-hello commented 6 years ago

This issue was copied to aspnet/AspNetWebHooks#22

aspnet-hello commented 5 years ago

This issue was moved to aspnet/AspLabs#47