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
Click to show internal directories.
Click to hide internal directories.