feat(coderd/healthcheck): allow configuring database hc threshold (#10623)

* feat(coderd/healthcheck): allow configuring database hc threshold
* feat(coderd): add database hc latency, plumb through
* feat(coderd): allow configuring healthcheck refresh interval
This commit is contained in:
Cian Johnston
2023-11-13 14:14:43 +00:00
committed by GitHub
parent e4211ccb40
commit b69c237b8a
17 changed files with 288 additions and 55 deletions
+17
View File
@@ -8380,6 +8380,9 @@ const docTemplate = `{
"type": "string"
}
},
"healthcheck": {
"$ref": "#/definitions/codersdk.HealthcheckConfig"
},
"http_address": {
"description": "HTTPAddress is a string because it may be set to zero to disable.",
"type": "string"
@@ -8859,6 +8862,17 @@ const docTemplate = `{
}
}
},
"codersdk.HealthcheckConfig": {
"type": "object",
"properties": {
"refresh": {
"type": "integer"
},
"threshold_database": {
"type": "integer"
}
}
},
"codersdk.InsightsReportInterval": {
"type": "string",
"enum": [
@@ -12177,6 +12191,9 @@ const docTemplate = `{
},
"reachable": {
"type": "boolean"
},
"threshold_ms": {
"type": "integer"
}
}
},
+17
View File
@@ -7492,6 +7492,9 @@
"type": "string"
}
},
"healthcheck": {
"$ref": "#/definitions/codersdk.HealthcheckConfig"
},
"http_address": {
"description": "HTTPAddress is a string because it may be set to zero to disable.",
"type": "string"
@@ -7961,6 +7964,17 @@
}
}
},
"codersdk.HealthcheckConfig": {
"type": "object",
"properties": {
"refresh": {
"type": "integer"
},
"threshold_database": {
"type": "integer"
}
}
},
"codersdk.InsightsReportInterval": {
"type": "string",
"enum": ["day", "week"],
@@ -11102,6 +11116,9 @@
},
"reachable": {
"type": "boolean"
},
"threshold_ms": {
"type": "integer"
}
}
},