capabilities.work

Ingest and Query Usage

A 2-step recipe with Amberflo. We can help you get access.

Recipe · 2 steps

Ingest and Query Usage

Ingest a usage event and then read back aggregated usage.

  1. Ingest a single meter event for the customer against the meter.
  2. Query aggregated usage for the meter over the supplied window, summed and grouped by customer.
What you'll need to have ready
  • apiKey: Amberflo API key supplied in the X-API-KEY header.
  • meterApiName: The meter to ingest to and query.
  • customerId: Customer the event is attributed to and grouped by.
  • meterValue: The usage amount for the ingested event.
  • meterTimeInMillis: Event timestamp in Unix milliseconds.
  • uniqueId: Optional idempotency identifier for the event.
  • startTimeInSeconds: Usage query start time in Unix seconds.
  • endTimeInSeconds: Usage query end time in Unix seconds.
For your developer

Arazzo workflow amberflo:ingest-and-query-usage, 2 operations: ingestMeterEvents → queryUsage. Specs on APIs.io.