{
	"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/latest/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
	"self": {
		"vendor": "com.iqrftech.self-desc",
		"name": "iqmeshNetwork_MaintenanceFrcResponseTime-response",
		"format": "jsonschema",
		"version": "1-0-0"
	},
	"title": "IQMESH Network - Maintenance: FRC Response Time",
	"type": "object",
	"required": [
		"mType",
		"data"
	],
	"additionalProperties": false,
	"properties": {
		"mType": {
			"$id": "#/properties/mType",
			"title": "Message type",
			"description": "IQMESH Network management - Maintenance - FRC Response Time response.",
			"type": "string",
			"enum": ["iqmeshNetwork_MaintenanceFrcResponseTime"]
		},
		"data": {
			"$id": "#/properties/data",
			"title": "Message data",
			"description": "Message metadata and body.",
			"type": "object",
			"required": [
				"msgId",
				"status"
			],
			"additionalProperties": false,
			"properties": {
				"msgId": {
					"$id": "#/properties/data/properties/msgId",
					"title": "Message ID",
					"description": "Message ID used for pairing requests and responses.",
					"type": "string"
				},
				"rsp": {
					"$id": "#/properties/data/properties/rsp",
					"title": "Response object",
					"description": "Response object.",
					"type": "object",
					"required": [
						"inaccessibleNodes",
						"unhandledNodes",
						"nodes",
						"currentResponseTime",
						"recommendedResponseTime"
					],
					"additionalProperties": false,
					"properties": {
						"inaccessibleNodes": {
							"$id": "#/properties/data/properties/rsp/properties/inaccessibleNodes",
							"title": "Inaccessible nodes",
							"description": "Number of nodes that did not respond to FRC response time.",
							"type": "integer",
							"minimum": 0,
							"maximum": 239
						},
						"unhandledNodes": {
							"$id": "#/properties/data/properties/rsp/properties/unhandledNodes",
							"title": "Unhandled nodes",
							"description": "Number of nodes that did not handle the FRC response time event.",
							"type": "integer",
							"minimum": 0,
							"maximum": 239
						},
						"nodes": {
							"$id": "#/properties/data/properties/rsp/properties/nodes",
							"title": "Nodes",
							"description": "FRC response time node devices results.",
							"type": "array",
							"additionalItems": false,
							"maxItems": 239,
							"items": {
								"$id": "#/properties/data/properties/rsp/properties/nodes/items",
								"title": "Node result",
								"description": "Object containing FRC response time results for a single node.",
								"type": "object",
								"required": [
									"deviceAddr",
									"responded"
								],
								"additionalProperties": false,
								"properties": {
									"deviceAddr": {
										"$id": "#/properties/data/properties/rsp/properties/nodes/items/properties/deviceAddr",
										"title": "Device address",
										"description": "Address of device in the network.",
										"type": "integer",
										"minimum": 1,
										"maximum": 239
									},
									"responded": {
										"$id": "#/properties/data/properties/rsp/properties/nodes/items/properties/responded",
										"title": "Node responded",
										"description": "Indicates whether node device responded to the FRC request.",
										"type": "boolean"
									},
									"handled": {
										"$id": "#/properties/data/properties/rsp/properties/nodes/items/properties/handled",
										"title": "Event handled",
										"description": "Indicates whether node device handled FRC response time event.",
										"type": "boolean"
									},
									"responseTime": {
										"$id": "#/properties/data/properties/rsp/properties/nodes/items/properties/responseTime",
										"title": "Response time",
										"description": "Node device response time.",
										"type": "integer",
										"enum": [
											40,
											360,
											680,
											1320,
											2600,
											5160,
											10280,
											20620
										]
									}
								}
							}
						},
						"currentResponseTime": {
							"$id": "#/properties/data/properties/rsp/properties/currentResponseTime",
							"title": "Current response time",
							"description": "FRC response time currently set at [C].",
							"type": "integer",
							"enum": [
								40,
								360,
								680,
								1320,
								2600,
								5160,
								10280,
								20620
							]
						},
						"recommendedResponseTime": {
							"$id": "#/properties/data/properties/rsp/properties/recommendedResponseTime",
							"title": "Recommended response time",
							"description": "FRC response time that is recommended to set at [C].",
							"type": "integer",
							"enum": [
								40,
								360,
								680,
								1320,
								2600,
								5160,
								10280,
								20620
							]
						}
					}
				},
				"raw": {
					"type": "array",
					"description": "Returns array of objects req-cnf-rsp, see its description.",
					"items": {
						"type": "object",
						"required": [
							"request",
							"requestTs",
							"confirmation",
							"confirmationTs",
							"response",
							"responseTs"
						],
						"additionalProperties": false,
						"properties": {
							"request": {
								"type": "string",
								"description": "Binary buffer with DPA request."
							},
							"requestTs": {
								"type": "string",
								"description": "YYYY-MM-DDTHH:MM:SS.SSS±HH:MM"
							},
							"confirmation": {
								"type": "string",
								"description": "Binary buffer with DPA confirmation."
							},
							"confirmationTs": {
								"type": "string",
								"description": "YYYY-MM-DDTHH:MM:SS.SSS±HH:MM"
							},
							"response": {
								"type": "string",
								"description": "Binary buffer with DPA response."
							},
							"responseTs": {
								"type": "string",
								"description": "YYYY-MM-DDTHH:MM:SS.SSS±HH:MM"
							}
						}
					}
				},
				"insId": {
					"$id": "#/properties/data/properties/insId",
					"title": "Instance ID",
					"description": "Daemon insteance ID.",
					"type": "string"
				},
				"status": {
					"$id": "#/properties/data/properties/status",
					"title": "Status code",
					"description": "Status code.",
					"type": "integer"
				},
				"statusStr": {
					"$id": "#/properties/data/properties/statusStr",
					"title": "Status string",
					"description": "Verbose status string",
					"type": "string"
				}
			}
		}
	}
}
