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/Axot017/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 ¶
View Source
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 ¶
Types ¶
type Metrics ¶
Metrics defines the interface for a collection of performance metrics in the policy engine.
type TimerMetrics ¶
type TimerMetrics = v1.TimerMetrics
Click to show internal directories.
Click to hide internal directories.