func (r *healthComponent) Status() health.HealthState_Value {
	r.RLock()
	defer r.RUnlock()
	return r.state.Value()
}
Returns the health status for the health component
package reporter
import (
	"sync"
	"github.com/palantir/witchcraft-go-health/conjure/witchcraft/api/health"
)
var _ HealthComponent = &healthComponent{}
type HealthComponent interface {
	Healthy()
	Warning(message string)
	Error(err error)
	SetHealth(healthState health.HealthState_Value, message *string, params map[string]interface{})
	Status() health.HealthState_Value
	GetHealthCheck() health.HealthCheckResult
}
type healthComponent struct {
	sync.RWMutex
	name    health.CheckType
	state   health.HealthState
	message *string
	params  map[string]interface{}
}
func (r *healthComponent) Healthy() {
	r.SetHealth(health.HealthState_HEALTHY, nil, nil)
}
func (r *healthComponent) Warning(warningMsg string) {
	r.SetHealth(health.HealthState_WARNING, &warningMsg, nil)
}
func (r *healthComponent) Error(err error) {
	errorString := err.Error()
	r.SetHealth(health.HealthState_ERROR, &errorString, nil)
}
func (r *healthComponent) SetHealth(healthState health.HealthState_Value, message *string, params map[string]interface{}) {
	r.Lock()
	defer r.Unlock()
	r.state = health.New_HealthState(healthState)
	r.message = message
	r.params = params
}