Status returns a text representation of the overall status indicated in r.
()
| 111 | // Status returns a text representation of the overall status |
| 112 | // indicated in r. |
| 113 | func (r Result) Status() StatusText { |
| 114 | if r.Down { |
| 115 | return StatusDown |
| 116 | } else if r.Degraded { |
| 117 | return StatusDegraded |
| 118 | } else if r.Healthy { |
| 119 | return StatusHealthy |
| 120 | } |
| 121 | return StatusUnknown |
| 122 | } |
no outgoing calls