Hanzo
OpenapiO11y

Returns the org's current retention policy: default TTL, custom per-label…

Returns the org's current retention policy: default TTL, custom per-label rules, and cold-storage settings where configured.

GET /v1/o11y/settings/ttl

Addresshttps://api.hanzo.ai/v1/o11y/settings/ttl
MethodGET
Operationget_o11y_settings_ttl
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the org's current retention policy: default TTL, custom per-label rules, and cold-storage settings where configured.

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

Request

GET /v1/o11y/settings/ttl takes no parameters and no body — the credential is the whole request.

Response

StatusBodyMeaning
200o11y.O11yRetentionOutok

200 body — 12 fields.

FieldInTypeAlwaysDescription
cold_storage_ttl_daysbodyintegerColdStorageTTLDays is how old data must be before it moves, in days.
cold_storage_volumebodystringColdStorageVolume names the volume aged data moves to.
default_ttl_daysbodyintegerDefaultTTLDays is the retention for data no rule matches, in days.
expected_logs_move_ttl_duration_hrsbodyintegerExpectedLogsMoveTTLHours is the pending logs cold-storage move TTL, in hours.
expected_logs_ttl_duration_hrsbodyintegerExpectedLogsTTLHours is the pending logs TTL, in hours.
statusbodystringStatus is the last TTL operation's state.
ttl_conditionsbodyo11y.O11yRetentionRule[]TTLConditions are the ordered per-label rules; the first match wins.
ttl_conditions[].conditionsbodyo11y.O11yRetentionMatch[]Conditions all have to hold for the rule to match.
ttl_conditions[].conditions[].keybodystringKey is the label to test.
ttl_conditions[].conditions[].valuesbodystring[]Values are the label values the rule matches.
ttl_conditions[].ttlDaysbodyintegerTTLDays is the retention applied when it does, in days.
versionbodystringVersion is the policy format version.

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y settings ttl get

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page