metrics

package
v0.3.6-dev2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	INVALID = "INVALID"
)

Variables

This section is empty.

Functions

func AddMarketPairForTelemetry added in v0.3.0

func AddMarketPairForTelemetry(marketId types.MarketId, marketPair string)

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

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 added in v0.3.0

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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