Files
coder/coderd/database/migrations/000289_agent_resource_monitors.up.sql
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
588 B
SQL
Raw Normal View History

CREATE TABLE workspace_agent_memory_resource_monitors (
agent_id uuid NOT NULL REFERENCES workspace_agents(id) ON DELETE CASCADE,
enabled boolean NOT NULL,
threshold integer NOT NULL,
created_at timestamp with time zone NOT NULL,
PRIMARY KEY (agent_id)
);
CREATE TABLE workspace_agent_volume_resource_monitors (
agent_id uuid NOT NULL REFERENCES workspace_agents(id) ON DELETE CASCADE,
enabled boolean NOT NULL,
threshold integer NOT NULL,
path text NOT NULL,
created_at timestamp with time zone NOT NULL,
PRIMARY KEY (agent_id, path)
);