Hanzo
OpenapiVisor

Returns the caller org's utilization series, oldest first.

Returns the caller org's utilization series, oldest first.

GET /v1/visor/fleet/samples

Addresshttps://api.hanzo.ai/v1/visor/fleet/samples
MethodGET
OperationlistFleetSamples
AuthAuthorization: Bearer $HANZO_API_KEY

Returns the caller org's utilization series, oldest first.

A rejected narrower is a 400 carrying its own reason (the vocabulary is ours and safe to echo); a warehouse failure is logged and answered 503 "unavailable", because a chart that silently reads "no load" when the truth is "we cannot tell" is worse than one that says so. An ABSENT warehouse is different again: it returns an empty series, which renders honestly as "no samples yet".

Request

3 fields.

FieldInTypeRequiredDescription
unitquerystringUnit selects one compute unit's series by its source-local id.
sourcequerystringSource selects one plane: "agent", "byo" or "visor".
rangequerystringRange is the lookback window (e.g.

Response

StatusBodyMeaning
200sampleListok

200 body — 17 fields.

FieldInTypeAlwaysDescription
samplesbodysampleView[]Samples are the readings, OLDEST first — the order a chart plots.
samples[].atbodystringAt is when the reading was MEASURED, RFC 3339 in UTC — the x-axis a chart plots against.
samples[].costCentsbodyintegerCostCents is what this unit resold for over the hour the reading falls in, in whole US cents.
samples[].cpusbodyintegerCPUs is logical cores. The static capability rides every row on purpose: a chart can size load against cores without joining a registry whose row may since…
samples[].gpuModelbodystringGPUModel names the representative accelerator ("GB10"); GPUs carries how many.
samples[].gpuUtilbodynumberGPUUtil is aggregate accelerator utilization as a FRACTION of 1 — 0.42 is 42% busy.
samples[].gpusbodyintegerGPUs is how many accelerators the reading covers.
samples[].hostbodystringHost is the hostname the unit reported at the time of the reading.
samples[].kindbodystringKind is what the measured unit is: laptop, cloud, gpu, cluster, machine or worker.
samples[].load1bodynumberLoad1 is the 1-minute load average — runnable processes, not a percentage.
samples[].load5bodynumberLoad5 is the 5-minute load average, the same units as Load1.
samples[].load15bodynumberLoad15 is the 15-minute load average, the same units as Load1.
samples[].memFreebodyintegerMemFree is host memory available, in BYTES, as reported rather than derived.
samples[].memUsedbodyintegerMemUsed is host memory in use, in BYTES.
samples[].memorybodyintegerMemory is total system RAM in BYTES at the time of the reading.
samples[].sourcebodystringSource is the plane that reported the reading: "agent", "byo" or "visor" — the same vocabulary the board's rows carry, and what ?source= narrows on.
samples[].unitbodystringUnit is the source's own id for the measured unit.

Failure carries the platform error shape — see Errors.

Examples

hanzo has no subcommand for this operation — the CLI serves only what cloud's live route table confirms. Use HTTP or an SDK.


Visor API · All Hanzo APIs · Interactive reference

How is this guide?

On this page