{ "$schema": "http://json-schema.org/draft-04/schema", "title": "主配置", "type": "object", "required": [ "UITemplateVersion", "ServerListenPort", "MaxPeriodNoSeeDispenserIncomingHttpRequest", "DispenserInfoConfigs" ], "format": "table", "properties": { "UITemplateVersion": { "type": "string", "readOnly": true, "default": "1.0", "format": "hidden", "options": { "compact": true } }, "ServerListenPort": { "type": "integer", "title": "Http Server 侦听端口 ", "default": 7788, "maximum": 65535, "minimum": 1, "options": { "infoText": "FCC 将启动作为 TCP Server 端, 并于此端口侦听等待各油机的主动连入" } }, "MaxPeriodNoSeeDispenserIncomingHttpRequest": { "type": "integer", "title": "最长未见油机主动发送消息时间(按秒)", "default": 10, "maximum": 65535, "minimum": 1, "options": { "infoText": "各油机应按一定时间间隔主动通过HTTP请求发送消息至FCC, 如果FCC超过此配置值的时间后,仍未见某油机消息进入,则认为该油机离线" } }, "DispenserInfoConfigs": { "type": "array", "minItems": 1, "format": "tabs", "uniqueItems": true, "title": "所有油机信息", "items": { "type": "object", "title": "油机信息", "format": "grid", "headerTemplate": "{{ self.IpAddress }}", "required": [ "IpAddress", "Name" ], "properties": { "IpAddress": { "title": "油机 IP 地址", "default": "192.168.10.200", "type": "string", "pattern": "\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}", "options": { "infoText": "如此 IP 地址未主动连接至 FCC,将产生警报", "grid_columns": 3 } }, "Name": { "title": "油机名称", "default": "1#油机", "type": "string", "options": { "infoText": "给此 IP 地址所代表的加油机命名一个用户友好的名称, 警报正文消息中将包含此信息", "grid_columns": 3 } }, "Description": { "title": "描述", "default": "此油机上有油枪a,b,c,d", "type": "string", "options": { "infoText": "给此 IP 地址所代表的加油机添加用户友好的信息, 警报正文消息中将包含此信息", "grid_columns": 6 } } } } } } }