{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-openshift/json-schema/red-hat-openshift-cluster-log-request-schema.json",
  "title": "ClusterLogRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/red-hat-openshift-ocm-service-logs-openapi.yml#/components/schemas/ClusterLogRequest",
  "allOf": [
    {
      "$ref": "#/$defs/ClusterLog"
    },
    {
      "required": [
        "severity",
        "service_name",
        "summary"
      ],
      "type": "object"
    }
  ],
  "$defs": {
    "ClusterLog": {
      "allOf": [
        {
          "$ref": "#/$defs/ObjectReference"
        },
        {
          "properties": {
            "cluster_id": {
              "description": "Internal Id of a cluster, required unless cluster_uuid is provided",
              "type": "string"
            },
            "cluster_uuid": {
              "description": "External id of a cluster, required unless cluster_id is provided",
              "type": "string"
            },
            "created_at": {
              "format": "date-time",
              "type": "string"
            },
            "created_by": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "doc_references": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "email": {
              "type": "string"
            },
            "event_stream_id": {
              "type": "string"
            },
            "first_name": {
              "type": "string"
            },
            "internal_only": {
              "default": false,
              "type": "boolean"
            },
            "last_name": {
              "type": "string"
            },
            "log_type": {
              "enum": [
                "clustercreate-high-level",
                "clustercreate-details",
                "clusterremove-high-level",
                "clusterremove-details",
                "cluster-state-updates",
                "Cluster Subscription",
                "Cluster Lifecycle",
                "Cluster Updates",
                "Cluster Ownership",
                "Cluster Access",
                "Cluster Scaling",
                "Capacity Management",
                "Cluster Configuration",
                "Cluster Security",
                "Cluster Add-ons",
                "Customer Support",
                "Cluster Networking",
                "General Notification",
                "cluster-transfer-recipient"
              ],
              "type": "string"
            },
            "service_name": {
              "type": "string"
            },
            "severity": {
              "enum": [
                "Debug",
                "Low",
                "Moderate",
                "Important",
                "Critical"
              ],
              "type": "string"
            },
            "subscription_id": {
              "type": "string"
            },
            "summary": {
              "type": "string"
            },
            "timestamp": {
              "format": "date-time",
              "type": "string"
            },
            "username": {
              "type": "string"
            }
          },
          "type": "object"
        }
      ]
    },
    "ObjectReference": {
      "properties": {
        "href": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}