Documentation
¶
Index ¶
- type Chunk
- type Chunks
- type Config
- type Drain
- func (d *Drain) Clusters() []*LogCluster
- func (d *Drain) Delete(cluster *LogCluster)
- func (d *Drain) Match(content string) *LogCluster
- func (d *Drain) PatternString(c *LogCluster) string
- func (d *Drain) Train(content string, ts int64) *LogCluster
- func (d *Drain) TrainPattern(content string, samples []*logproto.PatternSample) *LogCluster
- func (d *Drain) TrainTokens(tokens []string, stringer func([]string) string, ts int64) *LogCluster
- type LogCluster
- type LogClusterCache
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chunk ¶
type Chunk struct {
Samples []logproto.PatternSample
}
type Config ¶
type Config struct { LogClusterDepth int SimTh float64 MaxChildren int ExtraDelimiters []string MaxClusters int ParamString string // contains filtered or unexported fields }
func DefaultConfig ¶
func DefaultConfig() *Config
type Drain ¶
type Drain struct {
// contains filtered or unexported fields
}
func (*Drain) Clusters ¶
func (d *Drain) Clusters() []*LogCluster
func (*Drain) Delete ¶
func (d *Drain) Delete(cluster *LogCluster)
func (*Drain) Match ¶
func (d *Drain) Match(content string) *LogCluster
Match against an already existing cluster. Match shall be perfect (sim_th=1.0). New cluster will not be created as a result of this call, nor any cluster modifications.
func (*Drain) PatternString ¶
func (d *Drain) PatternString(c *LogCluster) string
func (*Drain) TrainPattern ¶
func (d *Drain) TrainPattern(content string, samples []*logproto.PatternSample) *LogCluster
func (*Drain) TrainTokens ¶
type LogCluster ¶
type LogCluster struct { Size int Tokens []string Stringer func([]string) string Chunks Chunks // contains filtered or unexported fields }
func (*LogCluster) Prune ¶
func (c *LogCluster) Prune(olderThan time.Duration)
func (*LogCluster) Samples ¶
func (c *LogCluster) Samples() []*logproto.PatternSample
func (*LogCluster) String ¶
func (c *LogCluster) String() string
type LogClusterCache ¶
type LogClusterCache struct {
// contains filtered or unexported fields
}
func (*LogClusterCache) Get ¶
func (c *LogClusterCache) Get(key int) *LogCluster
func (*LogClusterCache) Iterate ¶
func (c *LogClusterCache) Iterate(fn func(*LogCluster) bool)
func (*LogClusterCache) Set ¶
func (c *LogClusterCache) Set(key int, cluster *LogCluster)
func (*LogClusterCache) Values ¶
func (c *LogClusterCache) Values() []*LogCluster
Click to show internal directories.
Click to hide internal directories.