rename probe.Healthy to probe.Success and renam probe.Unhealthy to probe.Failure.

This commit is contained in:
Mike Danese
2015-01-27 10:22:53 -08:00
parent 6eb0b89cbd
commit 5dc6362f8a
14 changed files with 33 additions and 33 deletions

View File

@@ -57,10 +57,10 @@ func (s *Server) check(client httpGet) (probe.Status, string, error) {
return probe.Unknown, string(data), err
}
if resp.StatusCode != http.StatusOK {
return probe.Unhealthy, string(data),
return probe.Failure, string(data),
fmt.Errorf("unhealthy http status code: %d (%s)", resp.StatusCode, resp.Status)
}
return probe.Healthy, string(data), nil
return probe.Success, string(data), nil
}
type ServerStatus struct {