Types

AnalyticsMetric

One named metric: a single value or a series of buckets, with the metric, its category and the filter that applied.

metricrequired
string
The metric slug that was asked for.
categoryrequired
string
Which group the metric belongs to: deals, users or engagement.One of: deals, users, engagement
filterrequired
object
The filters that applied. A range appears as `created_at`, `published_at` or `occurred_at` with its bounds, and `status` when sent. Empty when none was sent.
value
number | null
The count. Present for single-figure metrics, absent when `series` is present.
series
object | object | object | object | object[]
The buckets. Present for breakdown and time-series metrics, absent when `value` is present.

Used by (3)