metrics

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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