Pular para o conteúdo principal
GET
Report consumption over a period

Autorizações

Authorization
string
header
obrigatório

Enforced on every transport, with no exempt operation. A person's request must carry a JWT issued by the configured identity provider, which the host verifies itself against that issuer's key set: signature, issuer, expiry, and the person and organisation it names. Requests without a valid one receive 401 NRY-0011 — except a request with no token on a laptop's socket from the OS user the kernel names as the host's own, which is that machine's user.

Parâmetros de consulta

from
string<date-time>
obrigatório

Start of the period, inclusive.

to
string<date-time>
obrigatório

End of the period, exclusive.

groupBy
enum<string>
padrão:model

Grouping dimension. model is the default and the answer an older client that sends none keeps getting. day is the UTC day the round was stamped with, which is the store's own clock and not the caller's. repository is read off the conversation each round ran in, and person is who acted in it. A dimension this version does not serve is refused naming itself.

Opções disponíveis:
model,
day,
repository,
conversation,
person
cursor
string

Opaque pagination cursor from a previous page's nextCursor or prevCursor.

Maximum string length: 1024
limit
integer
padrão:25

Maximum items per page.

Intervalo obrigatório: 1 <= x <= 100

Resposta

The usage report.

Consumption over a period, broken down by the requested dimension. One page of it: the rows are ordered by their own group key ascending — the model name, the UTC day, the repository path, the conversation id or the person's subject, whichever was asked for — and the withheld private group, which has no key of its own, comes first. A key is unique per group by construction, so there is no tie to break and the cursor is simply the last key served.

from
string<date-time>
obrigatório
to
string<date-time>
obrigatório
groupBy
enum<string>
obrigatório

The dimension these rows are grouped by, echoed from the request.

Opções disponíveis:
model,
day,
repository,
conversation,
person
rows
object[]
obrigatório
nextCursor
string

Pass as cursor for the next page, with the same groupBy. A cursor issued for one grouping is refused by another rather than re-interpreted against a key it does not name. Absent on the last page.