metrics

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheError

func CacheError(cacheKey, cacheName, cacheType string, msg string) ([]byte, error)

CacheError returns an empty cache object and the formatted error

func ObserveCacheDel

func ObserveCacheDel(cache, cacheType string, count float64)

ObserveCacheDel records a cache deletion event

func ObserveCacheEvent

func ObserveCacheEvent(cache, cacheType, event, reason string)

ObserveCacheEvent increments counters as cache events occur

func ObserveCacheMiss

func ObserveCacheMiss(cacheKey, cacheName, cacheType string)

ObserveCacheMiss records a Cache Miss event

func ObserveCacheOperation

func ObserveCacheOperation(cache, cacheType, operation, status string, bytes float64)

ObserveCacheOperation increments counters as cache operations occur

func ObserveCacheSizeChange

func ObserveCacheSizeChange(cache, cacheType string, byteCount, objectCount int64)

ObserveCacheSizeChange adjust counters and gauges as the cache size changes due to object operations

Types

This section is empty.

Jump to

Keyboard shortcuts

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