Rivier/ Reference/ hosting

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

  • namestringrequired
    In the path

Request bodyapplication/json, required

  • fromstring
    Start of the period (inclusive), a date or ISO time At most 40 characters.
  • tostring
    End of the period (exclusive) At most 40 characters.
  • grainstring
    One of: day, week, month, quarter, year.
  • bylist of string
    Dimensions to break the figure down by Default: [].
  • versioninteger
    A version other than the approved one; drafts are read by the project's own people only At least 1.

Responses

  • 200application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown