Hanzo
OpenapiO11y

Creates a mapping group: the name it is known by, the span and resource…

Creates a mapping group: the name it is known by, the span and resource attributes whose presence selects a span into it, and whether it is on.

POST /v1/o11y/span_mapper_groups

Addresshttps://api.hanzo.ai/v1/o11y/span_mapper_groups
MethodPOST
OperationCreateSpanMapperGroup
AuthAuthorization: Bearer $HANZO_API_KEY

Creates a mapping group: the name it is known by, the span and resource attributes whose presence selects a span into it, and whether it is on.

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

Request

5 fields, body application/json (required).

FieldInTypeRequiredDescription
conditionbodyo11y.SpanMapperGroupCondition
condition.attributesbodystring[]
condition.resourcebodystring[]
enabledbodyboolean
namebodystring

Response

StatusBodyMeaning
201o11y.O11ySpanMapperGroupOutcreated

201 body — 13 fields.

FieldInTypeAlwaysDescription
databodyo11y.SpanMapperGroup
data.conditionbodyo11y.SpanMapperGroupCondition
data.condition.attributesbodystring[]
data.condition.resourcebodystring[]
data.createdAtbodystring (date-time)
data.createdBybodystring
data.enabledbodyboolean
data.idbodyany
data.namebodystring
data.orgIdbodyany
data.updatedAtbodystring (date-time)
data.updatedBybodystring
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y span_mapper_groups create

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page