Meters
A Meter is one billable quantity a service emits, for example `hosting.vcpu_seconds`.
A Meter is one billable quantity a service emits, for example hosting.vcpu_seconds. Meters are top-level and read-only; each has immutable versions, and a usage event names the version it was measured under.
Service Sylphx Billing · Resource type billing.sylphx.com/Meter · Name pattern meters/{meter} · Shape record
Fields
| Field | Type | What it is |
|---|---|---|
name | string | meters/{meter}, where {meter} is the meter id {service}.{quantity}, for example meters/hosting.vcpu_seconds. |
uid | string | mtr_<cell><ulid>. Output only. |
meta | ResourceMeta | Resource metadata. Output only. |
service | string | The service that emits the meter; the meter id's prefix. Output only. |
current_version | int32 | The version new usage is measured under. Output only. |
versions | MeterVersion[] | Every version, oldest first. Output only. |
Methods
Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.
| Method | Call | What it does |
|---|---|---|
GET | get | Gets a meter. |
GET | list | Lists meters. Anonymous-readable: the pricing page renders from it. |
get
Gets a meter.
GET https://api.sylphx.com/v1/meters/meter · scope billing:read · effect read · callable with a publishable key · Request, response and examples
list
Lists meters. Anonymous-readable: the pricing page renders from it.
GET https://api.sylphx.com/v1/meters · scope billing:read · effect read · callable with a publishable key · paginated · Request, response and examples