Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregateRule ¶
type AggregateRule struct {
Type AggregateType
Field string
Label string
}
type AggregateType ¶
type AggregateType string
const ( AggCount AggregateType = "count" AggSum AggregateType = "sum" AggAvg AggregateType = "avg" AggFirst AggregateType = "first" AggLast AggregateType = "last" )
type DSLValidator ¶
type DSLValidator struct{}
func NewDSLValidator ¶
func NewDSLValidator() *DSLValidator
func (*DSLValidator) Validate ¶
func (v *DSLValidator) Validate(fd *FilterDefinition) []string
type FilterDefinition ¶
type FilterDefinition struct {
Name string
Match string
SkipRules []Rule
KeepRules []Rule
ReplaceRules []Rule
Dedup bool
Sections []SectionRule
Aggregates []AggregateRule
Chunks []ChunkRule
JSONPath string
Template string
Variables map[string]string
Conditions []string
// contains filtered or unexported fields
}
func (*FilterDefinition) Apply ¶
func (fd *FilterDefinition) Apply(input string) string
func (*FilterDefinition) Matches ¶
func (fd *FilterDefinition) Matches(command string) bool
Click to show internal directories.
Click to hide internal directories.