{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"AppDeactivated",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v3 .. App Deactivated object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v3/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["APP_DEACTIVATED"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["AppDeactivated"]
		},
		"trigger":{
			"$ref":"/resources/schema/analytics/client/v3/AppDeactivatedTriggerType.json",
			"description":"Action that caused the application to be deactivated. This could be a user action or external action like a phone call that causes the app to be sent to background"
		},
		"caused_by":{
			"type":"string",
			"description":"A short description of the action that caused the app to be deactivated"
		},
		"first_time": {
			"type":"string",
			"enum": ["YES", "NO", "NONE"],
			"description": "Marks the first time this combination of values for the properties event_label, event_environment and page_title is fired for a user"
		},
		"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."
		}
	},
	"required":[
		"log_context",
		"event_name",
		"schema_definition",
		"trigger",
		"caused_by"
	]
}