Expand description
GET /v1/usage (LeanCTX Cloud, capability FEATURE_USAGE): the
workspace’s quotas as the Plan page shows them, so an instance warns at
80 % instead of meeting a refusal.
The answer is {schema: leanctx.cloud.usage/v1, plan, read_only, quotas: {<resource>: {limit, used, reset_at, state, next_step}}, notices, model_credit, suggest_team}. Like every response type it accepts unknown
members; notices, model_credit and suggest_team are carried for a
local reader but not interpreted here, and an
unknown state reads as CloudQuotaStateV1::Unknown rather than
failing the whole answer.
Structs§
- Cloud
Quota V1 - One quota of the usage answer. Amounts are in the resource’s unit:
bytes for
*_bytes, millionths of a US dollar for*_usd_micros, counts otherwise. - Cloud
Usage V1 GET /v1/usage.
Enums§
- Cloud
Quota State V1 - How far one quota is used:
warnfrom 80 %,fullat 100 %.
Constants§
- FEATURE_
USAGE - The
featuresentry of a server that servesGET /v1/usage. - USAGE_
SCHEMA schemaof the usage answer.