Documentation ¶
Index ¶
- type Latency
- func (m *Latency) Accepted(id ids.ID, pollNumber uint64)
- func (m *Latency) Initialize(metricName, descriptionName string, log logging.Logger, namespace string, ...) error
- func (m *Latency) Issued(id ids.ID, pollNumber uint64)
- func (m *Latency) MeasureAndGetOldestDuration() time.Duration
- func (m *Latency) ProcessingLen() int
- func (m *Latency) Rejected(id ids.ID, pollNumber uint64)
- type Polls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Latency ¶ added in v1.5.3
type Latency struct { // Clock gives access to the current wall clock time Clock timer.Clock // contains filtered or unexported fields }
Latency reports commonly used consensus latency metrics.
func (*Latency) Initialize ¶ added in v1.5.3
func (m *Latency) Initialize(metricName, descriptionName string, log logging.Logger, namespace string, reg prometheus.Registerer) error
Initialize the metrics with the provided names.
func (*Latency) MeasureAndGetOldestDuration ¶ added in v1.5.3
func (*Latency) ProcessingLen ¶ added in v1.5.3
type Polls ¶ added in v1.5.3
type Polls struct {
// contains filtered or unexported fields
}
Polls reports commonly used consensus poll metrics.
func (*Polls) Initialize ¶ added in v1.5.3
func (m *Polls) Initialize(namespace string, reg prometheus.Registerer) error
Initialize the metrics.
func (*Polls) Successful ¶ added in v1.5.3
func (m *Polls) Successful()
Click to show internal directories.
Click to hide internal directories.