{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "DriverClassificationRequest",
    "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_CLASSIFICATION_REQUEST"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "DriverClassificationRequest"
            ]
        },
        "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_earth_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/GyroscopeItem.json"
            },
            "description": "List of rotation status from gyroscope in earth coordinate system 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"
        },
        "trigger": {
            "type": "string",
            "enum": ["TRIP_END", "GYROSCOPE"],
            "description": "The trigger for the classification request"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "probe_list",
        "gyroscope_earth_list",
        "trigger"
    ]
}