[upd] doc:schema

This commit is contained in:
Christian Fraß 2023-03-22 14:26:40 +01:00
parent 554ca49c49
commit d5edd7e947

View file

@ -19,7 +19,7 @@
"default": 3 "default": 3
}, },
"annoy": { "annoy": {
"description": "whether notifications shall be kept sending after the threshold has been surpassed", "description": "whether notifications about non-ok states shall be kept sending after the threshold has been surpassed",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
@ -31,7 +31,10 @@
"anyOf": [ "anyOf": [
{ {
"description": "in seconds", "description": "in seconds",
"type": "integer", "type": [
"null",
"integer"
],
"exclusiveMinimum": 0 "exclusiveMinimum": 0
}, },
{ {
@ -51,7 +54,10 @@
"anyOf": [ "anyOf": [
{ {
"description": "in seconds", "description": "in seconds",
"type": "integer", "type": [
"null",
"integer"
],
"exclusiveMinimum": 0 "exclusiveMinimum": 0
}, },
{ {
@ -66,6 +72,26 @@
} }
], ],
"default": 120 "default": 120
},
"reminding_interval": {
"anyOf": [
{
"description": "in seconds",
"type": "integer",
"exclusiveMinimum": 0
},
{
"description": "as text",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week"
]
}
],
"default": 86400
} }
}, },
"required": [] "required": []
@ -240,7 +266,7 @@
"default": 3 "default": 3
}, },
"annoy": { "annoy": {
"description": "whether notifications shall be kept sending after the threshold has been surpassed", "description": "whether notifications about non-ok states shall be kept sending after the threshold has been surpassed",
"type": "boolean", "type": "boolean",
"default": false "default": false
}, },
@ -252,7 +278,10 @@
"anyOf": [ "anyOf": [
{ {
"description": "in seconds", "description": "in seconds",
"type": "integer", "type": [
"null",
"integer"
],
"exclusiveMinimum": 0 "exclusiveMinimum": 0
}, },
{ {
@ -272,7 +301,10 @@
"anyOf": [ "anyOf": [
{ {
"description": "in seconds", "description": "in seconds",
"type": "integer", "type": [
"null",
"integer"
],
"exclusiveMinimum": 0 "exclusiveMinimum": 0
}, },
{ {
@ -287,6 +319,26 @@
} }
], ],
"default": 120 "default": 120
},
"reminding_interval": {
"anyOf": [
{
"description": "in seconds",
"type": "integer",
"exclusiveMinimum": 0
},
{
"description": "as text",
"type": "string",
"enum": [
"minute",
"hour",
"day",
"week"
]
}
],
"default": 86400
} }
}, },
"required": [] "required": []
@ -621,7 +673,7 @@
"type": "object", "type": "object",
"additionalProperties": false, "additionalProperties": false,
"properties": { "properties": {
"ssh_host": { "host": {
"type": "string" "type": "string"
}, },
"ssh_port": { "ssh_port": {
@ -660,7 +712,7 @@
} }
}, },
"required": [ "required": [
"ssh_host" "host"
] ]
} }
}, },