Amberflo · JSON Structure

Metering Meter Definition Request Structure

Request body for creating a meter definition

Type: object Properties: 4 Required: 3
Usage-Based BillingMeteringFinOpsAI Cost ManagementBillingMonetization

MeterDefinitionRequest is a JSON Structure definition published by Amberflo, describing 4 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

meterApiName displayName type dimensions

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amberflo/refs/heads/main/json-structure/metering-meter-definition-request-structure.json",
  "name": "MeterDefinitionRequest",
  "description": "Request body for creating a meter definition",
  "type": "object",
  "properties": {
    "meterApiName": {
      "type": "string",
      "description": "Unique API name for the meter",
      "example": "api-calls"
    },
    "displayName": {
      "type": "string",
      "description": "Human-readable display name",
      "example": "API Calls"
    },
    "type": {
      "type": "string",
      "description": "Aggregation type for the meter",
      "enum": [
        "SUM_OF_ALL_USAGE",
        "MAX_IN_PERIOD",
        "UNIQUE_CUSTOMERS_COUNT"
      ],
      "example": "SUM_OF_ALL_USAGE"
    },
    "dimensions": {
      "type": "array",
      "description": "Dimension names for this meter",
      "items": {
        "type": "string"
      }
    }
  },
  "required": [
    "meterApiName",
    "displayName",
    "type"
  ]
}