mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat(coderd): support weekly aggregated insights (#9684)
This commit is contained in:
@ -90,7 +90,7 @@ ORDER BY
|
||||
date ASC;
|
||||
|
||||
-- name: DeleteOldWorkspaceAgentStats :exec
|
||||
DELETE FROM workspace_agent_stats WHERE created_at < NOW() - INTERVAL '30 days';
|
||||
DELETE FROM workspace_agent_stats WHERE created_at < NOW() - INTERVAL '6 months';
|
||||
|
||||
-- name: GetDeploymentWorkspaceAgentStats :one
|
||||
WITH agent_stats AS (
|
||||
|
Reference in New Issue
Block a user