Skip to content

Metrics

Volume, delivery success and latency over time. Authentication, errors and limits are on the overview.

Get metrics

GET /api/v1/projects/{project_id}/environments/{environment_id}/metrics

Parameters

NameInTypeDescription
project_id requiredpathstringprj_ ID
environment_id requiredpathstringenv_ ID
resolutionqueryResolutionminute or hour, default hour.
afterquerystring (date-time)From this time, default a day before before; the bucket holding it is the first.
beforequerystring (date-time)Up to this time, default now.
source_idquerystringCount only this source's events (src_ ID).
destination_idquerystringCount only this destination's deliveries (dst_ ID).

Responses

StatusDescriptionBody
200The range's buckets and totalsMetrics
401No API key, or it is invalid or revokedProblem
404No such environment, or no accessProblem
422Invalid range or IDProblem
429Over the key's rate limit; Retry-After says when to try againProblem