@@ -15,10 +15,9 @@ import (
15
15
type ProxyHealthStatus string
16
16
17
17
const (
18
- ProxyUnknown ProxyHealthStatus = "unknown"
19
- // ProxyHealthy means the proxy access url is reachable and returns a healthy
18
+ // ProxyReachable means the proxy access url is reachable and returns a healthy
20
19
// status code.
21
- ProxyHealthy ProxyHealthStatus = "ok "
20
+ ProxyReachable ProxyHealthStatus = "reachable "
22
21
// ProxyUnreachable means the proxy access url is not responding.
23
22
ProxyUnreachable ProxyHealthStatus = "unreachable"
24
23
// ProxyUnhealthy means the proxy access url is responding, but there is some
@@ -32,8 +31,6 @@ const (
32
31
type WorkspaceProxyStatus struct {
33
32
Status ProxyHealthStatus `json:"status" table:"status"`
34
33
// Report provides more information about the health of the workspace proxy.
35
- // This is not provided if the user does not have permission to view workspace
36
- // proxy metadata.
37
34
Report ProxyHealthReport `json:"report,omitempty" table:"report"`
38
35
CheckedAt time.Time `json:"checked_at" table:"checked_at" format:"date-time"`
39
36
}
@@ -49,10 +46,9 @@ type ProxyHealthReport struct {
49
46
}
50
47
51
48
type WorkspaceProxy struct {
52
- ID uuid.UUID `json:"id" format:"uuid" table:"id"`
53
- Name string `json:"name" table:"name,default_sort"`
54
- DisplayName string `json:"display_name" table:"display_name"`
55
- Icon string `json:"icon" table:"icon"`
49
+ ID uuid.UUID `json:"id" format:"uuid" table:"id"`
50
+ Name string `json:"name" table:"name,default_sort"`
51
+ Icon string `json:"icon" table:"icon"`
56
52
// Full url including scheme of the proxy api url: https://us.example.com
57
53
URL string `json:"url" table:"url"`
58
54
// WildcardHostname with the wildcard for subdomain based app hosting: *.us.example.com
0 commit comments