{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"ADMLayerInfo",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v4 .. ADM Layer Info. To log information about the layers within ADM Download",
	"properties":{
    "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"
    },
  	"layer_type": {
    		"type": "string",
    		"enum": [
    			"POI", 
    			"STREET", 
    			"ADMIN", 
    			"KNOWLEDGE",
          "PEIZHI",
    			"MAP", 
    			"JUNCTION_VIEW", 
    			"LANDMARK"
    		],
    		"description": "Type of layer"
  	},
    "update_type": {
        "type": "string",
        "enum": [
          "FULL", 
          "INCREMENTAL",
          "NO_UPDATE", 
          "UPDATE_ERROR",
          "NOT_SUPPORTED"
        ],
        "description": "Type of update available"
    },
    "data_size":{
        "type": "integer",
        "description": "Download size for the layer"
    },
    "time_cost":{
        "type": "integer",
        "description":"Time taken for the layer download to complete (in milliseconds)"
    },
    "steps": {
        "type": "array",
        "items":{
            "$ref": "/resources/schema/analytics/client/v4/ADMLayerStepInfo.json"
        },
        "description": "An array of steps which are part of this layer download"
    }
	},
	"required":[
      "status",
      "layer_type",
  	  "update_type",
      "data_size",
      "time_cost",
      "steps"
	]
}