{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"HMIUserAction",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v3 .. HMI User Action object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v3/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["HMI_USER_ACTION"]
		},
		"schema_definition":{
			"type": "string",
			"enum": ["HMIUserAction"]
		},
		"event_type":{
			"type": "string",
			"enum": ["USER_EVENT", "SYSTEM_EVENT"],
			"description":"To identify if the event is triggered by the system or by a user interaction"
		},
		"event_descriptor":{
			"$ref":"/resources/schema/analytics/client/v3/EventDescriptorValues.json",
			"description":"The identify the trigger of user interaction"
		},
		"event_zone":{
			"$ref":"/resources/schema/analytics/client/v3/EventZoneValues.json",
			"description":"The identify the zone from which user interaction happened"
		},
		"user_interaction":{
			"$ref":"/resources/schema/analytics/client/v3/UserInteractionValues.json",
			"description":"The identify the user interaction type"
		},
		"event_module":{
			"$ref":"/resources/schema/analytics/client/v3/EventModuleValues.json",
			"description":"The identify the screen position where the event occured"
		},
		"event_position":{
			"type":"integer",
			"description":"The position of the user selection in a list. Default value is 0 for events where list is not relevant."
		},
		"event_label":{
			"type":"string",
			"description":"The label of the button or the icon interacted with"
		},
		"event_environment":{
			"$ref":"/resources/schema/analytics/client/v3/EventEnvironmentValues.json",
			"description":"To identify if event happened on the mobile app or when connected to Car Play or if the app is on a memory stick or directly on a head unit."
		},
		"page_title":{
			"type":"string",
			"description":"The identify the screen where the event occured. This is the URL for the screen/page"
		},
		"first_time":{
			"type":"string",
			"enum": ["YES", "NO", "NONE"],
			"description":"To identify if it is the first time this combination of property values is fired for a user"
		},
		"media_provider": {
			"$ref":"/resources/schema/analytics/client/v3/MediaProviderValues.json",
			"description": "This property is used to identify the media provider used when an event occurred. If this property doesn't apply for a product, NONE should be fired."
		},
		"tab_position": {
			"type":"integer",
			"description":"This property is used to identify what tab was active when an event happened. Value 0(zero) will be fired for all events that are not happening in a tab. 1 to n values will be fired in order to determine the tab"
		},
		"column_position": {
			"type":"integer",
			"description":"This property is used to identify on what column the event happened. Value 0(zero) will be fired for all events that are not happening in a column. 1 to n values will be fired in order to determine the column"
		},
		"row_position": {
			"type":"integer",
			"description":"This property is used to identify on what row the event happened. Value 0(zero) will be fired for all events that are not happening in a row. 1 to n values will be fired in order to determine the row"
		}
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"event_type",
		"event_zone",
		"event_module",
		"event_label"
	]
}