Hanzo
OpenapiO11y

Aggregates a project's captured errors into a table — the caller names the…

Aggregates a project's captured errors into a table — the caller names the filters, the groupings and the aggregations, and gets back the columns and rows…

POST /v1/o11y/sentinel/discover

Addresshttps://api.hanzo.ai/v1/o11y/sentinel/discover
MethodPOST
Operationpost_o11y_sentinel_discover
AuthAuthorization: Bearer $HANZO_API_KEY

Aggregates a project's captured errors into a table — the caller names the filters, the groupings and the aggregations, and gets back the columns and rows they asked for.

The project is mandatory and is checked against the caller's own org before it scopes anything, so a project id belonging to someone else reads as absent rather than as data.

Request

11 fields, body application/json (required).

FieldInTypeRequiredDescription
aggregationsbodystring[]Aggregations are the measures to compute per group.
filtersbodyo11y.O11yFilter[]Filters narrow the scan; each is a field, an operator (eq, neq, like) and a value, and they combine with AND.
filters[].fieldbodystringField is the column to test.
filters[].opbodystringOp is how to test it: eq, neq or like.
filters[].valuebodystringValue is what to test it against.
groupBybodystring[]GroupBy are the columns to group the rows by.
limitbodyintegerLimit caps how many rows come back.
orderBybodystringOrderBy is the column or aggregation to sort the rows on.
orderDirbodystringOrderDir is asc or desc.
periodbodystringPeriod is the window to read, relative to now — 1h, 24h, 7d, 14d, 30d.
projectbodystringyesProject is the project to read, as its id.

Response

StatusBodyMeaning
200o11y.O11yDiscoverOutok

200 body — 4 fields.

FieldInTypeAlwaysDescription
databodyo11y.O11yTable
data.columnsbodystring[]Columns names each position in a row.
data.rowsbodyobject[][]Rows are the result rows, each as long as Columns.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page