{
	"$schema": "http://json-schema.org/draft-04/schema#",
	"title": "ATWRoadsense",
	"type": "object",
	"additionalProperties": false,
	"description": "Analytics-v2 .. ATW Roadsense event",
	"properties": {
		"log_context": {
			"$ref": "/resources/schema/analytics/client/v2/LogContext.json",
			"description": "Required Log Context Reference"
		},
		"event_name": {
			"type": "string",
			"enum": ["ATW_ROADSENSE"]
		},
		"schema_definition": {
			"type": "string",
			"enum": ["ATWRoadsense"]
		},
		"type": {
			"$ref": "/resources/schema/analytics/client/v2/ATWCategories.json",
			"description": "type: Continuous events (weather), discrete events (road anomaly) 1. Weather: Rain, Snow, Reduced Visibility 2. Road: Slippery Road, Road with Debris, Potholes, Blocked Road, Sudden Traffic Disruption"
		},
		"name": {
			"$ref": "/resources/schema/analytics/client/v2/ATWSubCategories.json",
			"description": "name of ATW event"
		},
		"event_id": {
			"type": "string",
			"description": "Globally unique ID of event"
		},
		"severity": {
			"type": "integer",
			"description": "An indicator to illustrate the severe degree. 1-MILD,2-MODERATE,3-SEVERE"
		},
		"confidence": {
			"type": "number",
			"description": "An indicator to show the statistical confidence level of event detection. 0-100"
		},
		"priority": {
			"type": "number",
			"description": "An indicator to represent the priority level to notify the customer. This could and should be deducted from the other data (Type, Name, Severity, Spatial & Temporal Scope)."
		},
		"start_time": {
			"type": "integer",
			"description": "UTC timestamp in milliseconds for event start"
		},
		"end_time": {
			"type": "integer",
			"description": "UTC timestamp in milliseconds for event end"
		},
		"last_updated": {
			"type": "integer",
			"description": "UTC timestamp in milliseconds of Time of the last event update (event generation time, initially)"
		},
		"temperature": {
			"type": "number",
			"description": "weather details: tempearature"
		},
		"pressure": {
			"type": "number",
			"description": "weather details: pressure"
		},
		"wind_speed": {
			"type": "number",
			"description": "weather details: wind_speed"
		},
		"visibility": {
			"type": "number",
			"description": "weather details: visibility"
		},
		"humidity": {
			"type": "number",
			"description": "weather details: humidity"
		},
		"precipitation": {
			"type": "number",
			"description": "weather details: precipitation"
		},
		"type_of_object": {
			"type": "string",
			"description": "Road anomaly details: Type of object on road"
		},
		"cause": {
			"type": "string",
			"description": "Road anomaly details: description/cause of anomaly"
		},
		"affected_area": {
			"type": "array",
			"items": {
				"$ref": "/resources/schema/analytics/client/v2/LatLonPair.json"
			},
			"description": "The geographic coverage of the detected event."
		},
		"distribution_area": {
			"type": "array",
			"items": {
				"$ref": "/resources/schema/analytics/client/v2/LatLonPair.json"
			},
			"description": "The geographic coverage of the detected event."
		},
		"heading": {
			"type": "number",
			"description": "The direction in which the device is traveling with respect to north, degree value (0-360)"
		},
		"description": {
			"type": "string",
			"description": "String description of the event"
		},
		"way_id_list": {
			"type": "array",
			"items": {
				"type": "number"
			},
			"description": "It represents the list of way ids of the roads which have been matched to the coordinates received from GM"
		}
	},
	"required": [
		"log_context",
		"event_name",
		"schema_definition",
		"name",
		"type",
		"event_id",
		"last_updated",
		"start_time",
		"end_time",
		"affected_area"
	]
}