Documentation ¶
Overview ¶
Package metrics contains helpers for performance metric management inside the policy engine.
Index ¶
Constants ¶
View Source
const ( RegoQueryCompile = "rego_query_compile" RegoQueryEval = "rego_query_eval" RegoQueryParse = "rego_query_parse" RegoModuleParse = "rego_module_parse" RegoModuleCompile = "rego_module_compile" RegoPartialEval = "rego_partial_eval" )
Well-known metric names.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶ added in v0.7.0
type Counter interface { Value() interface{} Incr() }
Counter defines the interface for a monotonic increasing counter.
type Histogram ¶ added in v0.7.0
type Histogram interface { Value() interface{} Update(int64) }
Histogram defines the interface for a histogram with hardcoded percentiles.
Click to show internal directories.
Click to hide internal directories.