{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "SharpTurn",
    "type": "object",
    "additionalProperties": false,
    "description": "SharpTurn",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "SHARP_TURN"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "SharpTurn"
            ]
        },
        "level": {
            "type": "string",
            "enum": [
                "LOW",
                "MEDIUM",
                "HIGH"
            ],
            "description": "hard brake level"
        },
        "duration": {
            "type": "integer",
            "description": "sharp turn duration in ms"
        },
        "turn_start_heading": {
            "$ref": "/resources/schema/analytics/client/v4/type/HeadingItem.json",
            "description": "heading of vehicle when turn starts"
        },
        "turn_end_heading": {
            "$ref": "/resources/schema/analytics/client/v4/type/HeadingItem.json",
            "description": "heading of vehicle when turn ends"
        },
        "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"
        },
        "accelerometer_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/AccelerometerItem.json"
            },
            "description": "list of acceleration force value from sensor 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"
        },
        "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"
        },
        "ambient_magnetic_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/AmbientMagneticItem.json"
            },
            "description": "List of ambient magnetic field value from device sensor 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 value from device at periodic intervals when this event happens"
        },
        "road_type": {
            "$ref": "/resources/schema/analytics/client/v4/type/RoadType.json",
            "description": "road type, e.g highway, local"
        },
        "distance": {
            "type": "number",
            "description": "Trip distance in meters when sharp turn event happens"
        },
        "heading_delta_change": {
            "type": "integer",
            "description": "Vehicle heading changes when sharp turn event happens in degree value"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "level"
    ]
}