{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/c1k-me/json-schema/c1k-me-analytics-schema.json",
  "title": "Analytics",
  "description": "Missing data is null with a reason and never a manufactured zero.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/c1k-me-openapi.yml#/components/schemas/Analytics",
  "type": "object",
  "properties": {
    "interval": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string"
        },
        "to": {
          "type": "string"
        }
      }
    },
    "retained_interval": {
      "type": "object"
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    },
    "collection": {
      "type": "string"
    },
    "coverage": {
      "type": "object"
    },
    "series": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "state": {
            "type": "string",
            "enum": [
              "measured",
              "not_retained",
              "collection_disabled",
              "unavailable"
            ]
          },
          "total": {
            "type": [
              "integer",
              "null"
            ]
          },
          "bot": {
            "type": [
              "integer",
              "null"
            ]
          },
          "unclassified": {
            "type": [
              "integer",
              "null"
            ]
          },
          "unique_estimate": {
            "type": [
              "integer",
              "null"
            ]
          }
        }
      }
    },
    "totals": {
      "type": "object",
      "properties": {
        "total": {
          "type": "integer"
        },
        "bot": {
          "type": "integer"
        },
        "unclassified": {
          "type": "integer"
        }
      }
    },
    "unique_method": {
      "type": "object"
    },
    "unique_estimate": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "integer",
            "null"
          ]
        },
        "label": {
          "type": "string"
        }
      }
    },
    "dimensions": {
      "type": "object"
    },
    "lifetime": {
      "type": "object"
    },
    "classification": {
      "type": "object"
    }
  }
}