{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "SafetyAlert",
    "type": "object",
    "additionalProperties": false,
    "description": "Description a safety alert event.",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "SAFETY_ALERT"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "SafetyAlert"
            ]
        },
        "alert_type": {
            "type": "string",
            "description": "Describe alert type."
        },
        "alert_level": {
            "type": "string",
            "description": "Describe alert severity levels.",
            "enum": [
                "LOW",
                "MEDIUM",
                "HIGH",
                "CRITICAL"
            ]
        },
        "alert_details": {
            "type": "string",
            "description": "Describe alert message or safety event object."
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "alert_type"
    ]
}