Hello, few questions regarding the Opsgenie integration with Azure:
1. We set up a Azure Resource Health integration, and triggered a few different alerts in Azure that was sent to Opsgenie. However, the mapping of the Azure alert payload to Opsgenie fields seems to not work, so most of the alert fields are empty. We use the common alert schema by Azure (Common alert schema for Azure Monitor alerts - Azure Monitor | Microsoft Learn). Is the integration maintained? We have to use dynamic fields to parse the alert from Azure, e.g.,: {{_payload.data.essentials.configurationItems}}
2. There seems to be some limitations when using methods in dynamic fields. For instance, if an array contains an object, you can reference it like this: {{myArray.get(0)}}
However, how can you reference fields nested inside the object which is inside the array? {{myArray.get(0).objectInsideArray}} does not seem to work.
3. Using extra-properties to close alerts does not seem to work. According to the terraform docs (opsgenie_integration_action | Resources | opsgenie/opsgenie | Terraform Registry), extra-properties can be used to filter condition to close alerts. However, trying to add something like:
close {
name = "Create Azure Resource Health Test Alert"
filter {
type = "match-any-condition"
conditions {
field = "extra-properties"
operation = "equals"
expected_value = "Resolved"
}
}
} does not seem to work. Extra properties can also not be selected and dynamic fields are not available in the close alert menu in the GUI.