Documentation menu

Get project app utilisation

GEThttps://api.instacloud.com/projects/{projectId}/utilisation

Token scope: account · org · project — read-only tokens allowed.

Per-app actual-vs-allocated compute utilisation over a window (default current cycle)

Quantities, not costs: the actual-consumption meters are collected at $0, so a cost-based ratio would read 0% for every app. utilisation is null when nothing was allocated in the window, which is not the same as 0% — the collector may simply not have run.

Parameters

NameInTypeRequiredDescription
fromqueryintegernounix seconds (default current cycle start)
toqueryintegernounix seconds (default current cycle end)
projectIdpathstringyes

Responses

200

Default Response

FieldTypeRequiredDescription
fromintegerno
tointegerno
appsobject[]no
apps.appstringno
apps.resourceIdstringno
apps.cpuobjectno
apps.cpu.allocatednumber | nullnothe ceiling that was billed, in `unit`. NULL means no allocation was recorded in this window — not that nothing was allocated.
apps.cpu.actualnumber | nullnowhat the app actually consumed, same unit. NULL means not measured in this window — not zero.
apps.cpu.unitstringno
apps.cpu.utilisationnumber | nullnoactual / allocated; null when either side is unknown
apps.cpu.suspectbooleannoactual exceeds allocation, which is physically impossible — the stored rows are wrong. Excluded from totals.
apps.cpu.unmeteredbooleannothe app exists but the collector produced no rows at all for it in this window — neither allocation nor reading. Worse than an absent reading: nothing bounds how much of the fleet is missing.
apps.ramobjectno
apps.ram.allocatednumber | nullnothe ceiling that was billed, in `unit`. NULL means no allocation was recorded in this window — not that nothing was allocated.
apps.ram.actualnumber | nullnowhat the app actually consumed, same unit. NULL means not measured in this window — not zero.
apps.ram.unitstringno
apps.ram.utilisationnumber | nullnoactual / allocated; null when either side is unknown
apps.ram.suspectbooleannoactual exceeds allocation, which is physically impossible — the stored rows are wrong. Excluded from totals.
apps.ram.unmeteredbooleannothe app exists but the collector produced no rows at all for it in this window — neither allocation nor reading. Worse than an absent reading: nothing bounds how much of the fleet is missing.
totalobjectno
total.cpuobjectno
total.cpu.allocatednumber | nullnothe ceiling that was billed, in `unit`. NULL means no allocation was recorded in this window — not that nothing was allocated.
total.cpu.actualnumber | nullnowhat the app actually consumed, same unit. NULL means not measured in this window — not zero.
total.cpu.unitstringno
total.cpu.utilisationnumber | nullnoactual / allocated; null when either side is unknown
total.cpu.suspectbooleannoactual exceeds allocation, which is physically impossible — the stored rows are wrong. Excluded from totals.
total.cpu.unmeteredbooleannothe app exists but the collector produced no rows at all for it in this window — neither allocation nor reading. Worse than an absent reading: nothing bounds how much of the fleet is missing.
total.ramobjectno
total.ram.allocatednumber | nullnothe ceiling that was billed, in `unit`. NULL means no allocation was recorded in this window — not that nothing was allocated.
total.ram.actualnumber | nullnowhat the app actually consumed, same unit. NULL means not measured in this window — not zero.
total.ram.unitstringno
total.ram.utilisationnumber | nullnoactual / allocated; null when either side is unknown
total.ram.suspectbooleannoactual exceeds allocation, which is physically impossible — the stored rows are wrong. Excluded from totals.
total.ram.unmeteredbooleannothe app exists but the collector produced no rows at all for it in this window — neither allocation nor reading. Worse than an absent reading: nothing bounds how much of the fleet is missing.
total.cpuUnmeasuredAppsintegernoapps excluded from the cpu ratio for lack of a reading
total.ramUnmeasuredAppsintegernoapps excluded from the ram ratio for lack of a reading
total.cpuSuspectAppsintegernoapps excluded because actual exceeded allocation — impossible, so the stored rows are wrong
total.ramSuspectAppsintegernoapps excluded because actual exceeded allocation — impossible, so the stored rows are wrong
total.cpuUnmeteredAppsintegernoapps with no cpu metering rows at all — the ratio was computed over a smaller fleet than the real one
total.ramUnmeteredAppsintegernoapps with no ram metering rows at all — the ratio was computed over a smaller fleet than the real one

403

Default Response

FieldTypeRequiredDescription
errorstringyes

View as Markdown