URL parameters
Source for which to update a metric
ID of the metric you want to update
Headers
Bearer $TOKEN
Body parameters
Metric name
SQL expression to use for the metric
Aggregations to apply to the metric.
Valid aggregations are avg, count, uniq, max, min, anyLast, sum, p50, p90, p95, p99
Metric type.
Valid types are string_low_cardinality, int64_delta, float64_delta, datetime64_delta, and boolean
How to process historical data. new_data (default) applies the change going forward. historical_logs reprocesses retained logs.