Skip to content

Generic Webhook

The Generic Webhook needs Premium. It sends every alert as a JSON POST to your endpoint, so you can feed Monitorial Pulse into an on-call tool, an automation platform or your own service. An optional transform procedure lets you reshape the body to whatever your endpoint expects.

  • An HTTPS endpoint that accepts POST requests with a JSON body.
  • Optionally, a value for the Authorization header your endpoint checks.
  1. Open Monitoring » Destinations, select Add destination, then Generic Webhook.

  2. Enter a name and fill in the fields:

    Field Value
    Webhook URL The full HTTPS URL.
    Auth Header (optional) The authorisation value your endpoint expects. Pulse stores it as a Snowflake secret.
    Transform Procedure (optional) A procedure that reshapes the body, as database.schema.name. See below.
  3. Optionally, choose a persona in Who reads this channel?

  4. Select Next. If the wizard shows the Allow access step, approve the connection there (see Approve connections). It covers only the host in your URL. Then send a test on the Test step and select Done.

From the row menu, select Send test, choose a severity and select Send test notification. Check that your endpoint received the request.

A POST with Content-Type: application/json. Pulse waits up to 15 seconds for a reply.

Field Contents
source Where the alert came from, for example monitor.
severity Critical, Error, Warning, Info, Debug, Verbose or Resolved.
message The alert text, rewritten for the persona if one is set.
object_name, object_type What the alert is about, when known.
pillar, monitor_type, message_type, environment How the alert is classified, when known.
message_details The detail rows, as key/value pairs.
monitor_id, rule_id, rule_name Which monitor and rule sent it.
requires_ack, requires_action Whether the rule expects someone to acknowledge or act.
ai_summary The persona’s AI section, when there is one.
timestamp When Pulse sent it.

Fields with no value are left out. Treat unknown fields as optional, since new ones may be added.

Reply with any 2xx status. Pulse retries twice after a 5xx reply, a timeout or a connection error. A 4xx reply isn’t retried, since the request itself needs fixing. Failures count towards the delivery pause.

Reshape the body with a transform procedure

Section titled “Reshape the body with a transform procedure”

If your endpoint needs different field names or its own envelope, name a transform procedure. Pulse calls it with the body above as a VARIANT and sends whatever it returns, unchanged, in place of the standard body.

After you save, Pulse registers the procedure’s database under Database Access. Open the destination’s Edit view: the Database access panel shows whether Pulse can call the procedure. Select Show grant script, run the script as ACCOUNTADMIN, then select Re-validate access. The script creates a MONITORIAL_PROC_CALLER database role with USAGE on the database, schema and procedure, and grants it to the app.