v1
latestOpenAPI 3.1.02026-07-261444991.2 MBMetric
Create metric
This endpoint is used to create a metric using a SQL string. See SQL support for a description of constructing SQL queries with examples.
post/metrics
Request body
Example request
{
"sql": "SELECT sum(bytes_downloaded) FROM events WHERE download_speed = 'fast'",
"name": "Bytes downloaded",
"description": "Sum of bytes downloaded in fast mode"
}Response
Created