selfstate

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OK    = "OK"    // OK means notifier is healthy
	ERROR = "ERROR" // ERROR means notifier is stopped, admin intervention is required
)

Notifier states

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled                        bool
	RemoteTriggersEnabled          bool
	RedisDisconnectDelaySeconds    int64
	LastMetricReceivedDelaySeconds int64
	LastCheckDelaySeconds          int64
	LastRemoteCheckDelaySeconds    int64
	NoticeIntervalSeconds          int64
	Contacts                       []map[string]string
}

Config is representation of self state worker settings like moira admins contacts and threshold values for checked services

type SelfCheckWorker

type SelfCheckWorker struct {
	Log      moira.Logger
	DB       moira.Database
	Notifier notifier.Notifier
	Config   Config
	// contains filtered or unexported fields
}

SelfCheckWorker checks what all notifier services works correctly and send message when moira don't work

func (*SelfCheckWorker) Start

func (selfCheck *SelfCheckWorker) Start() error

Start self check worker

func (*SelfCheckWorker) Stop

func (selfCheck *SelfCheckWorker) Stop() error

Stop self check worker and wait for finish

Jump to

Keyboard shortcuts

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