Hanzo
OpenapiO11y

Creates a new alert rule and answers with the stored rule.

Creates a new alert rule and answers with the stored rule.

POST /v1/o11y/rules

Addresshttps://api.hanzo.ai/v1/o11y/rules
MethodPOST
OperationCreateRule
AuthAuthorization: Bearer $HANZO_API_KEY

Creates a new alert rule and answers with the stored rule. Editor gate.

Request

1 field, body application/json (required).

FieldInTypeRequiredDescription
(body)bodyanyyes

Response

StatusBodyMeaning
201o11y.O11yRuleOutcreated

201 body — 2 fields.

FieldInTypeAlwaysDescription
databodyanyData holds the rule.
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y rules create

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page