Documentation ¶
Index ¶
- Constants
- type MetricService
- func (m *MetricService) SetBSCBalance(balance float64)
- func (m *MetricService) SetBSCInturnRelayerMetrics(isInturn bool, start, end uint64)
- func (m *MetricService) SetBSCProcessedBlockHeight(height uint64)
- func (m *MetricService) SetBSCSavedBlockHeight(height uint64)
- func (m *MetricService) SetGnfdInturnRelayerMetrics(isInturn bool, start, end uint64)
- func (m *MetricService) SetGnfdProcessedBlockHeight(height uint64)
- func (m *MetricService) SetGnfdSavedBlockHeight(height uint64)
- func (m *MetricService) SetHasTxDelay(hasDelay bool)
- func (m *MetricService) SetNextReceiveSequenceForChannel(channel uint8, seq uint64)
- func (m *MetricService) SetNextSendSequenceForChannel(channel uint8, seq uint64)
- func (m *MetricService) Start()
Constants ¶
View Source
const ( MetricNameGnfdSavedBlock = "Greenfield_saved_block_height" MetricNameGnfdProcessedBlock = "Greenfield_processed_block_height" MetricNameIsGnfdInturnRelayer = "is_Greenfield_inturn_relayer" MetricNameGnfdRelayerStartTime = "Greenfield_relayer_start_time" // inturn relayer start time MetricNameGnfdRelayerEndTime = "Greenfield_relayer_end_time" // inturn relayer end time MetricNameBSCSavedBlock = "BSC_saved_block_height" MetricNameBSCProcessedBlock = "BSC_processed_block_height" MetricNameIsBSCInturnRelayer = "is_BSC_inturn_relayer" MetricNameBSCRelayerStartTime = "BSC_relayer_start_time" // inturn relayer start time MetricNameBSCRelayerEndTime = "BSC_relayer_end_time" // inturn relayer end time MetricNameNextSendSequenceForChannel = "next_send_seq_for_channel" MetricNameNextReceiveSequenceForChannel = "next_receive_seq_for_channel" MetricNameBSCBalance = "bsc_balance" MetricNameHasTxDelay = "tx_delay" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MetricService ¶
type MetricService struct { MetricsMap map[string]prometheus.Metric // contains filtered or unexported fields }
func NewMetricService ¶
func NewMetricService(config *config.Config) *MetricService
func (*MetricService) SetBSCBalance ¶
func (m *MetricService) SetBSCBalance(balance float64)
func (*MetricService) SetBSCInturnRelayerMetrics ¶
func (m *MetricService) SetBSCInturnRelayerMetrics(isInturn bool, start, end uint64)
func (*MetricService) SetBSCProcessedBlockHeight ¶
func (m *MetricService) SetBSCProcessedBlockHeight(height uint64)
func (*MetricService) SetBSCSavedBlockHeight ¶
func (m *MetricService) SetBSCSavedBlockHeight(height uint64)
func (*MetricService) SetGnfdInturnRelayerMetrics ¶
func (m *MetricService) SetGnfdInturnRelayerMetrics(isInturn bool, start, end uint64)
func (*MetricService) SetGnfdProcessedBlockHeight ¶
func (m *MetricService) SetGnfdProcessedBlockHeight(height uint64)
func (*MetricService) SetGnfdSavedBlockHeight ¶
func (m *MetricService) SetGnfdSavedBlockHeight(height uint64)
func (*MetricService) SetHasTxDelay ¶
func (m *MetricService) SetHasTxDelay(hasDelay bool)
func (*MetricService) SetNextReceiveSequenceForChannel ¶
func (m *MetricService) SetNextReceiveSequenceForChannel(channel uint8, seq uint64)
func (*MetricService) SetNextSendSequenceForChannel ¶
func (m *MetricService) SetNextSendSequenceForChannel(channel uint8, seq uint64)
func (*MetricService) Start ¶
func (m *MetricService) Start()
Click to show internal directories.
Click to hide internal directories.