metrics

package
v0.0.0-...-23a414b Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INVALID = "INVALID"
)

Variables

This section is empty.

Functions

func GetLabelForExchangeId

func GetLabelForExchangeId(exchangeId types.ExchangeId) gometrics.Label

GetLabelForExchangeId converts an exchangeId uint32 into a name and then returns the label with the name.

func GetLabelForMarketId

func GetLabelForMarketId(marketId types.MarketId) gometrics.Label

GetLabelForMarketId converts a marketId uint32 into a human-readable market pair and then returns the label with the market pair.

func GetMarketPairForTelemetry

func GetMarketPairForTelemetry(marketId types.MarketId) string

GetMarketPairForTelemetry returns the market pair string for a given marketId. If the marketId is not found in the map, returns the INVALID string. This method is synchronized.

func SetMarketPairForTelemetry

func SetMarketPairForTelemetry(marketId types.MarketId, marketPair string)

SetMarketPairForTelemetry sets a market pair to an in-memory map of marketId to marketPair strings used for labelling metrics. This method is synchronized.

Types

This section is empty.

Jump to

Keyboard shortcuts

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