#Webhook Integration

1 messages · Page 1 of 1 (latest)

noble stirrup
#

I would like to link the webhook when sending the sentry alert mail.
It's a messenger webhook called JANDI. How should I set up Payload?
Only callbackUrls can be entered in the Sentry webhook.


Test Results
"There was an internal error with the Plugin, {"code":40052,"msg":"Invalid payload - body"}"

kindred dawn
noble stirrup
#

Do you have a javascript guide? (next.js)

kindred dawn
#

The doc I shared is meant for all platforms. You need to create the internal integration, subscribe to the alert webhooks in the integration config and enable the Alert Rule Action toggle

Then you can simply edit your alert rule and add an action to notify your webhooks when the alert is triggered

noble stirrup
#

It is difficult for me to understand even if I look at the guide. The external content I am trying to link can send a message as follows.

curl
-X POST https://wh.jandi.com/connect-api/webhook/{MY-WEBHOOK-URL}
-H "Accept: application/vnd.tosslab.jandi-v2+json"
-H "Content-Type: application/json"
--data-binary '{"body":"[PizzaHouse] You have a new Pizza order.","connectColor":"#FAC11B","connectInfo":[{"title":"Topping","description":"Pepperoni"},
{"title":"Location","description":"Empire State Building, 5th Ave, New York","imageUrl":"Url_to_text"}]}'

Where should this data structure be defined in Sentry?

noble stirrup
#

plz~~~~~help

kindred dawn
#

Do you want to send the body JSON to Sentry?

#

You can send such custom data to Sentry as tags : https://docs.sentry.io/platforms/javascript/guides/nextjs/enriching-events/tags/ or context: https://docs.sentry.io/platforms/javascript/guides/nextjs/enriching-events/context/

But if you want this custom data to show up in the alerts that Sentry sends you then you must send it in the form of tags

Tags power UI features such as filters and tag-distribution maps. Tags also help you quickly access related events and view the tag distribution for a set of events.

Custom contexts allow you to attach arbitrary data (strings, lists, dictionaries) to an event.

noble stirrup
#

Send notifications through the following when Test Notification is sent
JANDI - Frontend Monitoring Alarm is not working normally What settings should I set?

noble stirrup
#

@kindred dawn

kindred dawn
#

Hi, this might need some more help from the support team, can you please write to [email protected] and share the message link of this thread with them