{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-umbrella/json-schema/cisco-umbrella-incidents-collection-schema.json",
  "title": "IncidentsCollection",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-umbrella-incidents-api-openapi.yml#/components/schemas/IncidentsCollection",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The internal CloudLock incident ID, which can be used to\ncall or update a specific incident."
    },
    "customer_key": {
      "type": "string",
      "description": "An empty field to be used as a system ID (a customer can set this or leave it empty)."
    },
    "incident_status": {
      "type": "string",
      "description": "The status of the incident. Possible values: NEW, RESOLVED, IN PROGRESS, DISMISSED."
    },
    "severity": {
      "type": "string",
      "description": "The severity of the incident. Possible values: INFO, WARNING, CRITICAL, ALERT."
    },
    "created_at": {
      "type": "string",
      "description": "The incident creation time, in UTC."
    },
    "updated_at": {
      "type": "string",
      "description": "The incident last upate time, in UTC."
    },
    "match_count": {
      "type": "integer",
      "description": "The total number of matches.\""
    },
    "entity": {
      "$ref": "#/$defs/Entity"
    },
    "policy": {
      "$ref": "#/$defs/Policy"
    },
    "matches": {
      "description": "The list of matches for the incident.",
      "type": "array",
      "items": {
        "$ref": "#/$defs/Match"
      }
    }
  },
  "$defs": {
    "Entity": {
      "type": "object",
      "description": "The information about the object relating to this incident.",
      "properties": {
        "direct_url": {
          "type": "string",
          "description": "The URL to the object."
        },
        "extra": {
          "type": "object",
          "description": "The additional information related to the incident.",
          "properties": {
            "origin_type_label": {
              "type": "string",
              "description": "This field gives additional info regarding the scanned object that triggered the policy violation."
            },
            "origin_type_label_plural": {
              "type": "string",
              "description": "Similar to the origin_type_label but for a plural label"
            }
          }
        },
        "id": {
          "type": "string",
          "description": "This is Cloudlock Internal Identifier for an entity."
        },
        "mime_type": {
          "type": "string",
          "description": "The mime type of the object/document (if any)"
        },
        "name": {
          "type": "string",
          "description": "The name of the underlying object represented by this entity."
        },
        "origin_id": {
          "type": "string",
          "description": "This is the identifier of the object in the vendor system."
        },
        "origin_type": {
          "type": "string",
          "description": "The object type (i.e. document, post, app, event)."
        },
        "owner_email": {
          "type": "string",
          "description": "Object owner's email address (e.g. user@cloudlock.com)."
        },
        "owner_name": {
          "type": "string",
          "description": "Object owner's name (i.e. John Q. User)."
        },
        "vendor": {
          "$ref": "#/$defs/Vendor"
        }
      }
    },
    "Match": {
      "type": "object",
      "description": "A Match represents an occurrence of a content pattern in an object (such as a file).\nThe content pattern is defined in a policy.",
      "properties": {
        "created_at": {
          "type": "string",
          "description": "The time when this match was detected. Time expressed as a timestamp in UTC."
        },
        "ctx_after": {
          "type": "string",
          "description": "The characters after the match."
        },
        "ctx_before": {
          "type": "string",
          "description": "The characters before the match."
        },
        "field_name": {
          "type": "string",
          "description": "The field or object for this match."
        },
        "text": {
          "type": "string",
          "description": "Provide string to identify object. Relevant for content detection criteria='Custom regex criteria' only."
        },
        "policy_criteria": {
          "type": "object",
          "description": "A description of the policy criteria.",
          "properties": {
            "id": {
              "type": "string"
            }
          }
        }
      }
    },
    "Policy": {
      "type": "object",
      "description": "The policy that triggered the incident.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The Cloudlock Internal Identifier for a policy."
        },
        "name": {
          "type": "string",
          "description": "The name of the policy. Possible values: SSN, PCI or any policy name."
        }
      }
    },
    "Vendor": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the vendor. For example: google."
        }
      }
    }
  }
}