{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "DriverPassengerIntermediateClassification",
    "type": "object",
    "additionalProperties": false,
    "description": "The intermediate result during training of driver/passenger classification model",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "DRIVER_PASSENGER_INTERMEDIATE_CLASSIFICATION"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "DriverPassengerIntermediateClassification"
            ]
        },
        "classification_result": {
            "type": "string",
            "description": "The classification of sensor pattern during instances like phone rotation and others",
            "enum": [
                "BEFORE_EXITING",
                "LEFT_EXITING",
                "RIGHT_EXITING",
                "AFTER_EXITING"
            ]
        },
        "model_name": {
            "type": "string",
            "description": "The model name and date version for tensor flow"
        },
        "output": {
            "type": "string",
            "description": "The formatted output data for current classification detection result"
        },
        "start_time": {
            "type": "integer",
            "description": "UTC timestamp in milliseconds for sensor data start timestamp"
        },
        "end_time": {
            "type": "integer",
            "description": "UTC timestamp in milliseconds for sensor data end timestamp"
        },
        "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"
        },
        "linear_acceleration_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/LinearAccelerationItem.json"
            },
            "description": "List of acceleration force value from sensor 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"
        },
        "gyroscope_earth_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"
        },
        "gravity_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/GravityItem.json"
            },
            "description": "list of force of gravity from sensor at periodic intervals when this event happens"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "classification_result",
        "model_name",
        "output"
    ]
}