The Webhooks API allows you to use webhooks to send events to Metricly. Sending events via the Webhook API can be used to generate external events in Metricly’s Event Explorer, meaning you could create policies based on the content of those messages. See external event policy conditions for more information.

To explore Metricly’s REST API and test some requests, go here.

Metricly CLI

The Metricly CLI provides a command-line interface to the Metricly API. See the GitHub page for installation steps.

Create an Event

This method creates an external event in Metricly.

Method GET URL https://api.app.metricly.com/ingest/webhook/{apiId}
Parameters Required/Optional Description
body Optional Body parameter; your event message as a string.
apiId Required URL (path) parameter; your API key.

Input JSON Format for Request Header 
Header Name Header Value
Content-Type application/json

Input JSON Format for Request Body

No strict format.

The Webhook endpoint will take any text you place in the body and use it as the event message in Metricly, so it’s not necessary to include proper JSON formatting (unless you want your message to include brackets and attribute-value pairs).
capterra

Join other DevOps who love Metricly!

Sign up for a free, fully featured, 21-day trial. No credit card required!