{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-monthly-metric-xo-schema.json",
  "title": "MonthlyMetricXO",
  "description": "Aggregated usage metrics for a single month",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-monthly-metrics-api-openapi.yml#/components/schemas/MonthlyMetricXO",
  "type": "object",
  "properties": {
    "requestCount": {
      "type": "integer",
      "description": "Total content requests for the month",
      "format": "int64"
    },
    "componentCount": {
      "type": "integer",
      "description": "Total components for the month",
      "format": "int64"
    },
    "peakStorage": {
      "type": "integer",
      "description": "Peak storage in bytes for the month",
      "format": "int64"
    },
    "responseSize": {
      "type": "integer",
      "description": "Total response bytes served for the month",
      "format": "int64"
    },
    "metricDate": {
      "type": "string",
      "description": "Date the metrics were recorded",
      "format": "date-time"
    },
    "percentageChangeRequest": {
      "description": "Percentage change from the previous month as a number, or the string \"N/A\" when it cannot be computed",
      "oneOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "string"
        }
      ]
    },
    "percentageChangeComponent": {
      "description": "Percentage change from the previous month as a number, or the string \"N/A\" when it cannot be computed",
      "oneOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "string"
        }
      ]
    },
    "percentageChangeEgress": {
      "description": "Percentage change from the previous month as a number, or the string \"N/A\" when it cannot be computed",
      "oneOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "string"
        }
      ]
    },
    "percentageChangeStorage": {
      "description": "Percentage change from the previous month as a number, or the string \"N/A\" when it cannot be computed",
      "oneOf": [
        {
          "type": "integer",
          "format": "int64"
        },
        {
          "type": "string"
        }
      ]
    }
  }
}