Hanzo
OpenapiO11y

Promotes and indexes log body paths: each named path is lifted out of the JSON…

Promotes and indexes log body paths: each named path is lifted out of the JSON body into its own column, with the indexes the caller asked for.

POST /v1/o11y/logs/promote_paths

Addresshttps://api.hanzo.ai/v1/o11y/logs/promote_paths
MethodPOST
Operationpost_o11y_logs_promote_paths
AuthAuthorization: Bearer $HANZO_API_KEY

Promotes and indexes log body paths: each named path is lifted out of the JSON body into its own column, with the indexes the caller asked for. Paths must start with "body.".

Callers need the editor role; the runtime's own gate enforces it.

Request

6 fields, body application/json (required).

FieldInTypeRequiredDescription
[].indexesbodyo11y.O11yLogPromoteIndex[]Indexes are the indexes to put on the path.
[].indexes[].fieldDataTypebodystringFieldDataType is the path's data type, e.g.
[].indexes[].granularitybodyintegerGranularity is the index granularity in rows.
[].indexes[].typebodystringType is the index type, e.g.
[].pathbodystringPath is the body path, e.g.
[].promotebodybooleanPromote lifts the path into its own column when true.

Response

StatusBodyMeaning
201o11y.O11yLogPromoteOutcreated

201 body — 1 field.

FieldInTypeAlwaysDescription
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y logs promote_paths create

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page