metrics

package
v1.0.58 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMetrics

func InitMetrics(
	appStatusHandler core.AppStatusHandler,
	pubKey crypto.PublicKey,
	nodeType core.NodeType,
	shardCoordinator sharding.Coordinator,
	nodesConfig *sharding.NodesSetup,
	version string,
	economicsConfig *config.ConfigEconomics,
)

InitMetrics will init metrics for status handler

func SaveCurrentNodeNameAndPubKey added in v1.0.36

func SaveCurrentNodeNameAndPubKey(ash core.AppStatusHandler, txSignPk string, nodeName string)

SaveCurrentNodeNameAndPubKey will save metric in status handler with nodeName and transaction sign public key

func StartMachineStatisticsPolling

func StartMachineStatisticsPolling(ash core.AppStatusHandler, pollingInterval int) error

StartMachineStatisticsPolling will start read information about current running machini

func StartStatusPolling

func StartStatusPolling(
	ash core.AppStatusHandler,
	pollingInterval int,
	networkComponents *factory.Network,
	processComponents *factory.Process,
) 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