mirror of
https://github.com/Telecominfraproject/ols-ucentral-schema.git
synced 2025-11-01 18:47:51 +00:00
turn telemetry and realtime filter into an enum
Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -8,3 +8,17 @@ properties:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
enum:
|
||||||
|
- ssh
|
||||||
|
- health
|
||||||
|
- health.dns
|
||||||
|
- health.dhcp
|
||||||
|
- health.radius
|
||||||
|
- health.memory
|
||||||
|
- client
|
||||||
|
- client.join
|
||||||
|
- client.leave
|
||||||
|
- client.key-mismatch
|
||||||
|
- wifi
|
||||||
|
- wifi.start
|
||||||
|
- wifi.stop
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
description:
|
description:
|
||||||
Configure the unsolicitated telemetry stream.
|
Configure the unsolicited telemetry stream.
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
interval:
|
interval:
|
||||||
@@ -12,3 +12,17 @@ properties:
|
|||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
|
enum:
|
||||||
|
- ssh
|
||||||
|
- health
|
||||||
|
- health.dns
|
||||||
|
- health.dhcp
|
||||||
|
- health.radius
|
||||||
|
- health.memory
|
||||||
|
- client
|
||||||
|
- client.join
|
||||||
|
- client.leave
|
||||||
|
- client.key-mismatch
|
||||||
|
- wifi
|
||||||
|
- wifi.start
|
||||||
|
- wifi.stop
|
||||||
|
|||||||
@@ -8520,6 +8520,9 @@ function instantiateMetricsTelemetry(location, value, errors) {
|
|||||||
if (type(value) != "string")
|
if (type(value) != "string")
|
||||||
push(errors, [ location, "must be of type string" ]);
|
push(errors, [ location, "must be of type string" ]);
|
||||||
|
|
||||||
|
if (!(value in [ "ssh", "health", "health.dns", "health.dhcp", "health.radius", "health.memory", "client", "client.join", "client.leave", "client.key-mismatch", "wifi", "wifi.start", "wifi.stop" ]))
|
||||||
|
push(errors, [ location, "must be one of \"ssh\", \"health\", \"health.dns\", \"health.dhcp\", \"health.radius\", \"health.memory\", \"client\", \"client.join\", \"client.leave\", \"client.key-mismatch\", \"wifi\", \"wifi.start\" or \"wifi.stop\"" ]);
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -8555,6 +8558,9 @@ function instantiateMetricsRealtime(location, value, errors) {
|
|||||||
if (type(value) != "string")
|
if (type(value) != "string")
|
||||||
push(errors, [ location, "must be of type string" ]);
|
push(errors, [ location, "must be of type string" ]);
|
||||||
|
|
||||||
|
if (!(value in [ "ssh", "health", "health.dns", "health.dhcp", "health.radius", "health.memory", "client", "client.join", "client.leave", "client.key-mismatch", "wifi", "wifi.start", "wifi.stop" ]))
|
||||||
|
push(errors, [ location, "must be one of \"ssh\", \"health\", \"health.dns\", \"health.dhcp\", \"health.radius\", \"health.memory\", \"client\", \"client.join\", \"client.leave\", \"client.key-mismatch\", \"wifi\", \"wifi.start\" or \"wifi.stop\"" ]);
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
14
state/interface.mesh-path.yml
Normal file
14
state/interface.mesh-path.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
type: object
|
||||||
|
description:
|
||||||
|
This section contains info about connected mesh nodes.
|
||||||
|
properties:
|
||||||
|
destiination:
|
||||||
|
type: string
|
||||||
|
next_hop:
|
||||||
|
type: string
|
||||||
|
metric:
|
||||||
|
type: number
|
||||||
|
expire:
|
||||||
|
type: number
|
||||||
|
hop_count:
|
||||||
|
type: number
|
||||||
@@ -3084,7 +3084,22 @@
|
|||||||
"types": {
|
"types": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ssh",
|
||||||
|
"health",
|
||||||
|
"health.dns",
|
||||||
|
"health.dhcp",
|
||||||
|
"health.radius",
|
||||||
|
"health.memory",
|
||||||
|
"client",
|
||||||
|
"client.join",
|
||||||
|
"client.leave",
|
||||||
|
"client.key-mismatch",
|
||||||
|
"wifi",
|
||||||
|
"wifi.start",
|
||||||
|
"wifi.stop"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -3095,7 +3110,22 @@
|
|||||||
"types": {
|
"types": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "string"
|
"type": "string",
|
||||||
|
"enum": [
|
||||||
|
"ssh",
|
||||||
|
"health",
|
||||||
|
"health.dns",
|
||||||
|
"health.dhcp",
|
||||||
|
"health.radius",
|
||||||
|
"health.memory",
|
||||||
|
"client",
|
||||||
|
"client.join",
|
||||||
|
"client.leave",
|
||||||
|
"client.key-mismatch",
|
||||||
|
"wifi",
|
||||||
|
"wifi.start",
|
||||||
|
"wifi.stop"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user