Endpoints

Statistics

GET/api/v1/me/statistics

Org-scoped by the ClickHouse row policy on up0.org_statistics (20260828_618_org_statistics.sql) — the same floor every other ClickHouse-backed /me/.../service-catalog read in this codebase relies on (ServiceTelemetryService's own docstring), not merely this route's own filtering.

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Query Parameters

from*From

Range start (inclusive)

Formatdate-time
to*To

Range end (exclusive)

Formatdate-time
bucket*Bucket

Server-side bucket granularity

Value in

  • "hour"
  • "day"
group_by?|

Break event_count/uncompressed_bytes down by this attribution axis (#621). Omit for org+signal-level totals only.

Response Body

application/json

application/json

curl -X GET "https://example.com/api/v1/me/statistics?from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&bucket=hour"
{  "organization_id": "7c60d51f-b44e-4682-87d6-449835ea4de6",  "start": "2019-08-24T14:15:22Z",  "end": "2019-08-24T14:15:22Z",  "bucket": "hour",  "bucket_width_seconds": 0,  "group_by": "service",  "series": [    {      "signal": "string",      "dimension": "string",      "dimension_value": "string",      "unit": "events",      "is_estimate": true,      "total": 0,      "data_start": "2019-08-24T14:15:22Z",      "points": [        {          "bucket_start": "2019-08-24T14:15:22Z",          "bucket_end": "2019-08-24T14:15:22Z",          "value": 0        }      ]    }  ],  "retention": [    {      "signal": "string",      "oldest_datapoint_at": "2019-08-24T14:15:22Z",      "age_days": 0,      "configured_retention_days": 0,      "distinct_series": 0,      "distinct_attribute_keys": 0    }  ]}