Hanzo
OpenapiO11y

Lists Kubernetes namespaces over a time range, each with the CPU and memory its…

Lists Kubernetes namespaces over a time range, each with the CPU and memory its pods used, their phase counts and its attributes; filterable, groupable…

POST /v1/o11y/namespaces/list

Addresshttps://api.hanzo.ai/v1/o11y/namespaces/list
MethodPOST
Operationpost_o11y_namespaces_list
AuthAuthorization: Bearer $HANZO_API_KEY

Lists Kubernetes namespaces over a time range, each with the CPU and memory its pods used, their phase counts and its attributes; filterable, groupable and paginated.

Request

24 fields, body application/json (required).

FieldInTypeRequiredDescription
endbodyintegerepoch time in ms
filtersbodyo11y.FilterSet
filters.itemsbodyo11y.FilterItem[]
filters.items[].keybodyo11y.AttributeKey
filters.items[].key.dataTypebodystring
filters.items[].key.isColumnbodyboolean
filters.items[].key.isJSONbodyboolean
filters.items[].key.keybodystring
filters.items[].key.typebodystring
filters.items[].opbodystring
filters.items[].valuebodyobject
filters.opbodystring
groupBybodyo11y.AttributeKey[]
groupBy[].dataTypebodystring
groupBy[].isColumnbodyboolean
groupBy[].isJSONbodyboolean
groupBy[].keybodystring
groupBy[].typebodystring
limitbodyinteger
offsetbodyinteger
orderBybodyo11y.OrderBy
orderBy.columnNamebodystring
orderBy.orderbodystring
startbodyintegerepoch time in ms

Response

StatusBodyMeaning
200o11y.O11yNamespaceListOutok

200 body — 16 fields.

FieldInTypeAlwaysDescription
databodyo11y.NamespaceListResponse
data.recordsbodyo11y.NamespaceListRecord[]
data.records[].countByPhasebodyo11y.PodCountByPhase
data.records[].countByPhase.failedbodyinteger
data.records[].countByPhase.pendingbodyinteger
data.records[].countByPhase.runningbodyinteger
data.records[].countByPhase.succeededbodyinteger
data.records[].countByPhase.unknownbodyinteger
data.records[].cpuUsagebodynumber
data.records[].memoryUsagebodynumber
data.records[].metabodyobject
data.records[].meta.*bodystring
data.records[].namespaceNamebodystring
data.totalbodyinteger
data.typebodystring
statusbodystringStatus is "success".

Failure carries the platform error shape — see Errors.

Examples

hanzo o11y namespaces list

O11y API · All Hanzo APIs · Interactive reference

How is this guide?

On this page