{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "DriverPassengerClassification",
    "type": "object",
    "additionalProperties": false,
    "description": "To log driver/passenger classification",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "DRIVER_PASSENGER_CLASSIFICATION"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "DriverPassengerClassification"
            ]
        },
        "classification_result": {
            "type": "string",
            "description": "User type",
            "enum": [
                "DRIVER",
                "PASSENGER"
            ]
        },
        "probe_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/ProbeListItemType.json"
            },
            "description": "List of latitude and longitude at periodic intervals when this event happens"
        },
        "gyroscope_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/GyroscopeItem.json"
            },
            "description": "List of rotation status from gyroscope at periodic intervals when this event happens"
        },
        "rotation_vector_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/RotationVectorItem.json"
            },
            "description": "Required list of rotation vector values from device at periodic intervals when this event happens"
        },
        "rotation_matrix_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/RotationMatrixItem.json"
            },
            "description": "Required list of rotation matrix values from device(where applicable) at periodic intervals when this event happens"
        },
        "confidence": {
            "type": "number",
            "description": "Confidence of the detection result"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "classification_result",
        "confidence"
    ]
}