{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "FNOLAccidentDetected",
    "type": "object",
    "additionalProperties": true,
    "description": "TAnalytics-v4 .. An event triggered at FNOL with accident details",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": ["FNOL_ACCIDENT_DETECTED"]
        },
        "schema_definition": {
            "type": "string",
            "enum": ["FNOLAccidentDetected"]
        },
        "fnol_data_version": {
            "type": "string",
            "description": "The name of the event being logged by an internal application"
        },
        "accident_report_id": {
            "type": "string",
            "description": "String of UUID"
        },
        "status": {
            "$ref": "/resources/schema/analytics/client/v4/type/FNOLStatusType.json",
            "description": "The current status of the accident"
        },
        "location_label": {
            "type": "string",
            "description": "The address/street on which accident occurred"
        },
        "accident_timestamp": {
            "type": "integer",
            "description": "The UTC timestamp in milliseconds when accident happened"
        },
        "novo_policy_id": {
            "type": "string",
            "description": "The novo policy id"
        },
        "probe_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/item/ProbeListItem.json"
            },
            "description": "Required list of latitude and longitude at periodic intervals",
            "minItems": 1,
            "maxItems": 500
        },
        "gyroscope_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/GyroscopeItem.json"
            },
            "description": "Required list of rotation status from gyroscope at periodic intervals"
        },
        "linear_acceleration_list": {
            "type": "array",
            "items": {
                "$ref": "/resources/schema/analytics/client/v4/type/LinearAccelerationItem.json"
            },
            "description": "Required List of acceleration force value from sensor at periodic intervals"
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "fnol_data_version",
        "accident_report_id",
        "status",
        "accident_timestamp"
    ]
}