Skip to content

API: Metrics

Governed metrics: definitions, values, and series. All endpoints require authentication unless noted. 10 endpoints.

List governed metrics

Responses: 200 · 400 · 401

Create a governed metric

Request body (JSON)

Field Type Required Description
name string yes
description string no
modelId string no
savedQueryId string no
ownerId string no
expression string yes
timeDimension string no
grain "day" | "week" | "month" | "quarter" | "year" no
filters array of — no
target number no
thresholds object no
format object no

Responses: 201 · 400 · 401 · 409

Get a governed metric

Path parameters

Name Type Required Description
id string yes

Responses: 200 · 400 · 401 · 404

Update a governed metric

Path parameters

Name Type Required Description
id string yes

Request body (JSON)

Field Type Required Description
name string no
description string no
modelId string no
savedQueryId string no
ownerId string no
expression string no
timeDimension string no
grain "day" | "week" | "month" | "quarter" | "year" no
filters array of — no
target number no
thresholds object no
format object no

Responses: 200 · 400 · 401 · 404

Delete a governed metric

Path parameters

Name Type Required Description
id string yes

Responses: 204 — No content · 401 · 404

Evaluate a governed metric’s current value (and optional series)

Path parameters

Name Type Required Description
id string yes

Request body (JSON)

Field Type Required Description
filters array of object no
refresh boolean no
series object no

Responses: 200 · 400 · 401 · 404

List metric digests

Responses: 200 · 400 · 401

Create a metric digest

Request body (JSON)

Field Type Required Description
name string yes
metricIds array of string yes
schedule "daily" | "weekly" no
isEnabled boolean no

Responses: 201 · 400 · 401 · 409

Delete a metric digest

Path parameters

Name Type Required Description
id string yes

Responses: 204 — No content · 401 · 404

Evaluate and deliver a digest now

Path parameters

Name Type Required Description
id string yes

Responses: 200 · 400 · 401 · 404