51 lines
808 B
Plaintext
51 lines
808 B
Plaintext
package schema
|
|
|
|
#Ups: {
|
|
driver: string
|
|
port?: string
|
|
desc?: string
|
|
vendorid?: string
|
|
productid?: string
|
|
product?: string
|
|
serial?: string
|
|
vendor?: string
|
|
bus?: string
|
|
pollonly?: "enabled" | "disabled"
|
|
pollinterval?: int
|
|
}
|
|
|
|
#User: {
|
|
password: string
|
|
actions?: [string, ...]
|
|
instcmds?: [string, ...]
|
|
upsmon?: "primary" | "secondary"
|
|
}
|
|
|
|
#Listen: {
|
|
address: string
|
|
port: int
|
|
}
|
|
|
|
#NutMonitorSystem: {
|
|
system: string
|
|
powervalue: int
|
|
username: string
|
|
password: string
|
|
role: "primary" | "secondary"
|
|
}
|
|
|
|
#NutMonitor: {
|
|
monitor: [...#NutMonitorSystem]
|
|
minsupplies: int | *1
|
|
shutdowncmd?: string
|
|
notifycmd?: string
|
|
}
|
|
|
|
#Nut: {
|
|
listen: #Listen
|
|
ups: [string]: #Ups
|
|
users: [string]: #User
|
|
|
|
monitor?: #NutMonitor
|
|
}
|