-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig.schema.json
120 lines (120 loc) · 6.27 KB
/
config.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
{
"pluginAlias": "GrumpTechVolumeMonitorPlatform",
"pluginType": "platform",
"singular": true,
"headerDisplay": "This plugin is provided by [GrumpTech](https://github.com/pricemi115/)",
"footerDisplay": "Be kind.....to everyone",
"schema": {
"type": "object",
"properties": {
"settings": {
"title": "Settings",
"type": "object",
"properties": {
"polling_interval": {
"title": "Polling Interval",
"description": "The time in hours to report updates for mounted volumes.",
"type": "number",
"default": "1",
"required": true
},
"alarm_threshold": {
"title": "Low Space Alarm Threshold (Default)",
"description": "The default threshold for indicating an alert when remaining space gets low. Expressed as a percentage.",
"type": "number",
"default": 15,
"minimum": 1,
"maximum": 99,
"required": true
},
"exclusion_masks": {
"title": "Exclusion List",
"description": "List of regular expressions used to exclude volume identification.",
"type": "array",
"required": true,
"default": ["^/Volumes/\\.timemachine/.*",
"^/System/Volumes/.*"],
"items": {
"title": "Exclude Pattern",
"description": "Regular exprerssion used to exclude a volume (by mount point)",
"type": "string"
}
},
"enable_volume_customizations": {
"title": "Enable Volume Customizations",
"description": "Allow volume customizations.",
"type": "boolean",
"default": false,
"required": true
},
"volume_customizations": {
"title": "Volume Customizations",
"description": "Customizations for specified volumes.",
"type": "array",
"required": true,
"condition": {
"functionBody": "return (model.settings.enable_volume_customizations);"
},
"items": {
"type": "object",
"properties": {
"volume_id_method": {
"title": "Volume Identification Method",
"desctiption": "Method for identifying the volume.",
"type": "string",
"default": "name",
"oneOf": [
{ "title": "Name", "enum": ["name"] },
{ "title": "Serial Number", "enum": ["serial_num"] }
],
"required": true
},
"volume_name": {
"title": "Volume Name",
"description": "Name of the volume",
"type": "string",
"default": "<Specify volume name>",
"required": false,
"condition": {
"functionBody": "return (model.settings.volume_customizations[arrayIndices] && model.settings.volume_customizations[arrayIndices].volume_id_method === 'name');"
}
},
"volume_serial_num": {
"title": "Volume Serial Number",
"description": "Serial number of the volume",
"type": "string",
"default": "<Specify volume serial number>",
"required": false,
"condition": {
"functionBody": "return (model.settings.volume_customizations[arrayIndices] && model.settings.volume_customizations[arrayIndices].volume_id_method === 'serial_num');"
}
},
"volume_low_space_alarm_active": {
"title": "Low Space Alarm",
"description": "State of the Low Space Alarm for the volume.",
"type": "boolean",
"default": true,
"required": true
},
"volume_alarm_threshold": {
"title": "Low Space Alarm Threshold",
"description": "The threshold for indicating an alert when remaining space gets low. Expressed as a percentage.",
"type": "number",
"default": 15,
"minimum": 1,
"maximum": 99,
"required": false,
"condition": {
"functionBody": "return (model.settings.volume_customizations[arrayIndices] && model.settings.volume_customizations[arrayIndices].volume_low_space_alarm_active);"
}
}
}
}
}
}
}
}
},
"form": null,
"display": null
}