Documentation ¶
Index ¶
Constants ¶
View Source
const ( MissedBlockMeasurement = "MissedBlock" ReceivedBlockMeasurement = "ReceivedBlock" MissedAttestationMeasurement = "MissedAttestation" FreshAttestationMeasurement = "FreshAttestation" CorrectnessMeasurement = "Correctness" )
View Source
const ( DurationMinMeasurement = "DurationMin" DurationP10Measurement = "DurationP10" DurationP50Measurement = "DurationP50" DurationP90Measurement = "DurationP90" DurationMaxMeasurement = "DurationMax" )
View Source
const (
PeerCountMeasurement = "Count"
)
View Source
const (
VersionMeasurement = "Version"
)
Variables ¶
View Source
var (
UnreadyBlockMeasurement = fmt.Sprintf("UnreadyBlockMeasurement%dms", unreadyBlockDelay/time.Millisecond)
)
Functions ¶
This section is empty.
Types ¶
type AttestationMetric ¶
func NewAttestationMetric ¶
func NewAttestationMetric(url, name string, genesisTime time.Time, healthCondition []metric.HealthCondition[float64]) *AttestationMetric
func (*AttestationMetric) AggregateResults ¶
func (a *AttestationMetric) AggregateResults() string
func (*AttestationMetric) Measure ¶
func (a *AttestationMetric) Measure(ctx context.Context)
type ClientMetric ¶
func NewClientMetric ¶
func NewClientMetric(url, name string, healthCondition []metric.HealthCondition[string]) *ClientMetric
func (*ClientMetric) AggregateResults ¶
func (c *ClientMetric) AggregateResults() string
func (*ClientMetric) Measure ¶
func (c *ClientMetric) Measure(ctx context.Context)
type LatencyMetric ¶
func NewLatencyMetric ¶
func NewLatencyMetric(host, name string, interval time.Duration, healthCondition []metric.HealthCondition[time.Duration]) *LatencyMetric
func (*LatencyMetric) AggregateResults ¶
func (l *LatencyMetric) AggregateResults() string
func (*LatencyMetric) Measure ¶
func (l *LatencyMetric) Measure(ctx context.Context)
type PeerMetric ¶
func NewPeerMetric ¶
func NewPeerMetric(url, name string, interval time.Duration, healthCondition []metric.HealthCondition[uint32]) *PeerMetric
func (*PeerMetric) AggregateResults ¶
func (p *PeerMetric) AggregateResults() string
func (*PeerMetric) Measure ¶
func (p *PeerMetric) Measure(ctx context.Context)
Click to show internal directories.
Click to hide internal directories.