Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Meters are the customer-specific counters of usage for the different Meter Types, and one Meter should be created for each customer, see Data Model https://infozone.atlassian.net/wiki/spaces/DAZ/pages/79921467.

Meters can be created, retrieved, updated, and deleted using the API, see API Documentation .

Examples

Below are a few examples of how this may look like.

Retrieving a list of meters:

GET /api/usage-metering/v1/meters

{}

Creating a meter:

POST /api/usage-metering/v1/meters

{
"domain": "string",
"externalRef": "string",
"meterTypeId": "string",
"userId": "string"
}

Deleting a meter:

DELETE /api/usage-metering/v1/meters{id}

{}

Retrieving one single meter:

GET /api/usage-metering/v1/meters{id}

{}

Updating a specific meter:

PATCH /api/usage-metering/v1/meters{id}

{
"resetAt": "string",
"value": 0
}