[upd] doc:schema
This commit is contained in:
parent
24ec4d53ed
commit
3d4843439d
|
|
@ -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": []
|
||||||
|
|
@ -519,6 +571,49 @@
|
||||||
"parameters"
|
"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'",
|
"title": "check 'http_request'",
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
|
@ -621,7 +716,7 @@
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"ssh_host": {
|
"host": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"ssh_port": {
|
"ssh_port": {
|
||||||
|
|
@ -660,7 +755,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"ssh_host"
|
"host"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue