Guides
...
Usage Metering
Backfill Meters and Customers

Java sample to backfill meters from Postgres

2min

This sample illustrates how to backfill meters from historic data stored in Postgres using the JAVA SDK.

The sample performs the following tasks:

  1. Read historical data from a Postgres table of tasks. The sample uses tasks sent and accepted by customers as meters.
  2. For each row, ingest the task sent or accepted meters into Amberflo depending on the task status. The

Maven dependencies (check for latest versions):

XML


Java code:

Java