Documentation ¶
Index ¶
Constants ¶
View Source
const HTTPHeartbeatInterval = 10 * time.Second
HTTPHeartbeatInterval is the duration between liveness heartbeats sent to an HTTP API.
Variables ¶
This section is empty.
Functions ¶
func NewWithInfo ¶
NewWithInfo constructs an http client when the group parameters are already known.
Types ¶
type HealthMetrics ¶
type HealthMetrics struct {
// contains filtered or unexported fields
}
HealthMetrics is a measurement task around HTTP clients
func MeasureHeartbeats ¶
func MeasureHeartbeats(ctx context.Context, c []client.Client) *HealthMetrics
MeasureHeartbeats periodically tracks latency observed on a set of HTTP clients
Click to show internal directories.
Click to hide internal directories.