-
Notifications
You must be signed in to change notification settings - Fork 4
/
device-config-schema.coffee
46 lines (46 loc) · 1.52 KB
/
device-config-schema.coffee
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
module.exports = {
title: "pimatic-sysinfo device config schemas"
SystemSensor: {
title: "SystemSensor config options"
type: "object"
extensions: ["xLink", "xAttributeOptions"]
properties:
attributes:
description: "Attributes of the device"
type: "array"
default: [{name: "cpu"},{name: "memory"}]
items:
type: "object"
properties:
name:
type: "string"
description: "The sensor"
enum: [
"cpu", "usedMemory", "usedMemoryPercent",
"freeMemory", "freeMemoryPercent", "processes",
"temperature", "temperatureF", "dbSize",
"diskUsagePercent", "systemUptime", "wifiSignalLevel"
"nwThroughputReceived", "nwThroughputSent",
"pimaticRss", "pimaticHeapUsed",
"pimaticHeapTotal", "pimaticUptime",
]
interval:
type: "integer"
description: "Polling interval in ms"
default: 10000
path:
type: "string"
description: """
Path (only applicable for diskUsagePercent)
"""
default: "/"
networkInterface:
type: "string"
description: """
Network interface name (only applicable for
wifiSignalLevel, nwThroughputReceived, and
nwThroughputSent)
"""
default: "wlan0"
}
}