metricstracker

package
v1.0.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Component *app.Component
)
View Source
var ParamsMetricsTracker = &ParametersMetricsTracker{}

Functions

This section is empty.

Types

type MetricsTracker

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

func New

func New(bootstrappedFunc isBootstrappedFunc) *MetricsTracker

func (*MetricsTracker) NodeMetrics

func (m *MetricsTracker) NodeMetrics() *NodeMetrics

type NodeMetrics

type NodeMetrics struct {
	BlocksPerSecond          float64
	ConfirmedBlocksPerSecond float64
	ConfirmedRate            float64
}

type ParametersMetricsTracker

type ParametersMetricsTracker struct {
	// Enabled defines whether the Metrics Tracker plugin is enabled.
	Enabled bool `default:"true" usage:"whether the Metrics Tracker plugin is enabled"`
}

ParametersMetricsTracker contains the definition of the parameters used by Metrics Tracker.

Jump to

Keyboard shortcuts

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