Monthly usage for one metric
Querying
Monthly usage for one metric
GET
Monthly usage for one metric
Authorizations
LedgerUp API Key.
Path Parameters
LedgerUp metric identifier or three-letter currency code.
Pattern:
^(metric_[0-9a-f]{32}|[A-Za-z]{3})$Example:
"usd"
Query Parameters
Aggregation applied to corrected usage events. latest returns the quantity from the event with the latest occurred_at; ties use accepted_at then event ID. count returns the number of events.
Available options:
sum, min, max, avg, latest, count Example:
"sum"
Response
Metric or currency usage grouped by UTC calendar month.
Aggregation applied to corrected usage events. latest returns the quantity from the event with the latest occurred_at; ties use accepted_at then event ID. count returns the number of events.
Available options:
sum, min, max, avg, latest, count Example:
"sum"