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
+8
@@ -423,6 +423,7 @@ export interface DeploymentValues {
|
||||
readonly enable_terraform_debug_mode?: boolean;
|
||||
readonly user_quiet_hours_schedule?: UserQuietHoursScheduleConfig;
|
||||
readonly web_terminal_renderer?: string;
|
||||
readonly healthcheck?: HealthcheckConfig;
|
||||
readonly config?: string;
|
||||
readonly write_config?: boolean;
|
||||
readonly address?: string;
|
||||
@@ -548,6 +549,12 @@ export interface Healthcheck {
|
||||
readonly threshold: number;
|
||||
}
|
||||
|
||||
// From codersdk/deployment.go
|
||||
export interface HealthcheckConfig {
|
||||
readonly refresh: number;
|
||||
readonly threshold_database: number;
|
||||
}
|
||||
|
||||
// From codersdk/workspaceagents.go
|
||||
export interface IssueReconnectingPTYSignedTokenRequest {
|
||||
readonly url: string;
|
||||
@@ -2088,6 +2095,7 @@ export interface HealthcheckDatabaseReport {
|
||||
readonly reachable: boolean;
|
||||
readonly latency: string;
|
||||
readonly latency_ms: number;
|
||||
readonly threshold_ms: number;
|
||||
readonly error?: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user