metrics

package
v1.6.22 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallbackWaitTime

func CallbackWaitTime(pattern, ruleID string, startTime time.Time)

CallbackWaitTime tracks how much time elapsed between when the rule was evaluated and the callback called.

func CrawlerEvalTime added in v1.6.9

func CrawlerEvalTime(name string, startTime time.Time)

CrawlerEvalTime tracks how much time for crawler evals

func CrawlerQueryTime added in v1.6.9

func CrawlerQueryTime(name string, startTime time.Time)

CrawlerQueryTime tracks how much time for crawler queries

func CrawlerValuesCount added in v1.6.9

func CrawlerValuesCount(name string, count int)

CrawlerValuesCount tracks the number of crawler prefix values

func IncLockMetric

func IncLockMetric(locker string, methodName string, pattern string, lockSucceeded bool)

IncLockMetric increments the lock count.

func IncSatisfiedThenNot

func IncSatisfiedThenNot(methodName string, pattern string, phaseName string)

IncSatisfiedThenNot increments the count of a rule having initially been satisfied and then not satisfied, either after the initial evaluation or after the lock was obtained.

func IncWatcherErrMetric

func IncWatcherErrMetric(err, prefix string)

IncWatcherErrMetric increments the watcher error count.

func KeyProcessBufferCap

func KeyProcessBufferCap(count int)

KeyProcessBufferCap tracks the capacity of the key processor buffer.

func TimesEvaluated

func TimesEvaluated(methodName string, ruleID string, count int)

TimesEvaluated sets the number of times a rule has been evaluated.

func WorkBufferWaitTime

func WorkBufferWaitTime(methodName, pattern string, startTime time.Time)

WorkBufferWaitTime tracks the amount of time a work item was in the work buffer.

func WorkerQueueWaitTime

func WorkerQueueWaitTime(methodName string, startTime time.Time)

WorkerQueueWaitTime tracks the amount of time a work item has been sitting in a worker queue.

Types

This section is empty.

Jump to

Keyboard shortcuts

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