Documentation ¶
Index ¶
- type ConsensusMetrics
- func (cm *ConsensusMetrics) ContinueDutyFullFlow()
- func (cm *ConsensusMetrics) EndConsensus()
- func (cm *ConsensusMetrics) EndDutyFullFlow(round specqbft.Round)
- func (cm *ConsensusMetrics) EndPostConsensus()
- func (cm *ConsensusMetrics) EndPreConsensus()
- func (cm *ConsensusMetrics) PauseDutyFullFlow()
- func (cm *ConsensusMetrics) RoleSubmissionFailed()
- func (cm *ConsensusMetrics) RoleSubmitted()
- func (cm *ConsensusMetrics) StartBeaconSubmission() (endBeaconSubmission func())
- func (cm *ConsensusMetrics) StartConsensus()
- func (cm *ConsensusMetrics) StartDutyFullFlow()
- func (cm *ConsensusMetrics) StartPostConsensus()
- func (cm *ConsensusMetrics) StartPreConsensus()
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.