{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"ADMUpdateEnd",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v3 .. ADM Update End",
	"properties":{
    "log_context": {
        "$ref": "/resources/schema/analytics/client/v3/LogContext.json",
        "description": "Required Log Context Reference"
    },
    "event_name": {
        "type": "string",
        "enum": [
          "ADM_UPDATE_END"
        ]
    },
    "schema_definition": {
        "type": "string",
        "enum": [
          "ADMUpdateEnd"
        ]
    },
    "device_id":{
        "type": "string",
        "description": "Unique id of the device from which request is sent for update"

    },
    "area_type": {
      "$ref": "/resources/schema/analytics/client/v3/type/ADMAreaType.json",
      "description": "Type of area to be updated"
    },
    "token": {
        "type": "string",
        "description": "Callback token"
    },
    "time_cost": {
        "type": "integer",
        "description": "Total time taken for the update (in milliseconds)"

    },
    "status": {
        "type": "string",
        "enum": [
          "SUCCESSFUL",
          "CANCELLED",
          "FAILED"
        ],
        "description": "Status of API call"
    },
    "error_id": {
        "type": "string",
        "description": "Unique id that links to the error thrown"
    }
	},
	"required":[
      "log_context",
      "event_name",
      "schema_definition",
      "device_id",
      "area_type",
      "token",
      "time_cost",
      "status"
	]
}