MCPcopy Create free account
hub / github.com/OctopusDeploy/cli / getHealthStatus

Function getHealthStatus

pkg/cmd/worker/shared/view.go:96–105  ·  view source on GitHub ↗
(worker *machines.Worker)

Source from the content-addressed store, hash-verified

94}
95
96func getHealthStatus(worker *machines.Worker) string {
97 switch worker.HealthStatus {
98 case "Healthy":
99 return output.Green(worker.HealthStatus)
100 case "Unhealthy":
101 return output.Red(worker.HealthStatus)
102 default:
103 return output.Yellow(worker.HealthStatus)
104 }
105}
106
107func GetWorkerPoolMap(opts *ViewOptions) (map[string]string, error) {
108 workerPoolMap := make(map[string]string)

Callers 1

ViewRunFunction · 0.85

Calls 3

GreenFunction · 0.92
RedFunction · 0.92
YellowFunction · 0.92

Tested by

no test coverage detected