{
  "$schema" : "https://json-schema.org/draft/2020-12/schema",
  "type" : "object",
  "properties" : {
    "timestamp" : {
      "type" : "string",
      "format" : "date-time",
      "x-isAttributed" : false,
      "description" : "The timestamp when the event originally occurred"
    },
    "product" : {
      "type" : "string",
      "x-isAttributed" : false,
      "format" : "hostname",
      "description" : "The programmatic reference to the product that generated the alert"
    },
    "type" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "The product-specific alarm type that fired"
    },
    "severity" : {
      "type" : "string",
      "enum" : [ "Low", "Medium", "High", "Critical", "Unknown" ],
      "x-isAttributed" : false,
      "description" : "The normalized value of the severity of the alert"
    },
    "title" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "The user-visible title of the alert"
    },
    "description" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "The user-visible description of the alert"
    },
    "alert_id" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "An optional identifier of the alert generated by the product"
    },
    "user" : {
      "type" : "string",
      "x-isAttributed" : true,
      "description" : "Username, if available"
    },
    "asset" : {
      "type" : "string",
      "x-isAttributed" : true,
      "description" : "Asset name, if available"
    },
    "ocsf" : {
      "type" : "object",
      "x-isAttributed" : false,
      "description" : "OCSF data, if available"
    },
    "source_json" : {
      "type" : "object",
      "x-isAttributed" : false,
      "description" : "The data that was received or collected by our collector or endpoint agent, formatted as JSON"
    },
    "source_data" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "The unparsed, original log line as received from the collector"
    },
    "custom_data" : {
      "type" : "object",
      "x-isAttributed" : false,
      "description" : "JSON string produced by applying one or more user-defined custom parsers to the original data"
    },
    "entry_id" : {
      "type" : "string",
      "x-isAttributed" : false,
      "description" : "Unique Entry ID assigned to each document or log entry"
    },
    "r7_context" : {
      "type" : "object",
      "properties" : {
        "user" : {
          "type" : "object",
          "properties" : {
            "domain" : {
              "type" : "string",
              "x-isAttributed" : false,
              "format" : "hostname",
              "description" : "The domain of the user"
            },
            "name" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The name of the r7context resource"
            },
            "rrn" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The RRN (Rapid7 Resource Name) of the r7context resource",
              "pattern" : "rrn(_[^\\s:]+)?:[^\\s:]+:[^\\s:]*:[^\\s:]*(:[^\\s:]+)+"
            },
            "type" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The type of r7context field",
              "const" : "user"
            }
          },
          "required" : [ "name", "rrn", "type" ],
          "x-isAttributed" : true
        },
        "asset" : {
          "type" : "object",
          "properties" : {
            "name" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The name of the r7context resource"
            },
            "rrn" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The RRN (Rapid7 Resource Name) of the r7context resource",
              "pattern" : "rrn(_[^\\s:]+)?:[^\\s:]+:[^\\s:]*:[^\\s:]*(:[^\\s:]+)+"
            },
            "type" : {
              "type" : "string",
              "x-isAttributed" : false,
              "description" : "The type of r7context field",
              "const" : "asset"
            }
          },
          "required" : [ "name", "rrn", "type" ],
          "x-isAttributed" : true
        }
      },
      "x-isAttributed" : true,
      "description" : "R7_context includes attributed information related to the entry, with references to Rapid7-specific RRNs"
    }
  },
  "required" : [ "timestamp", "product", "type", "severity", "title" ],
  "description" : "Represents an alert that was fired by a third-party detection system"
}