mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
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:
Generated
+17
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Generated
+17
@@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user