metric

package
v0.0.0-...-035f276 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAddItemToCacheMetric

func NewAddItemToCacheMetric(clientType string) *metric.DimensionlessMetric

NewAddItemToCacheMetric creates new add item metric.

func NewGetErrEncounteredMetric

func NewGetErrEncounteredMetric(err error, clientType string) *util.ErrorEncounteredMetric

NewGetErrEncounteredMetric returns *util.ErrorEncounteredMetric when Get operation failed of some ICacheClient failed.

func NewSetErrEncounteredMetric

func NewSetErrEncounteredMetric(err error, clientType string) *util.ErrorEncounteredMetric

NewSetErrEncounteredMetric returns *util.ErrorEncounteredMetric when Set operation failed of some ICacheClient failed.

Types

type CacheClientGetMetric

type CacheClientGetMetric struct {
	// contains filtered or unexported fields
}

CacheClientGetMetric is metric of ARGDataProvider that checks the latency according to some scanStatus

func NewCacheClientGetMetric

func NewCacheClientGetMetric(cacheType interface{}, operationStatus operations.OPERATION_STATUS) *CacheClientGetMetric

NewCacheClientGetMetric Ctor for ArgDataProviderResponseLatencyMetric

func (*CacheClientGetMetric) MetricDimension

func (m *CacheClientGetMetric) MetricDimension() []metric.Dimension

func (*CacheClientGetMetric) MetricName

func (m *CacheClientGetMetric) MetricName() string

type CacheClientRedisPingMetric

type CacheClientRedisPingMetric struct {
}

CacheClientRedisPingMetric is metric of ARGDataProvider that checks the latency according to some scanStatus

func NewCacheClientRedisPingMetric

func NewCacheClientRedisPingMetric() *CacheClientRedisPingMetric

NewCacheClientRedisPingMetric Ctor for cacheClientRedisPingMetric

func (*CacheClientRedisPingMetric) MetricDimension

func (m *CacheClientRedisPingMetric) MetricDimension() []metric.Dimension

func (*CacheClientRedisPingMetric) MetricName

func (m *CacheClientRedisPingMetric) MetricName() string

Jump to

Keyboard shortcuts

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