Skip to main content

Module usage

Module usage 

Source
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§

CloudQuotaV1
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.
CloudUsageV1
GET /v1/usage.

Enums§

CloudQuotaStateV1
How far one quota is used: warn from 80 %, full at 100 %.

Constants§

FEATURE_USAGE
The features entry of a server that serves GET /v1/usage.
USAGE_SCHEMA
schema of the usage answer.