{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/red-hat-openshift/json-schema/red-hat-openshift-cluster-log-notification-list-schema.json",
  "title": "ClusterLogNotificationList",
  "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/ClusterLogNotificationList",
  "allOf": [
    {
      "$ref": "#/$defs/List"
    },
    {
      "properties": {
        "items": {
          "items": {
            "$ref": "#/$defs/ClusterLogNotification"
          },
          "type": "array"
        }
      },
      "type": "object"
    }
  ],
  "$defs": {
    "ClusterLogNotification": {
      "allOf": [
        {
          "$ref": "#/$defs/ObjectReference"
        },
        {
          "properties": {
            "completed_actions": {
              "description": "Per-action completion records for this log. Empty (or omitted)\nuntil at least one trigger action has completed successfully.\n",
              "items": {
                "$ref": "#/$defs/CompletedAction"
              },
              "type": "array"
            },
            "notification_uuid": {
              "description": "UUID assigned when the log matches a notification trigger and is\nqueued. Null if the log has never been selected for notification.\n",
              "type": [
                "string",
                "null"
              ]
            },
            "notified_at": {
              "description": "Timestamp when the async trigger job finished processing this\nlog. Null while still pending (even if notification_uuid is set)\nor if never notified. Per-action detail is in completed_actions.\n",
              "format": "date-time",
              "type": [
                "string",
                "null"
              ]
            }
          },
          "type": "object"
        }
      ]
    },
    "CompletedAction": {
      "properties": {
        "completed_at": {
          "description": "When this action finished successfully.",
          "format": "date-time",
          "type": "string"
        },
        "hash": {
          "description": "Opaque SHA-256 digest of the trigger action identity (Action.Hash).\nDoes not contain raw webhook URLs, tokens, or other secrets.\n",
          "type": "string"
        },
        "status": {
          "description": "Completion status. Currently always \"completed\"; reserved for\nfuture states (e.g. failed / skipped).\n",
          "type": "string"
        },
        "type": {
          "description": "Trigger action type that completed.",
          "enum": [
            "email",
            "webhook",
            "support_case"
          ],
          "type": "string"
        }
      },
      "required": [
        "hash",
        "status",
        "completed_at"
      ],
      "type": "object"
    },
    "List": {
      "properties": {
        "kind": {
          "type": "string"
        },
        "page": {
          "format": "int32",
          "type": "integer"
        },
        "size": {
          "format": "int32",
          "type": "integer"
        },
        "total": {
          "format": "int32",
          "type": "integer"
        }
      },
      "required": [
        "items",
        "kind",
        "page",
        "size",
        "total"
      ],
      "type": "object"
    },
    "ObjectReference": {
      "properties": {
        "href": {
          "type": "string"
        },
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}