metrics

package
v1.3.11 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsensusMetrics

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

ConsensusMetrics defines metrics for consensus process.

func NewConsensusMetrics

func NewConsensusMetrics(role spectypes.BeaconRole) ConsensusMetrics

func (*ConsensusMetrics) ContinueDutyFullFlow

func (cm *ConsensusMetrics) ContinueDutyFullFlow()

ContinueDutyFullFlow continues measuring duty full flow duration.

func (*ConsensusMetrics) EndConsensus

func (cm *ConsensusMetrics) EndConsensus()

EndConsensus sends metrics for consensus duration.

func (*ConsensusMetrics) EndDutyFullFlow

func (cm *ConsensusMetrics) EndDutyFullFlow(round specqbft.Round)

EndDutyFullFlow sends metrics for duty full flow duration.

func (*ConsensusMetrics) EndPostConsensus

func (cm *ConsensusMetrics) EndPostConsensus()

EndPostConsensus sends metrics for post-consensus duration.

func (*ConsensusMetrics) EndPreConsensus

func (cm *ConsensusMetrics) EndPreConsensus()

EndPreConsensus sends metrics for pre-consensus duration.

func (*ConsensusMetrics) PauseDutyFullFlow

func (cm *ConsensusMetrics) PauseDutyFullFlow()

PauseDutyFullFlow stores duty full flow cumulative duration with ability to continue the flow.

func (*ConsensusMetrics) RoleSubmissionFailed

func (cm *ConsensusMetrics) RoleSubmissionFailed()

RoleSubmissionFailed increases non-submitted roles counter.

func (*ConsensusMetrics) RoleSubmitted

func (cm *ConsensusMetrics) RoleSubmitted()

RoleSubmitted increases submitted roles counter.

func (*ConsensusMetrics) StartBeaconSubmission

func (cm *ConsensusMetrics) StartBeaconSubmission() (endBeaconSubmission func())

StartBeaconSubmission returns a function that sends metrics for beacon submission duration.

func (*ConsensusMetrics) StartConsensus

func (cm *ConsensusMetrics) StartConsensus()

StartConsensus stores consensus start time.

func (*ConsensusMetrics) StartDutyFullFlow

func (cm *ConsensusMetrics) StartDutyFullFlow()

StartDutyFullFlow stores duty full flow start time.

func (*ConsensusMetrics) StartPostConsensus

func (cm *ConsensusMetrics) StartPostConsensus()

StartPostConsensus stores post-consensus start time.

func (*ConsensusMetrics) StartPreConsensus

func (cm *ConsensusMetrics) StartPreConsensus()

StartPreConsensus stores pre-consensus start time.

Jump to

Keyboard shortcuts

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