Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Get a meter

Gets a meter.

This method is not served on the public API. api.sylphx.com does not route this call: its backend is not deployed behind the public API, or does not implement the call. This page documents the contract. It is kept out of the sidebar and of search engines.

Gets a meter.

Not available yet. Sylphx Billing is declared in the registry but no backend serves it: every call answers 501 with the problem code UNIMPLEMENTED.

  • Path GET https://api.sylphx.com/v1/meters/meter
  • Scope billing:read
  • Effect read — nothing is written.
  • Collection meters
  • Publishable key callable

#Request

FieldTypeWhat it is
namestringThe name of the meter to get. Required.

#Response

FieldTypeWhat it is
namestringmeters/{meter}, where {meter} is the meter id {service}.{quantity}, for example meters/hosting.vcpu_seconds.
uidstringmtr_<cell><ulid>. Output only.
metaResourceMetaResource metadata. Output only.
servicestringThe service that emits the meter; the meter id's prefix. Output only.
current_versionint32The version new usage is measured under. Output only.
versionsMeterVersion[]Every version, oldest first. Output only.

#ResourceMeta

FieldTypeWhat it is
generationint64Increases by one on every change to spec. Output only.
etagstringStrong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as If-Match or etag to make Update and Delete conditional; a mismatch fails with ABORTED / 409 ETAG_MISMATCH. Output only.
create_timetimestampWhen the Resource was created. Output only.
update_timetimestampWhen the Resource last changed. Output only.
delete_timetimestampSet while the Resource is being deleted. Output only.
labelsmap<string, string>Caller-writable, indexed labels (AIP-122 label rules).
annotationsmap<string, string>Caller-writable, unindexed annotations.
display_namestringCaller-writable human-readable name.
creatorstringThe principal that created the Resource. Output only.

#MeterVersion

FieldTypeWhat it is
versionint32The version number, from 1. Output only.
unitstringThe base unit, for example s, B, or tokens. Output only.
aggregationMeterAggregationHow quantities combine over a period. Output only. One of sum, max, last, unique_count.
dimensionsMeterDimension[]The dimensions a usage event may carry; at most 8. Output only.
hard_spendboolSpend is bounded by budget leases. Output only.
value_scaleint64A quantity is an integer count of 1/value_scale base units; 1 for integral units. Output only.
effective_timetimestampWhen usage starts being measured under this version. Output only.

#MeterDimension

FieldTypeWhat it is
keystringThe dimension key, for example class. Output only.
valuesstring[]The allowed values; empty means a bounded free-form string. Output only.
requiredboolEvery event must carry it. Output only.

#Errors

Every error arrives in the body Errors describes.

#Examples

curl "https://api.sylphx.com/v1/meters/meter" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"