Versions in this module Expand all Collapse all v0 v0.2.7 Jul 5, 2024 v0.2.6 Jun 6, 2024 v0.2.5 May 24, 2024 Changes in this version + const MetricTypeCount + const MetricTypeHistogram + const MetricTypeSummary + type BaseQuantifier struct + Def T + Logger logrus.FieldLogger + func NewBaseQuantifierForTest[T BaseQuantityDef](def T) *BaseQuantifier[T] + func (q *BaseQuantifier[T]) Name() string + func (q *BaseQuantifier[T]) Quantify(message *audit.Message) (float64, bool) + func (q *BaseQuantifier[T]) Type() MetricType + type BaseQuantityDef interface + DefaultEnable func() bool + Name func() string + Quantify func(message *audit.Message) (float64, bool, error) + Type func() MetricType + type MetricType uint8 + type Quantifier interface + Name func() string + Quantify func(message *audit.Message) (float64, bool) + Type func() MetricType + type Registry struct + QuantifierNameIndex map[string]int + Quantifiers *manager.List[Quantifier] + TagProviderFactories *manager.List[TagProviderFactory] + TagProviderNameIndex map[string]int + TagProviders []TagProvider + func NewMockRegistry(tagProviders []TagProvider, quantifiers []Quantifier) *Registry + func NewRegistry() *Registry + func (registry *Registry) Close(ctx context.Context) error + func (registry *Registry) Init() error + func (registry *Registry) Options() manager.Options + func (registry *Registry) Start(ctx context.Context) error + type TagProvider interface + ProvideValues func(message *audit.Message, slice []string) + TagNames func() []string + type TagProviderFactory interface + GetTagProviders func() []TagProvider