Documentation
¶
Overview ¶
Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. For newer features and behaviours, such as defaulting to the Rego v1 syntax, use the corresponding components in the github.com/open-policy-agent/opa/v1 package instead. See https://www.openpolicyagent.org/docs/latest/v0-compatibility/ for more information.
Package metrics contains helpers for performance metric management inside the policy engine.
Index ¶
Constants ¶
const ( BundleRequest = v1.BundleRequest ServerHandler = v1.ServerHandler ServerQueryCacheHit = v1.ServerQueryCacheHit SDKDecisionEval = v1.SDKDecisionEval RegoQueryCompile = v1.RegoQueryCompile RegoQueryEval = v1.RegoQueryEval RegoQueryParse = v1.RegoQueryParse RegoModuleParse = v1.RegoModuleParse RegoDataParse = v1.RegoDataParse RegoModuleCompile = v1.RegoModuleCompile RegoPartialEval = v1.RegoPartialEval RegoInputParse = v1.RegoInputParse RegoLoadFiles = v1.RegoLoadFiles RegoLoadBundles = v1.RegoLoadBundles RegoExternalResolve = v1.RegoExternalResolve )
Well-known metric names.
Variables ¶
This section is empty.
Functions ¶
func Statistics ¶ added in v0.31.0
func Statistics(num ...int64) interface{}
Types ¶
type Histogram ¶ added in v0.7.0
Histogram defines the interface for a histogram with hardcoded percentiles.
type Metrics ¶
Metrics defines the interface for a collection of performance metrics in the policy engine.
type TimerMetrics ¶ added in v0.31.0
type TimerMetrics = v1.TimerMetrics