

{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"ContactRead",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. ContactRead object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["CONTACT_READ"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["ContactRead"]
		},
		"total_contacts":{
			"type": "number",
			"description": "Total unique contact names"
		},
		"US_contacts":{
			"type":"number",
			"description":"Contacts with at least 1 valid US number"
		},
		"multiple_US_contacts":{
			"type":"number",
			"description":"contacts with more than one valid US number"
		},
		"status":{
			"type":"string",
			"description":"whether reading contacts was SUCCESS or FAIL"
		},
		"caused_by":{
			"type":"string",
			"description":"If status=FAIL, reason for failure"
		}
	},
	"required":[
	 	"log_context",
	        "event_name",
        	"schema_definition",	
		"total_contacts",
		"US_contacts",
		"multiple_US_contacts",
		"status"
	]
}