Skip to main content
POST
Query deployment statistics
For authentication and error responses, see the Public API (V2) overview.

Authorizations

Authorization
string
header
required

Authorization: Bearer <token>

Body

application/json

Query for the aggregated metrics of one deployment revision, over all retained data.

site_id
string
required

Site identifier, as a BSON ObjectId.

revision
string
required

Git revision or deployment identifier.

namespace
string | null

Optional namespace filter (e.g., "web", "api"). Absent means all namespaces.

Response

Statistics for the revision, zero when nothing was recorded.

Aggregated metrics for one deployment. Without recorded samples, throughput is the error count, error_rate 100 (0 without errors) and mean 0.

throughput
integer<u-int64>
required

Recorded requests and background jobs.

Required range: x >= 0
mean
number<double>
required

Mean duration in milliseconds.

error_rate
number<double>
required

Error rate as a percentage (0-100).