Skip to content
Telemetry
Usage billing

usage_meter_recorded event schema

An idempotent usage-meter record with quantity, unit, meter version, and billing period. Keep raw source payloads and customer content outside the analytical event.

Reviewed by the Telemetry product team on . Event grain, ownership, field types, privacy classification, example payload, and validation. Review standards and ownership

Question this contract answers

Which accounts are approaching a quota, and can metered usage be reconciled to the billing ledger?

Fields
10
Required
10
Contract evidence path

usage_meter_recorded: from owned boundary to trusted query

Treat usage_meter_recorded as a durable analytical contract: the owner emits one documented grain, a fixture proves the fields, and a reviewed query answers the stated question.

  1. 1

    Outcome becomes final

    Usage metering service emits only after the authoritative meter accepts the increment or absolute reading.

  2. 2

    Contract is bounded

    10 required fields preserve the declared grain: One accepted usage increment per idempotency key and meter.

  3. 3

    Fixture is verified

    Check types, UTC time, alternate outcomes, idempotency, and every pseudonymous or review-classified field.

  4. 4

    Question is answered

    Which accounts are approaching a quota, and can metered usage be reconciled to the billing ledger?

Grain

One accepted usage increment per idempotency key and meter.

Owner

Usage metering service

Emit when

After the authoritative meter accepts the increment or absolute reading.

Field contract

Typed fields with explicit privacy boundaries

Keep existing field names and types stable after production queries depend on them. Optional context should remain bounded, documented, and justified by a specific decision.

FieldTypeRequiredPrivacyMeaning
timestamp_utctimestampyesnon-sensitiveUTC time at the outcome boundary.
event_idstringyesnon-sensitiveStable unique identifier used for deduplication.
releasestringyesnon-sensitiveApplication or service version that emitted the event.
account_idstringyespseudonymousStable internal account identifier, never an email or name.
meter_namestringyesnon-sensitiveStable low-cardinality billable meter.
meter_versionstringyesnon-sensitiveVersion of the quantity and aggregation contract.
idempotency_keystringyespseudonymousStable key used to reject duplicate usage records.
quantitynumberyesnon-sensitiveAccepted quantity in the documented unit.
unitstringyesnon-sensitiveRequests, tokens, bytes, seats, or another fixed unit.
billing_periodstringyesnon-sensitiveNormalized billing period such as 2026-07.

Synthetic JSON event

{
  "timestamp_utc": "2026-07-29T10:25:18Z",
  "event_id": "evt_meter_01",
  "account_id": "acct_8f31",
  "release": "2026.07.3",
  "meter_name": "query_seconds",
  "meter_version": "v2",
  "idempotency_key": "meter_fa82",
  "quantity": 18.4,
  "unit": "seconds",
  "billing_period": "2026-07"
}

Privacy review

Review identifiers before ingestion

This example uses synthetic identifiers. Pseudonymous values can still be personal data, and review fields can expose business or provider context. Apply your own consent, retention, access, residency, and deletion requirements.

  • account_id: pseudonymous
  • idempotency_key: pseudonymous

Validation checklist

Prove the contract before building a dashboard

  • Send one known usage_meter_recorded fixture after the documented outcome boundary.
  • Verify all 10 required fields arrive with the documented types.
  • Retry the same event identifier and confirm the chosen deduplication behavior.
  • Send a controlled failure or alternate outcome when the workflow supports one.
  • Run the related SQL over a fixed window and reconcile the result to the fixture.

Common mistakes

Keep one row equal to one durable outcome

  • Emitting usage_meter_recorded before usage metering service knows the final outcome.
  • Mixing several grains in one table, which makes counts and rates ambiguous.
  • Replacing controlled categories with raw URLs, payloads, prompts, or error text.
  • Changing a field type in place after saved queries and dashboards depend on it.
  • Adding identifiers without a documented investigation, access, and retention need.

Use the contract

Query and operationalize the event

Related contracts

Send a fixture before production traffic

Create a free API key, send the synthetic event, and inspect the inferred table before connecting a live workflow.

Test this schema