null

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package null is a null metrics logger.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service is a metrics service that drops metrics.

func New

func New(ctx context.Context) *Service

New creates a new null metrics service.

func (*Service) Accounts

func (s *Service) Accounts(state string, count uint64)

Accounts sets the number of accounts in a given state.

func (*Service) AttestationAggregationCompleted

func (s *Service) AttestationAggregationCompleted(started time.Time, slot phase0.Slot, result string)

AttestationAggregationCompleted is called when an attestation aggregation process has completed.

func (*Service) AttestationAggregationCoverage

func (s *Service) AttestationAggregationCoverage(frac float64)

AttestationAggregationCoverage measures the attestation ratio of the attestation aggregation.

func (*Service) AttestationsCompleted added in v1.0.3

func (s *Service) AttestationsCompleted(started time.Time, slot phase0.Slot, count int, result string)

AttestationsCompleted is called when an attestation process has completed.

func (*Service) BeaconBlockProposalCompleted

func (s *Service) BeaconBlockProposalCompleted(started time.Time, slot phase0.Slot, result string)

BeaconBlockProposalCompleted is called when a block proposal process has completed.

func (*Service) BeaconCommitteeAggregators

func (s *Service) BeaconCommitteeAggregators(aggregators int)

BeaconCommitteeAggregators sets the number of beacon committees for which our validators are aggregating.

func (*Service) BeaconCommitteeSubscribers

func (s *Service) BeaconCommitteeSubscribers(subscribers int)

BeaconCommitteeSubscribers sets the number of beacon committees to which our validators are subscribed.

func (*Service) BeaconCommitteeSubscriptionCompleted

func (s *Service) BeaconCommitteeSubscriptionCompleted(started time.Time, result string)

BeaconCommitteeSubscriptionCompleted is called when an beacon committee subscription process has completed.

func (*Service) BlockDelay

func (s *Service) BlockDelay(epochSlot uint, delay time.Duration)

BlockDelay provides the delay between the start of a slot and vouch receiving its block.

func (*Service) ClientOperation

func (s *Service) ClientOperation(provider string, name string, succeeded bool, duration time.Duration)

ClientOperation provides a generic monitor for client operations.

func (*Service) JobCancelled

func (s *Service) JobCancelled(class string)

JobCancelled is called when a scheduled job is cancelled.

func (*Service) JobScheduled

func (s *Service) JobScheduled(class string)

JobScheduled is called when a job is scheduled.

func (*Service) JobStartedOnSignal

func (s *Service) JobStartedOnSignal(class string)

JobStartedOnSignal is called when a scheduled job is started due to being manually signal.

func (*Service) JobStartedOnTimer

func (s *Service) JobStartedOnTimer(class string)

JobStartedOnTimer is called when a scheduled job is started due to meeting its time.

func (*Service) NewEpoch

func (s *Service) NewEpoch()

NewEpoch is called when vouch starts processing a new epoch.

func (*Service) Presenter added in v1.2.0

func (s *Service) Presenter() string

Presenter provides the presenter for this service.

func (*Service) StrategyOperation added in v1.2.0

func (s *Service) StrategyOperation(strategy string, provider string, operation string, duration time.Duration)

StrategyOperation provides a generic monitor for strategy operations.

func (*Service) SyncCommitteeAggregationCoverage added in v1.3.0

func (s *Service) SyncCommitteeAggregationCoverage(frac float64)

SyncCommitteeAggregationCoverage measures the message ratio of the sync committee aggregation.

func (*Service) SyncCommitteeAggregationsCompleted added in v1.2.0

func (s *Service) SyncCommitteeAggregationsCompleted(started time.Time, slot phase0.Slot, count int, result string)

SyncCommitteeAggregationsCompleted is called when a sync committee aggregation process has completed.

func (*Service) SyncCommitteeMessagesCompleted added in v1.2.0

func (s *Service) SyncCommitteeMessagesCompleted(started time.Time, slot phase0.Slot, count int, result string)

SyncCommitteeMessagesCompleted is called when a sync committee message process has completed.

func (*Service) SyncCommitteeSubscribers added in v1.2.2

func (s *Service) SyncCommitteeSubscribers(subscribers int)

SyncCommitteeSubscribers sets the number of sync committees to which our validators are subscribed.

func (*Service) SyncCommitteeSubscriptionCompleted added in v1.2.2

func (s *Service) SyncCommitteeSubscriptionCompleted(started time.Time, result string)

SyncCommitteeSubscriptionCompleted is called when a sync committee subscription process has completed.

Jump to

Keyboard shortcuts

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