{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amigo/main/json-schema/amigo-usage-trend-point-schema.json",
  "title": "UsageTrendPoint",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amigo-billing-api-openapi.yml#/components/schemas/UsageTrendPoint",
  "properties": {
    "period_start": {
      "type": "string",
      "title": "Period Start",
      "description": "Period start date (ISO-8601)"
    },
    "period_end": {
      "type": "string",
      "title": "Period End",
      "description": "Period end date (ISO-8601)"
    },
    "meter_key": {
      "type": "string",
      "title": "Meter Key",
      "description": "Meter identifier"
    },
    "metering_source": {
      "type": "string",
      "enum": [
        "production",
        "simulation"
      ],
      "title": "Metering Source",
      "description": "Traffic class",
      "default": "production"
    },
    "value": {
      "type": "number",
      "title": "Value",
      "description": "Metered value for this period"
    },
    "unit": {
      "type": "string",
      "title": "Unit",
      "description": "Unit of measurement"
    }
  },
  "type": "object",
  "required": [
    "period_start",
    "period_end",
    "meter_key",
    "value",
    "unit"
  ]
}