| 1 | { |
| 2 | "jsonSchema": { |
| 3 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 4 | "title": "Dnsmasq DHCP collector configuration.", |
| 5 | "type": "object", |
| 6 | "properties": { |
| 7 | "update_every": { |
| 8 | "title": "Update every", |
| 9 | "description": "Data collection interval, measured in seconds.", |
| 10 | "type": "integer", |
| 11 | "minimum": 1, |
| 12 | "default": 1 |
| 13 | }, |
| 14 | "leases_path": { |
| 15 | "title": "Leases file", |
| 16 | "description": "File path to the Dnsmasq DHCP server's lease database.", |
| 17 | "type": "string", |
| 18 | "default": "/var/lib/misc/dnsmasq.leases", |
| 19 | "pattern": "^$|^/" |
| 20 | }, |
| 21 | "conf_path": { |
| 22 | "title": "Config file", |
| 23 | "description": "File path for the Dnsmasq configuration. Used to find all configured DHCP ranges.", |
| 24 | "type": "string", |
| 25 | "default": "/etc/dnsmasq.conf", |
| 26 | "pattern": "^$|^/" |
| 27 | }, |
| 28 | "conf_dir": { |
| 29 | "title": "Config directory", |
| 30 | "description": "Directory path for Dnsmasq configurations. The syntax follows the same format as the [--conf-dir](https://thekelleys.org.uk/dnsmasq/docs/dnsmasq-man.html) option.", |
| 31 | "type": "string", |
| 32 | "default": "/etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new", |
| 33 | "pattern": "^$|^/" |
| 34 | } |
| 35 | }, |
| 36 | "required": [ |
| 37 | "leases_path", |
| 38 | "conf_path" |
| 39 | ] |
| 40 | }, |
| 41 | "uiSchema": { |
| 42 | "uiOptions": { |
| 43 | "fullPage": true |
| 44 | } |
| 45 | } |
| 46 | } |