Skip to content

[alerting] http status 422 from webhook action to opsgenie #75299

@pmuellr

Description

@pmuellr

Trying to use OpsGenie from the webhook connector, and am seeing http 422 responses from my simple test.

Here's some of the data from the alert/action:

    {
        "id": "e00f4304-1e87-4161-9bf8-c8413825299f",
        "actionTypeId": ".webhook",
        "name": "opsgenie",
        "config": {
            "method": "post",
            "url": "https://api.opsgenie.com/v2/alerts",
            "headers": {
                "Authorization": "GenieKey <api key here>,
                "Content-Type": "application/json"
            }
        },
        "isPreconfigured": false,
        "referencedByCount": 1
    },
            "actions": [
                {
                    "actionTypeId": ".server-log",
                    "params": {
                        "level": "info",
                        "message": "{{context.message}}"
                    },
                    "group": "threshold met",
                    "id": "2bb6ab6b-f3b4-46c2-a581-7163afdb8749"
                },
                {
                    "actionTypeId": ".webhook",
                    "params": {
                        "body": "{\n    \"message\": \"{{{context.message}}}\"\n}"
                    },
                    "group": "threshold met",
                    "id": "e00f4304-1e87-4161-9bf8-c8413825299f"
                }
            ],

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:AlertingTeam:ResponseOpsPlatform ResponseOps team (formerly the Cases and Alerting teams) t//

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions