metrics

package
v1.1.33 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMetrics

func InitMetrics(
	appStatusHandler core.AppStatusHandler,
	pubkeyStr string,
	nodeType core.NodeType,
	shardCoordinator sharding.Coordinator,
	nodesConfig *sharding.NodesSetup,
	version string,
	economicsConfig *config.EconomicsConfig,
	roundsPerEpoch int64,
) 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

func StartMachineStatisticsPolling

func StartMachineStatisticsPolling(ash core.AppStatusHandler, notifier sharding.EpochStartEventNotifier, pollingInterval time.Duration) error

StartMachineStatisticsPolling will start read information about current running machine

func StartStatusPolling

func StartStatusPolling(
	ash core.AppStatusHandler,
	pollingInterval time.Duration,
	networkComponents *mainFactory.NetworkComponents,
	processComponents *factory.Process,
	shardCoordinator sharding.Coordinator,
) error

StartStatusPolling will start save information in status handler about network

Types

This section is empty.

Jump to

Keyboard shortcuts

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