Plan, usage, limits, allocations, trial and top-ups.
Scopes for this area: usage:read, usage:write and usage:admin.
22 operations
key
Method
Route
What it does
Level
Command
GET
/keys/usage
Requests and tokens per key per day.
read
rivier usage key usage
records
Method
Route
What it does
Level
Command
GET
/usage/records
Usage as records: one meter (a plan meter, or api_calls for the calls made with the project's keys) between two days, cut by one or two of day, connection (a platform's connected business), key and customer. A platform's calls and uses inside the businesses it brought are its own, marked with the connection.
read
rivier usage records list
requests
Method
Route
What it does
Level
Command
GET
/usage/requests
The log of calls made with the project's keys, newest first: operation, status, time taken, key, connection, idempotency key, the request id the answer carried (x-rivier-request-id) and the error's code; no bodies. Kept 30 days unless set otherwise. Filter by connection, key, status band or time; page back with before.
read
rivier usage requests list
plan
Method
Route
What it does
Level
Command
GET
/usage
Usage against the plan, by meter.
read
rivier usage plan report
GET
/usage/can
Whether a capability is allowed now, and why not.
read
rivier usage plan can
building
Method
Route
What it does
Level
Command
GET
/usage/building
The building allowance: one share of this month's model and build meters, the hosting counts against the plan, and the raw meters.
read
rivier usage building get
trial
Method
Route
What it does
Level
Command
GET
/usage/trial
Trial status.
read
rivier usage trial get
praecise
Method
Route
What it does
Level
Command
GET
/usage/praecise
What the project uses at the Praecise products in its current plan period: the projects at Praecise Cloud, Rivier's model calls for the person, Storage and Navigation, each in the product's own units and with a limit only where the product returns one. Needs a signed-in person (each product is asked in their name). A product that is not connected or does not answer says so.
read
rivier usage praecise get
allocation
Method
Route
What it does
Level
Command
GET
/usage/allocations
Allowances set for products, agents and channels.
read
rivier usage allocation list
PUT
/usage/allocations
Set an allowance: for a product, agent, interest or channel (a person sets these), or for a platform's connected business, key or customer (its server may, with a key).
admin
rivier usage allocation set
DELETE
/usage/allocations
Remove an allowance.
admin
rivier usage allocation remove
overage
Method
Route
What it does
Level
Command
PUT
/usage/overage
Allow a meter to run past its included amount.
admin
rivier usage overage set
topup
Method
Route
What it does
Level
Command
POST
/usage/topups
Add a top-up.
admin
rivier usage topup create
warning
Method
Route
What it does
Level
Command
PUT
/usage/warn
Set the warning threshold.
admin
rivier usage warning set
project
Method
Route
What it does
Level
Command
GET
/projects
The projects you own, by name. A key sees the one project it belongs to.
read
rivier usage project list
limit
Method
Route
What it does
Level
Command
GET
/usage/limits
Every allowance of the project this period: included, used, what is left, when it resets, and the project's choice at the limit.
read
rivier usage limit list
POST
/usage/limits/check
Whether a send or call of this size fits right now, without using anything. When it does not, the plain reason and the next step. Ask before a large send.
read
rivier usage limit check
GET
/usage/limits/{meter}
One allowance in full.
read
rivier usage limit get
PUT
/usage/limits/policy/{meter}
Set what happens at the limit for one allowance: stop, carry on and bill the overage, or ask a person; the warning levels; a ceiling on overage; a limit for this project alone.
admin
rivier usage limit set
limit approval
Method
Route
What it does
Level
Command
GET
/usage/limits/approvals
Requests waiting for a person to approve going past an allowance, and past decisions.
read
rivier usage limit approval list
POST
/usage/limits/approvals/{id}/decide
Approve or deny a request to go past an allowance. Approving lets that many more units through this period.
admin
rivier usage limit approval decide
limit draw
Method
Route
What it does
Level
Command
GET
/usage/limits/draws
Units that went through beyond the plan this period: billed as overage or approved by a person.