func (sc ServiceCheck) Check() error {
	if len(sc.Name) == 0 {
		return fmt.Errorf("statsd.ServiceCheck name is required")
	}
	if byte(sc.Status) < 0 || byte(sc.Status) > 3 {
		return fmt.Errorf("statsd.ServiceCheck status has invalid value")
	}
	return nil
}
Check verifies that a service check is valid.
package statsd
import (
	"fmt"
	"time"
)
type ServiceCheckStatus byte
const (
	Ok ServiceCheckStatus = 0
	Warn ServiceCheckStatus = 1
	Critical ServiceCheckStatus = 2
	Unknown ServiceCheckStatus = 3
)
type ServiceCheck struct {
	Name string
	Status ServiceCheckStatus
	Timestamp time.Time
	Hostname string
	Message string
	Tags []string
}
func NewServiceCheck(name string, status ServiceCheckStatus) *ServiceCheck {
	return &ServiceCheck{
		Name:   name,
		Status: status,
	}
}