master
json 66 lines 1.76 KB
Raw
1 {
2 "jsonSchema": {
3 "$schema": "http://json-schema.org/draft-07/schema#",
4 "title": "ISC 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 ISC DHCP server's lease database.",
17 "type": "string",
18 "default": "/var/lib/dhcp/dhcpd.leases",
19 "pattern": "^$|^/"
20 },
21 "pools": {
22 "title": "IP pools",
23 "description": "A list of IP pools to monitor. Each pool consists of a descriptive name and corresponding IP ranges.",
24 "type": [
25 "array",
26 "null"
27 ],
28 "items": {
29 "title": "IP pool",
30 "type": [
31 "object",
32 "null"
33 ],
34 "properties": {
35 "name": {
36 "title": "Name",
37 "description": "A descriptive name for the IP pool.",
38 "type": "string"
39 },
40 "networks": {
41 "title": "Networks",
42 "description": "A space-separated list of [IP ranges](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/iprange#supported-formats) for the pool.",
43 "type": "string"
44 }
45 },
46 "required": [
47 "name",
48 "networks"
49 ]
50 },
51 "minItems": 1,
52 "uniqueItems": true,
53 "additionalItems": false
54 }
55 },
56 "required": [
57 "leases_path",
58 "pools"
59 ]
60 },
61 "uiSchema": {
62 "uiOptions": {
63 "fullPage": true
64 }
65 }
66 }