Overview
Prequel supports sending webhook events directly to Datadog as events. When you create a webhook endpoint of typedatadog, Prequel will POST a JSON payload to the Datadog Events v1 API, using your Datadog API key. The webhook can be easily configured directly in the Prequel Admin UI.
Payload structure
The payload sent to Datadog depends on the event type:-
Transfer Event Types (
transfer.success,transfer.error,transfer.cancelled):title: A string describing the event, e.g."transfer.success for <transfer_id>"text: The transfer log (truncated to 3000 characters if necessary)tags: Array of tags, including:service:prequelevent_type:<event_type>transfer_id:<transfer_id>destination_id:<destination_id>destination_name:<destination_name>id_in_provider_system:<id_in_provider_system>transfer_status:<transfer_status>rows_transferred:<rows_transferred>env:<org_environment>: available values are:"staging"and"production"host:<deployment_domain>: the domain of the Prequel deployment that sent the event (e.g.app.prequel.co)- (optional)
transfer_blamed_party:<blamed_party>: available values are:"first_party","third_party","prequel", and"unknown"
date_happened: Unix timestamp of the eventalert_type:"info"for success,"error"for error,"user_update"for cancelled
-
Other Resource Event Types (e.g. source, destination, recipient, magic link):
title:<event_type> for <resource_name>text: The event type, with dots replaced by spaces (e.g."recipient created")tags: Array of tags, including:service:prequelevent_type:<event_type>resource_name:<resource_name>env:<org_environment>: available values are:"staging","production"host:<deployment_domain>: the domain of the Prequel deployment that sent the event (e.g.app.prequel.co)
date_happened: Unix timestamp of the eventalert_type:"user_update"
Example Datadog payloads
Transfer Success Example:Transfer success payload
Resource event payload