{
  "type": "object",
  "properties": {
    "usageRecordId": {
      "type": "string"
    },
    "periodStart": {
      "type": "string",
      "format": "date-time"
    },
    "periodEnd": {
      "type": "string",
      "format": "date-time"
    },
    "metric": {
      "type": "string"
    },
    "quantity": {
      "type": "integer",
      "minimum": 0
    },
    "unit": {
      "type": "string"
    },
    "sourceReference": {
      "type": "string"
    }
  },
  "required": [
    "usageRecordId",
    "periodStart",
    "periodEnd",
    "metric",
    "quantity",
    "unit",
    "sourceReference"
  ],
  "additionalProperties": false,
  "examples": [
    {
      "usageRecordId": "usage-test-001",
      "periodStart": "2026-10-01T00:00:00Z",
      "periodEnd": "2026-11-01T00:00:00Z",
      "metric": "acceptedObjects",
      "quantity": 1,
      "unit": "object",
      "sourceReference": "/v1/archives/arc-test-001"
    }
  ]
}
