-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathprotocol.go
70 lines (60 loc) · 1.05 KB
/
protocol.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
package logpeck
// PeckTaskConfig http request protocol
type PeckTaskConfig struct {
Name string
LogPath string
Extractor ExtractorConfig
Sender SenderConfig
Aggregator AggregatorConfig
Keywords string
Test TestModule
}
// ExtractorConfig .
type ExtractorConfig struct {
Name string
Config interface{}
}
// SenderConfig .
type SenderConfig struct {
Name string
Config interface{}
}
// PeckField config
type PeckField struct {
Name string
Value string
}
// PeckTaskStat .
type PeckTaskStat struct {
Name string
LinesPerSec int64
BytesPerSec int64
LinesTotal int64
BytesTotal int64
Stop bool
}
// Stat .
type Stat struct {
Name string
LinesPerSec int64
BytesPerSec int64
LinesTotal int64
BytesTotal int64
}
// LogStat .
type LogStat struct {
LogPath string
PeckTaskConfigs []PeckTaskConfig
PeckTaskStats []PeckTaskStat
}
// PeckerStat .
type PeckerStat struct {
Name string
Stat Stat
LogStats []LogStat
}
// TestModule .
type TestModule struct {
TestNum int
Timeout int
}