{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"CommuteAlertSetup",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. Commute Alert Setup object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["COMMUTE_ALERT_SETUP"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["CommuteAlertSetup"]
		},
		"action":{
			"$ref":"/resources/schema/analytics/client/v2/ClickActionType.json",
			"description":"Required .. Log click when user clicks on the Traffic alert option in profile. Log save when user clicks on Save Alerts. Log Cancel when user exits without making any changes to alerts."
		},
		"home_to_work":{
			"$ref":"/resources/schema/analytics/client/v2/SettingType.json",
			"description":"Required .. Whether Home -> Work alert is on or off."
		},
		"home_to_work_alert":{
			"type":"string",
			"description":"Required .. Time and Frequency of Home -> Work alert."
		},
		"work_to_home":{
			"$ref":"/resources/schema/analytics/client/v2/SettingType.json",
			"description":"Required .. Whether Work -> Home alert is on or off."
		},
		"work_to_home_alert":{
			"type":"string",
			"description":"Required .. Time and Frequency of Work -> Home alert."
		},
		"status":{
			"$ref":"/resources/schema/analytics/client/v2/StatusType.json",
			"description":"If Action was Save, then whether successfully saved or not."
		}
		
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"action",
		"home_to_work",
		"home_to_work_alert",
		"work_to_home",
		"work_to_home_alert"
	]
}