[upd] doc:schema

This commit is contained in:
Christian Fraß 2023-03-22 14:25:21 +01:00
parent 24ec4d53ed
commit 3d4843439d

View file

@ -19,7 +19,7 @@
"default": 3
},
"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",
"default": false
},
@ -31,7 +31,10 @@
"anyOf": [
{
"description": "in seconds",
"type": "integer",
"type": [
"null",
"integer"
],
"exclusiveMinimum": 0
},
{
@ -51,7 +54,10 @@
"anyOf": [
{
"description": "in seconds",
"type": "integer",
"type": [
"null",
"integer"
],
"exclusiveMinimum": 0
},
{
@ -66,6 +72,26 @@
}
],
"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": []
@ -240,7 +266,7 @@
"default": 3
},
"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",
"default": false
},
@ -252,7 +278,10 @@
"anyOf": [
{
"description": "in seconds",
"type": "integer",
"type": [
"null",
"integer"
],
"exclusiveMinimum": 0
},
{
@ -272,7 +301,10 @@
"anyOf": [
{
"description": "in seconds",
"type": "integer",
"type": [
"null",
"integer"
],
"exclusiveMinimum": 0
},
{
@ -287,6 +319,26 @@
}
],
"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": []
@ -519,6 +571,49 @@
"parameters"
]
},
{
"title": "check 'tls_certificate'",
"type": "object",
"unevaluatedProperties": false,
"properties": {
"kind": {
"type": "string",
"enum": [
"tls_certificate"
]
},
"parameters": {
"type": "object",
"additionalProperties": false,
"properties": {
"host": {
"type": "string"
},
"strict": {
"description": "whether a violation of this check shall be leveled as critical instead of concerning",
"type": "boolean",
"default": true
},
"expiry_threshold": {
"description": "in days; allowed amount of valid days before the certificate expires",
"type": [
"null",
"integer"
],
"default": 7,
"minimum": 0
}
},
"required": [
"host"
]
}
},
"required": [
"kind",
"parameters"
]
},
{
"title": "check 'http_request'",
"type": "object",
@ -621,7 +716,7 @@
"type": "object",
"additionalProperties": false,
"properties": {
"ssh_host": {
"host": {
"type": "string"
},
"ssh_port": {
@ -660,7 +755,7 @@
}
},
"required": [
"ssh_host"
"host"
]
}
},