Documentation ¶
Index ¶
- Variables
- func InitBaseMetrics(appStatusHandler core.AppStatusHandler) error
- func InitConfigMetrics(appStatusHandler core.AppStatusHandler, epochConfig config.EpochConfig, ...) error
- func InitMetrics(appStatusHandler core.AppStatusHandler, pubkeyStr string, ...) error
- func InitRatingsMetrics(appStatusHandler core.AppStatusHandler, ratingsConfig config.RatingsConfig) error
- func SaveStringMetric(ash core.AppStatusHandler, key, value string)
- func SaveUint64Metric(ash core.AppStatusHandler, key string, value uint64)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNilAppStatusHandler = fmt.Errorf("nil app status handler when initializing metrics")
ErrNilAppStatusHandler signals that a nil app status handler instance has been provided
Functions ¶
func InitBaseMetrics ¶
func InitBaseMetrics(appStatusHandler core.AppStatusHandler) error
InitBaseMetrics will initialize base, default metrics to 0 values
func InitConfigMetrics ¶
func InitConfigMetrics( appStatusHandler core.AppStatusHandler, epochConfig config.EpochConfig, economicsConfig config.EconomicsConfig, genesisNodesConfig sharding.GenesisNodesSetupHandler, ) error
InitConfigMetrics will init the "enable epochs" configuration metrics from epoch config
func InitMetrics ¶
func InitMetrics( appStatusHandler core.AppStatusHandler, pubkeyStr string, nodeType core.NodeType, shardCoordinator sharding.Coordinator, nodesConfig sharding.GenesisNodesSetupHandler, version string, economicsConfig *config.EconomicsConfig, roundsPerEpoch int64, minTransactionVersion uint32, ) error
InitMetrics will init metrics for status handler
func InitRatingsMetrics ¶
func InitRatingsMetrics(appStatusHandler core.AppStatusHandler, ratingsConfig config.RatingsConfig) error
InitRatingsMetrics will init the ratings configuration metrics
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 an uint64 metric in status handler
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.