Documentation ¶
Index ¶
Constants ¶
View Source
const COMPILATION_TIME = "compilation_time"
Metric names
View Source
const DATA_DOCUMENTS_LOADED = "data_documents_loaded"
View Source
const INPUT_IDX = "input_idx"
View Source
const MODULES_LOADED = "modules_loaded"
View Source
const PACKAGE = "package"
Label names
View Source
const POLICIES_LOADED = "policies_loaded"
View Source
const POLICY_ERRORS = "policy_errors"
View Source
const PROVIDERS_LOAD_TIME = "providers_load_time"
View Source
const RESULTS_PRODUCED = "results_produced"
View Source
const RULES_EVALUATED = "rules_evaluated"
View Source
const RULE_EVAL_TIME = "rule_evaluation_time"
View Source
const RULE_SELECTION_TIME = "rule_selection_time"
View Source
const TOTAL_RULE_EVAL_TIME = "total_rule_evaluation_time"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Labels ¶
func MergeLabels ¶
type LocalCounter ¶
type LocalCounter struct {
// contains filtered or unexported fields
}
func (*LocalCounter) Add ¶
func (l *LocalCounter) Add(val float64)
func (*LocalCounter) Count ¶
func (l *LocalCounter) Count() float64
func (*LocalCounter) Inc ¶
func (l *LocalCounter) Inc()
type LocalMetrics ¶
type LocalMetrics struct {
// contains filtered or unexported fields
}
func NewLocalMetrics ¶
func NewLocalMetrics(logger logging.Logger) *LocalMetrics
func (*LocalMetrics) Log ¶
func (l *LocalMetrics) Log(ctx context.Context)
type LocalTimer ¶
type LocalTimer struct {
// contains filtered or unexported fields
}
func (*LocalTimer) Duration ¶
func (l *LocalTimer) Duration() time.Duration
func (*LocalTimer) Record ¶
func (l *LocalTimer) Record(d time.Duration)
Click to show internal directories.
Click to hide internal directories.