| 32128 | ` |
| 32129 | |
| 32130 | type GetWorkspaceAgentStatsAndLabelsRow struct { |
| 32131 | Username string `db:"username" json:"username"` |
| 32132 | AgentName string `db:"agent_name" json:"agent_name"` |
| 32133 | WorkspaceName string `db:"workspace_name" json:"workspace_name"` |
| 32134 | RxBytes int64 `db:"rx_bytes" json:"rx_bytes"` |
| 32135 | TxBytes int64 `db:"tx_bytes" json:"tx_bytes"` |
| 32136 | SessionCountVSCode int64 `db:"session_count_vscode" json:"session_count_vscode"` |
| 32137 | SessionCountSSH int64 `db:"session_count_ssh" json:"session_count_ssh"` |
| 32138 | SessionCountJetBrains int64 `db:"session_count_jetbrains" json:"session_count_jetbrains"` |
| 32139 | SessionCountReconnectingPTY int64 `db:"session_count_reconnecting_pty" json:"session_count_reconnecting_pty"` |
| 32140 | ConnectionCount int64 `db:"connection_count" json:"connection_count"` |
| 32141 | ConnectionMedianLatencyMS float64 `db:"connection_median_latency_ms" json:"connection_median_latency_ms"` |
| 32142 | } |
| 32143 | |
| 32144 | func (q *sqlQuerier) GetWorkspaceAgentStatsAndLabels(ctx context.Context, createdAt time.Time) ([]GetWorkspaceAgentStatsAndLabelsRow, error) { |
| 32145 | rows, err := q.db.QueryContext(ctx, getWorkspaceAgentStatsAndLabels, createdAt) |