mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat: add health check monitoring to workspace apps (#4114)
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
ALTER TABLE ONLY workspace_apps
|
||||
DROP COLUMN IF EXISTS healthcheck_url,
|
||||
DROP COLUMN IF EXISTS healthcheck_interval,
|
||||
DROP COLUMN IF EXISTS healthcheck_threshold,
|
||||
DROP COLUMN IF EXISTS health;
|
||||
|
||||
DROP TYPE workspace_app_health;
|
@ -0,0 +1,7 @@
|
||||
CREATE TYPE workspace_app_health AS ENUM ('disabled', 'initializing', 'healthy', 'unhealthy');
|
||||
|
||||
ALTER TABLE ONLY workspace_apps
|
||||
ADD COLUMN IF NOT EXISTS healthcheck_url text NOT NULL DEFAULT '',
|
||||
ADD COLUMN IF NOT EXISTS healthcheck_interval int NOT NULL DEFAULT 0,
|
||||
ADD COLUMN IF NOT EXISTS healthcheck_threshold int NOT NULL DEFAULT 0,
|
||||
ADD COLUMN IF NOT EXISTS health workspace_app_health NOT NULL DEFAULT 'disabled';
|
Reference in New Issue
Block a user