Skip to content

Commit 69b181c

Browse files
committed
Display agent connection timings
1 parent d00a00b commit 69b181c

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,5 +257,8 @@
257257

258258
"[css][html][markdown][yaml]": {
259259
"editor.defaultFormatter": "esbenp.prettier-vscode"
260+
},
261+
"[typescriptreact]": {
262+
"editor.defaultFormatter": "biomejs.biome"
260263
}
261264
}

coderd/apidoc/docs.go

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/apidoc/swagger.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

coderd/workspacebuilds.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,7 @@ func (api *API) buildTimings(ctx context.Context, build database.WorkspaceBuild)
10311031
WorkspaceAgentID: agent.ID.String(),
10321032
WorkspaceAgentName: agent.Name,
10331033
StartedAt: agent.CreatedAt,
1034+
Stage: "connect",
10341035
EndedAt: agent.FirstConnectedAt.Time,
10351036
})
10361037
}

codersdk/workspacebuilds.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ type AgentScriptTiming struct {
199199
type AgentConnectionTiming struct {
200200
StartedAt time.Time `json:"started_at" format:"date-time"`
201201
EndedAt time.Time `json:"ended_at" format:"date-time"`
202+
Stage string `json:"stage"`
202203
WorkspaceAgentID string `json:"workspace_agent_id"`
203204
WorkspaceAgentName string `json:"workspace_agent_name"`
204205
}

docs/reference/api/builds.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/api/schemas.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/reference/api/workspaces.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)