capabilities.work

Create Meter and Ingest Event

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

Recipe · 2 steps

Create Meter and Ingest Event

Define a meter then ingest a usage event for a customer.

  1. Create the meter definition so events can be aggregated against it.
  2. Ingest a single meter event for the customer against the new meter.
What you'll need to have ready
  • apiKey: Amberflo API key supplied in the X-API-KEY header.
  • meterApiName: Unique API name for the meter (e.g. "api-calls").
  • displayName: Human-readable display name for the meter.
  • type: Aggregation type (SUM_OF_ALL_USAGE, MAX_IN_PERIOD, UNIQUE_CUSTOMERS_COUNT).
  • customerId: Customer the usage event is attributed to.
  • meterValue: The usage amount for the ingested event.
  • meterTimeInMillis: Event timestamp in Unix milliseconds.
  • uniqueId: Optional idempotency identifier for the event.
For your developer

Arazzo workflow amberflo:create-meter-and-ingest-event, 2 operations: createMeterDefinition → ingestMeterEvents. Specs on APIs.io.