heartbeat

package
v2.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 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