Metering Cloud
Ingest Meters

Ingest meter records

1min
POST
https://app.amberflo.io/ingest

Use this endpoint to ingest meter records.

It accepts an array of records. For instance:

[{
     "customerId": "customer-123",
     "meterApiName": "ComputeHours",
     "meterValue": 5,
     "meterTimeInMillis": 1619445706909,
     "dimensions": {
        "region": "us-west-2",
        "az": "az1"
     }
}, {
    ...
}]

We also support the NDJSON format, where each record is separated by a newline. For instance:

{ "customerId": "customer-123", "meterApiName": "ComputeHours", "meterValue": 5, "meterTimeInMillis": 1619445706909 }
{ "customerId": "customer-321", "meterApiName": "ComputeHours", "meterValue": 4, "meterTimeInMillis": 1619445712341 }
{ "customerId": "customer-123", "meterApiName": "ComputeHours", "meterValue": 1, "meterTimeInMillis": 1619445783456 }
Authentication
x-api-key
Query Parameters
ingestSchemaId
Body Parameters
body
customerId
*
meterApiName
meterValue
values
meterTimeInMillis
*
dimensions
uniqueId
Responses
200
Successful response
Example
1 records were ingested