Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockRuleValidator ¶
func NewMockRuleValidator() *mockRuleValidator
NewMockRuleValidator create mock RuleValidator
Types ¶
type Auditor ¶
type Auditor struct {
// contains filtered or unexported fields
}
Auditor as a structure of auditor
func New ¶
func New(toleranceStore protocol.ToleranceStore, validator RuleValidator, metadataStore protocol.MetadataStore, metricStore protocol.MetricStore) *Auditor
New create Auditor
type DefaultRuleValidator ¶
type DefaultRuleValidator struct { }
DefaultRuleValidator as a default rule validator
func NewDefaultRuleValidator ¶
func NewDefaultRuleValidator() *DefaultRuleValidator
NewDefaultRuleValidator construct DefaultRuleValidator
func (DefaultRuleValidator) Validate ¶
func (d DefaultRuleValidator) Validate(metrics []*metric.Metric, tolerances []*protocol.Tolerance) ([]*protocol.ValidatedMetric, error)
Validate to validate metrics based on tolerances
type RuleValidator ¶
type RuleValidator interface {
Validate(metrics []*metric.Metric, tolerances []*protocol.Tolerance) ([]*protocol.ValidatedMetric, error)
}
RuleValidator to validate metric value with rule
Click to show internal directories.
Click to hide internal directories.