Documentation ¶
Index ¶
- Constants
- type HealthCheckService
- type MetamonitoringService
- type MonitoringStatusPublisher
- type MonitoringStatusUpdateService
- func (msus *MonitoringStatusUpdateService) AssetPricesStatusPublisher() MonitoringStatusPublisher
- func (msus *MonitoringStatusUpdateService) BlockSignersStatusPublisher() MonitoringStatusPublisher
- func (msus *MonitoringStatusUpdateService) CometTxsStatusPublisher() MonitoringStatusPublisher
- func (msus *MonitoringStatusUpdateService) DataNodeStatusPublisher() MonitoringStatusPublisher
- func (msus *MonitoringStatusUpdateService) NetworkBalancesStatusPublisher() MonitoringStatusPublisher
- func (msus *MonitoringStatusUpdateService) PrometheusEthereumCalls() MonitoringStatusPublisher
- func (msus *MonitoringStatusUpdateService) Run(ctx context.Context, tickInterval time.Duration)
- func (msus *MonitoringStatusUpdateService) SegmentsStatusPublisher() MonitoringStatusPublisher
- type MonitoringStore
- type VegaClient
Constants ¶
View Source
const ( BlockDiffHealthyThreshold = 900 TimeDiffHealthyThreshold = 10 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckService ¶ added in v0.10.0
type HealthCheckService struct {
// contains filtered or unexported fields
}
func NewHealthCheckService ¶ added in v0.10.0
func NewHealthCheckService(cfg config.HealthCheckConfig, readService readService, logger *logging.Logger) (*HealthCheckService, error)
type MetamonitoringService ¶ added in v0.12.0
type MetamonitoringService interface { DataNodeStatusPublisher() MonitoringStatusPublisher BlockSignersStatusPublisher() MonitoringStatusPublisher SegmentsStatusPublisher() MonitoringStatusPublisher CometTxsStatusPublisher() MonitoringStatusPublisher NetworkBalancesStatusPublisher() MonitoringStatusPublisher AssetPricesStatusPublisher() MonitoringStatusPublisher PrometheusEthereumCalls() MonitoringStatusPublisher Run(ctx context.Context, tickInterval time.Duration) }
func NewMonitoringStatusUpdateService ¶
func NewMonitoringStatusUpdateService(store MonitoringStore, vegaClient VegaClient, logger *logging.Logger) (MetamonitoringService, error)
func NewNopService ¶ added in v0.12.0
func NewNopService() MetamonitoringService
type MonitoringStatusUpdateService ¶
type MonitoringStatusUpdateService struct {
// contains filtered or unexported fields
}
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) DataNodeStatusPublisher ¶ added in v0.13.0
func (msus *MonitoringStatusUpdateService) DataNodeStatusPublisher() MonitoringStatusPublisher
func (*MonitoringStatusUpdateService) NetworkBalancesStatusPublisher ¶
func (msus *MonitoringStatusUpdateService) NetworkBalancesStatusPublisher() MonitoringStatusPublisher
func (*MonitoringStatusUpdateService) PrometheusEthereumCalls ¶ added in v0.11.0
func (msus *MonitoringStatusUpdateService) PrometheusEthereumCalls() 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)
}
Click to show internal directories.
Click to hide internal directories.