GET /metrics
Retrieve account-level metrics for your S2 account. This endpoint allows you to query different metric sets with optional time ranges and aggregation intervals.Query Parameters
Metric set to return. Available values:
active-basins- Set of all basins that had at least one stream during the specified periodaccount-ops- Count of append RPC operations, per interval
Start timestamp as Unix epoch seconds. Required for timeseries metric sets.
End timestamp as Unix epoch seconds. Required for timeseries metric sets.
Interval to aggregate over for timeseries metric sets. Available values:
minutehourday
Response
Returns aMetricSetResponse object containing the requested metrics.
Array of metrics comprising the set. Each metric can be one of four types:
Error Responses
Invalid query parameters or malformed request
Invalid or missing authentication token
Request took too long to process