metrics

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recorder

type Recorder struct {
	Config   conf.HealthCheckEnvSpec
	Logger   *zap.SugaredLogger
	Client   node.Client
	Interval time.Duration
}

Recorder struct.

func NewRecorder

func NewRecorder(
	config conf.HealthCheckEnvSpec,
	logger *zap.SugaredLogger,
	client node.Client,
	interval time.Duration,
) *Recorder

NewRecorder create a new metrics recorder.

func (*Recorder) RecordClientHeadBlockNumber

func (r *Recorder) RecordClientHeadBlockNumber(ctx context.Context)

func (*Recorder) Start

func (r *Recorder) Start(ctx context.Context)

Start records metrics in a regular interval.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL