metamonitoring

package
v0.9.0-preview.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockDiffHealthyThreshold = 900
	TimeDiffHealthyThreshold  = 10 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type MonitoringStatusPublisher

type MonitoringStatusPublisher interface {
	Publish(isHealthy bool) error
}

type MonitoringStatusUpdateService

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

func NewMonitoringStatusUpdateService

func NewMonitoringStatusUpdateService(store MonitoringStore, vegaClient VegaClient, logger *logging.Logger) (*MonitoringStatusUpdateService, error)

func (*MonitoringStatusUpdateService) AssetPricesStatusPublisher

func (msus *MonitoringStatusUpdateService) AssetPricesStatusPublisher() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) BlockSignersStatusPublisher

func (msus *MonitoringStatusUpdateService) BlockSignersStatusPublisher() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) CometTxsStatusPublisher

func (msus *MonitoringStatusUpdateService) CometTxsStatusPublisher() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) NetworkBalancesStatusPublisher

func (msus *MonitoringStatusUpdateService) NetworkBalancesStatusPublisher() MonitoringStatusPublisher

func (*MonitoringStatusUpdateService) Run

func (msus *MonitoringStatusUpdateService) Run(ctx context.Context, tickInterval time.Duration)

func (*MonitoringStatusUpdateService) SegmentsStatusPublisher

func (msus *MonitoringStatusUpdateService) SegmentsStatusPublisher() MonitoringStatusPublisher

type MonitoringStore

type MonitoringStore interface {
	NewMonitoringStatus() *sqlstore.MonitoringStatus
	NewBlocks() *sqlstore.Blocks
}

type VegaClient

type VegaClient interface {
	GetStatistics() (*vegaclient.Statistics, error)
}

Jump to

Keyboard shortcuts

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