{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cryptokeyhole/json-schema/cryptokeyhole-catalog-schema.json",
  "title": "Catalog",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/cryptokeyhole-openapi.json#/components/schemas/Catalog",
  "type": "object",
  "properties": {
    "asset": {
      "type": "string"
    },
    "metrics": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Metric"
      }
    }
  },
  "$defs": {
    "Metric": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "family": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "intervals": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "status": {
          "type": "string",
          "description": "held: planned but not published (see reason)."
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "historyStart": {
          "type": [
            "integer",
            "null"
          ],
          "description": "UTC seconds, the first period."
        },
        "historyEnd": {
          "type": [
            "integer",
            "null"
          ],
          "description": "UTC seconds, the end of the last period (not included)."
        }
      }
    }
  }
}