Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker struct {
// contains filtered or unexported fields
}
func NewChecker ¶
func NewChecker(cont *controller.Controller, period time.Duration, logger log.Logger, thresholdRatio float64) *Checker
NewChecker returns a new ready and liveness checkers based on state from the metrics controller.
func (*Checker) SetRunning ¶
func (c *Checker) SetRunning()
SetRunning indicates when the process is ready.
type Response ¶
type Response struct { Code int `json:"code"` Status string `json:"status"` Metrics map[string][]exportRecord `json:"metrics"` Running bool `json:"running"` Stackdump string `json:"stackdump"` }
func (*Response) MetricLogSummary ¶
MetricLogSummary returns a slice of pairs for the log.Logger.Log() API based on the metric name.
Click to show internal directories.
Click to hide internal directories.