{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "TripStart",
    "type": "object",
    "additionalProperties": false,
    "description": "Trip Start Event Schema",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "TRIP_START"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "TripStart"
            ]
        },
        "trip_start_mode": {
            "type": "string",
            "enum": [
                "AUTO",
                "MANUAL"
            ],
            "description": "The SDK detection mode in which trip is generated"
        },
        "trip_model_version": {
            "type": "string",
            "description": "The version of trip scoring algorithm"
        },
        "odometer": {
            "type":  "number",
            "description": "Vehicle odometer in miles"
        },
        "trip_start_reason": {
            "type": "string",
            "enum": [
                "MOTION",
                "GEOFENCE",
                "NETWORK",
                "PERIPHERAL_STATUS"
            ],
            "description": "This indicates the reason for the trip start."
        },
        "reason_summary": {
            "type": "string",
            "description": "explanation that complements the detail reason"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition"
    ]
}