{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"ADMFetchUpdate",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v4 .. ADM Fetch Update",
	"properties":{
    "log_context": {
      "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
      "description": "Required Log Context Reference"
    },
    "event_name": {
      "type": "string",
      "enum": [
        "ADM_FETCH_UPDATE"
      ]
    },
    "schema_definition": {
      "type": "string",
      "enum": [
        "ADMFetchUpdate"
      ]
    },
    "device_id":{
        "type": "string",
        "description": "Unique id of the device from which request is sent for update"
    },
    "area_type": {
      "$ref": "/resources/schema/analytics/client/v4/type/ADMAreaType.json",
      "description": "Type of area to be updated"
    },
    "token": {
        "type": "string",
        "description": "Callback token"
    },
    "retry_count": {
        "type": "integer",
        "description": "Number of retries done with callback token before update is ready. The default value is 0"
    },
    "time_cost":{
        "type": "integer",
        "description": "Time taken to get ADM response from ADM cloud(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"
    },
    "is_resumed": {
      "type": "boolean",
      "description": "To log if update is resumed from a previous failed update. The default value is False."
    }
	},
	"required":[
    "log_context",
    "event_name",
    "schema_definition",
    "device_id",
    "area_type",
    "retry_count",
    "time_cost",
    "status",
    "is_resumed"
	]
}