worker

package
v2.5.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: MIT Imports: 14 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	Logger            moira.Logger
	Database          moira.Database
	Config            *checker.Config
	RemoteConfig      *remote.Config
	SourceProvider    *metricSource.SourceProvider
	Metrics           *graphite.CheckerMetrics
	TriggerCache      *cache.Cache
	LazyTriggersCache *cache.Cache
	PatternCache      *cache.Cache
	// contains filtered or unexported fields
}

Checker represents workers for periodically triggers checking based by new events

func (*Checker) Start

func (worker *Checker) Start() error

Start start schedule new MetricEvents and check for NODATA triggers

func (*Checker) Stop

func (worker *Checker) Stop() error

Stop stops checks triggers

Jump to

Keyboard shortcuts

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