{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-api-gateway/json-schema/aws-api-gateway-usage-schema.json",
  "title": "Usage",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-api-gateway-operations-api-openapi.yml#/components/schemas/Usage",
  "type": "object",
  "properties": {
    "usagePlanId": {
      "type": "string",
      "description": "The plan Id associated with this usage data."
    },
    "startDate": {
      "type": "string",
      "description": "The starting date of the usage data."
    },
    "endDate": {
      "type": "string",
      "description": "The ending date of the usage data."
    },
    "items": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "array",
          "items": {
            "type": "integer"
          }
        }
      },
      "description": "The usage data, as daily logs of used and remaining quotas, over the specified time interval indexed over the API keys in a usage plan. For example, {..., \"values\" : { \"{api_key}\" : [ [0, 100], [10, 90], [100, 10]]}, where {api_key} stands for an API key value and the daily log entry is of the format [used quota, remaining quota]."
    },
    "position": {
      "type": "string",
      "description": "The current pagination position in the paged result set."
    }
  }
}