The figure of a named metric, as its approved version defines it
post/datasources/metrics/{name}/value
The figure of a named metric, as its approved version defines it: over a period, by day, week, month, quarter or year, broken down by its allowed dimensions, computed over the whole table.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
hosting:read- Mcp
rivier_metric_value- Graphql
Query.hostingMetricValue- Sdk
hosting.metric.value- Cli
hosting metric value
Parameters
- namestringrequiredIn the path
Request bodyapplication/json, required
- fromstringStart of the period (inclusive), a date or ISO time At most 40 characters.
- tostringEnd of the period (exclusive) At most 40 characters.
- grainstringOne of: day, week, month, quarter, year.
- bylist of stringDimensions to break the figure down by Default: [].
- versionintegerA version other than the approved one; drafts are read by the project's own people only At least 1.
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring