New Relic Incident Intelligence destination webhook template

Hi,

We are Working on sending ISSUES related payload to Teams Channel when ever our incidents correlated and created an issue. Can please help me on example json template for Teams webhook in Destinations.

Hi Naveen,
Please find the below issue and see if it helps.

1 Like

Thank you @sankar.aniyan for sharing that resource. @naveen.chittoor Did it help you resolve your issue?

Thank @sankar.aniyan and @JoiConverse .

Above Json helping to retrieve Incident related data. But I am looking for AIOPS Issue related Payload to send my teams channel.

@naveen.chittoor

I believe we solved this in a support ticket, and the example webhook payload used was:

{
  "@context": "http://schema.org/extensions",
  "@type": "MessageCard",
  "title": "New Relic Issue " ,
  "text": {{ ui_name }},
  "potentialAction": [
    {
      "@type": "OpenUri",
      "name": "View Issue",
      "targets": [
        {
          "os": "default",
          "uri": {{ url }}
        }
      ]
    }
  ],
  "sections": [
    {
      "activityTitle": {{ id }},
      "activityImage": "https://static.intercomassets.com/avatars/792690/square_128/newrelic_logo-1476726027.png?1476726027",
      "activitySubtitle": {{ priority }}
    }
  ]
}

Please let us know if you need further help.

1 Like

This did not work for me, some fields were not recognized and the JSON strings had to be quoted. This is my adapted version which works for me:

{
  "@context": "http://schema.org/extensions",
  "@type": "MessageCard",
  "title": "New Relic Anomaly Issue",
  "text": "{{ detectionType }}",
  "potentialAction": [
    {
      "@type": "OpenUri",
      "name": "View Issue",
      "targets": [
        {
          "os": "default",
          "uri": "{{ anomalyzerUrl }}"
        }
      ]
    }
  ],
  "sections": [
    {
      "activityTitle": "{{ entity.name }}",
      "activityImage": "{{viewChartImageUrl}}",
      "activitySubtitle": "{{ entity.domain }}"
    }
  ]
}
2 Likes

I Tried the same and getting the below error:
{

response: 200,

Unable to invoke Webhook. Webhook responded with HTTP status code 405.

}