heartbeat

package
v2.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Worker

type Worker struct {
	// contains filtered or unexported fields
}

Worker is heartbeat worker realization

func NewHeartbeatWorker

func NewHeartbeatWorker(database moira.Database, metrics *graphite.FilterMetrics, logger moira.Logger) *Worker

NewHeartbeatWorker creates new worker

func (*Worker) Start

func (worker *Worker) Start()

Start every 5 second takes TotalMetricsReceived metrics and save it to database, for self-checking

func (*Worker) Stop

func (worker *Worker) Stop() error

Stop heartbeat worker

Jump to

Keyboard shortcuts

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