Forum Discussion
Dimensions in webhook payload
-Akos- standard schema definition is service specific. Here are samples for each of the services. https://docs.microsoft.com/en-us/azure/azure-monitor/platform/alerts-common-schema-definitions. Please let us know if this doesn't answer your question.
Best, Michael
-Azure Monitor Product Management
Michael_Milirud I've had that page sort of like a bible bookmarked and read it a number of times, but no, it doesn't say everything I need to know. With a Log Analytics query based alert, I would like to know if the AffectedConfigurationItems section will always hold the data of affected servers. I've noticed a few times that section in the json was empty, but there was data in the search results table.
btw, I mentioned a blog, https://azure.microsoft.com/en-us/updates/improvements-to-azure-monitor-log-alerts-include-new-links-and-added-dimensions/ was it.
Also, Log analytics links to the portal are supposed to be compressed, but I'm still seeing very long links in the json data.
- Michael_MilirudJul 30, 2020Former Employee
-Akos- I've reached out to our alerting team to get an answer for you on this. If you are still seeing uncompressed links we should take a look at your repro. Can you share a sample JSON that you are seeing with issues highlighted?
Best, Michael- -Akos-Jul 30, 2020Brass Contributor
Michael_Milirud I will send you a message offline with some json data. I may need to redact some sensitive data, but the data will be intact otherwise
- yalaviAug 03, 2020
Microsoft
-Akos- The post was about the new 'Dimensions' section in the payload for metric measure log alert type that you control, that split the alerts and provide the context of the fired alerts.
AffectedConfigurationItems is an old and only partly reliable feature that uses heuristics of column names. Future API version will not have AffectedConfigurationItems, but will make it easier to define dimensions even for simple count of rows.
There is an example here (and in the common schema definition page you have):