Skip to main content

GET /metrics//

Retrieve usage metrics for a specific stream within a basin. This endpoint provides stream-level storage information.

Path Parameters

string
required
Basin name containing the stream
string
required
Stream name to retrieve metrics for

Query Parameters

string
required
Metric set to return. Available values:
  • storage - Amount of stored data, per minute, for the specific stream
integer
Start timestamp as Unix epoch seconds. Required for timeseries metric sets.
integer
End timestamp as Unix epoch seconds. Required for timeseries metric sets.
string
Interval to aggregate over for timeseries metric sets. Available values:
  • minute
  • hour
  • day

Response

Returns a MetricSetResponse object containing the requested stream metrics.
array
Array of metrics comprising the set. Each metric can be one of four types:

Error Responses

Bad Request
Invalid query parameters, malformed request, or invalid basin/stream name
Forbidden
Invalid or missing authentication token, or insufficient permissions for the stream
Request Timeout
Request took too long to process

Notes

  • Storage metrics represent the instantaneous amount of data stored in the stream at each timestamp
  • The storage metric uses a gauge type, meaning each data point represents the value at that specific point in time
  • Finer granularity (minute intervals) provides more detailed tracking of storage growth over time