File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ import (
4
4
"github.com/google/uuid"
5
5
)
6
6
7
- // type WorkspaceAppHealth string
7
+ type WorkspaceAppHealth string
8
8
9
- // const (
10
- // WorkspaceAppHealthInitializing = "initializing"
11
- // WorkspaceAppHealthHealthy = "healthy"
12
- // WorkspaceAppHealthUnhealthy = "unhealthy"
13
- // )
9
+ const (
10
+ WorkspaceAppInitializing WorkspaceAppHealth = "initializing"
11
+ WorkspaceAppHealthy WorkspaceAppHealth = "healthy"
12
+ WorkspaceAppUnhealthy WorkspaceAppHealth = "unhealthy"
13
+ )
14
14
15
15
type WorkspaceApp struct {
16
16
ID uuid.UUID `json:"id"`
@@ -19,6 +19,6 @@ type WorkspaceApp struct {
19
19
Command string `json:"command,omitempty"`
20
20
// Icon is a relative path or external URL that specifies
21
21
// an icon to be displayed in the dashboard.
22
- Icon string `json:"icon,omitempty"`
23
- // Status WorkspaceAppHealth `json:"health"`
22
+ Icon string `json:"icon,omitempty"`
23
+ Status WorkspaceAppHealth `json:"health"`
24
24
}
Original file line number Diff line number Diff line change @@ -616,6 +616,7 @@ export interface WorkspaceApp {
616
616
readonly name : string
617
617
readonly command ?: string
618
618
readonly icon ?: string
619
+ readonly health : WorkspaceAppHealth
619
620
}
620
621
621
622
// From codersdk/workspacebuilds.go
@@ -738,5 +739,8 @@ export type UserStatus = "active" | "suspended"
738
739
// From codersdk/workspaceresources.go
739
740
export type WorkspaceAgentStatus = "connected" | "connecting" | "disconnected"
740
741
742
+ // From codersdk/workspaceapps.go
743
+ export type WorkspaceAppHealth = "healthy" | "initializing" | "unhealthy"
744
+
741
745
// From codersdk/workspacebuilds.go
742
746
export type WorkspaceTransition = "delete" | "start" | "stop"
You can’t perform that action at this time.
0 commit comments