#Webhooks

Create External Event Conditions

External Event conditions for policies are typically used in conjunction with Webhook integrations. See the Webhook integration setup or Webhook API documentation for more information. Open Policy Editor. Click Conditions. Click Add Condition, then select Add External Event Condition. Type into the fields to create a proper filter: Message Contains: A regex statement that attempts to match a word or phrase in the event message. Title Contains: A regex statement that attempts to match a word or phrase in the event’s title.

Webhooks Notifications

There are two main uses for webhooks: pushing data into metricly (inbound) and pulling data like notifications out (outbound). Inbound: Achieved via POST URL that can be found on the Webhook integration card. Outbound: Used by several of our notification integrations and accessible through the Webhook GET API endpoint. For a great example of an inbound webhook usecase, see how we pushed CloudWatch Logs into Metricly. When using the outbound method, you can customize the JSON payload using the freemarker markup language from Account > Notifications > Webhook.