Skip to content

Commit c2a9339

Browse files
committed
lint and format
1 parent 61db1c2 commit c2a9339

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

coderd/workspaces.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1176,7 +1176,7 @@ func (api *API) postWorkspaceUsage(rw http.ResponseWriter, r *http.Request) {
11761176
stat.SessionCountJetbrains = 1
11771177
case codersdk.UsageAppNameReconnectingPty:
11781178
stat.SessionCountReconnectingPty = 1
1179-
case codersdk.UsageAppNameSsh:
1179+
case codersdk.UsageAppNameSSH:
11801180
stat.SessionCountSsh = 1
11811181
default:
11821182
// This means the app_name is not in the list of allowed app names.

codersdk/workspaces.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ func (c *Client) PutExtendWorkspace(ctx context.Context, id uuid.UUID, req PutEx
317317
}
318318

319319
type PostWorkspaceUsageRequest struct {
320-
AgentID uuid.UUID `json:"agent_id"`
320+
AgentID uuid.UUID `json:"agent_id" format:"uuid"`
321321
AppName UsageAppName `json:"app_name"`
322322
}
323323

@@ -327,14 +327,14 @@ const (
327327
UsageAppNameVscode UsageAppName = "vscode"
328328
UsageAppNameJetbrains UsageAppName = "jetbrains"
329329
UsageAppNameReconnectingPty UsageAppName = "reconnecting-pty"
330-
UsageAppNameSsh UsageAppName = "ssh"
330+
UsageAppNameSSH UsageAppName = "ssh"
331331
)
332332

333333
var AllowedAppNames = []UsageAppName{
334334
UsageAppNameVscode,
335335
UsageAppNameJetbrains,
336336
UsageAppNameReconnectingPty,
337-
UsageAppNameSsh,
337+
UsageAppNameSSH,
338338
}
339339

340340
// PostWorkspaceUsage marks the workspace as having been used recently.

0 commit comments

Comments
 (0)