metrics

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMetrics

func InitMetrics(
	statusHandlerUtils StatusHandlersUtils,
	pubkeyStr string,
	nodeType core.NodeType,
	shardCoordinator sharding.Coordinator,
	nodesConfig sharding.GenesisNodesSetupHandler,
	version string,
	economicsConfig *config.EconomicsConfig,
	roundsPerEpoch int64,
	minTransactionVersion uint32,
	epochConfig *config.EpochConfig,
) error

InitMetrics will init metrics for status handler

func SaveStringMetric

func SaveStringMetric(ash core.AppStatusHandler, key, value string)

SaveStringMetric will save a string metric in status handler

func SaveUint64Metric

func SaveUint64Metric(ash core.AppStatusHandler, key string, value uint64)

SaveUint64Metric will save a uint64 metric in status handler

Types

type StatusHandlersUtils added in v1.2.0

type StatusHandlersUtils interface {
	StatusHandler() core.AppStatusHandler
	SignalStartViews()
	SignalLogRewrite()
	IsInterfaceNil() bool
}

StatusHandlersUtils provides some functionality for statusHandlers

Jump to

Keyboard shortcuts

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