metrics

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetAddressToMetricName

func AssetAddressToMetricName(assetAddress string) string

func ConstructNameForMetric

func ConstructNameForMetric(sourceNetworkId, targetNetworkId uint64, tokenType, transactionId, metricTarget string) (string, error)

func ConvertBasedOnDecimal

func ConvertBasedOnDecimal(value *big.Int, decimal uint8) (*float64, error)

func ConvertToHbar

func ConvertToHbar(amount int) float64

func CreateFeeTransferredIfNotExists

func CreateFeeTransferredIfNotExists(sourceChainId, targetChainId uint64, asset string, transferID string, prometheusService service.Prometheus, logger *log.Entry) prometheus.Gauge

func CreateMajorityReachedIfNotExists

func CreateMajorityReachedIfNotExists(sourceChainId uint64, targetChainId uint64, asset string, transferID string, prometheusService service.Prometheus, logger *log.Entry) prometheus.Gauge

func CreateUserGetHisTokensIfNotExists

func CreateUserGetHisTokensIfNotExists(sourceChainId, targetChainId uint64, asset string, transferID string, prometheusService service.Prometheus, logger *log.Entry) prometheus.Gauge

func PrepareValueForPrometheusMetricName

func PrepareValueForPrometheusMetricName(value string) string

func SetFeeTransferred

func SetFeeTransferred(sourceChainId, targetChainId uint64, asset string, transferID string, prometheusService service.Prometheus, logger *log.Entry)

func SetMajorityReached

func SetMajorityReached(sourceChainId, targetChainId uint64, asset string, transferID string, prometheusService service.Prometheus, logger *log.Entry)

func SetUserGetHisTokens

func SetUserGetHisTokens(sourceChainId, targetChainId uint64, asset string, transferID string, prometheusService service.Prometheus, logger *log.Entry)

Types

This section is empty.

Jump to

Keyboard shortcuts

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