github.com/pachyderm/pachyderm@v1.13.4/src/client/health.go (about)

     1  package client
     2  
     3  import (
     4  	"github.com/pachyderm/pachyderm/src/client/pkg/grpcutil"
     5  
     6  	"github.com/gogo/protobuf/types"
     7  )
     8  
     9  // Health health checks pachd, it returns an error if pachd isn't healthy.
    10  func (c APIClient) Health() error {
    11  	_, err := c.healthClient.Health(c.Ctx(), &types.Empty{})
    12  	return grpcutil.ScrubGRPC(err)
    13  }