-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
28 lines (25 loc) · 919 Bytes
/
config.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
package clickhouse_20200328
import (
"github.com/elastic/beats/v7/libbeat/outputs/codec"
)
type clickHouseConfig struct {
Url string `config:"url"`
Table string `config:"table"`
Grok string `config:"grok"`
GrokField string `config:"grok_field"`
Columns []string `config:"columns"`
Codec codec.Config `config:"codec"`
BulkMaxSize int `config:"bulk_max_size"`
MaxRetries int `config:"max_retries"`
RetryInterval int `config:"retry_interval"`
SkipUnexpectedTypeRow bool `config:"skip_unexpected_type_row"`
}
var (
defaultConfig = clickHouseConfig{
Url: "tcp://127.0.0.1:9000",
BulkMaxSize: 1000,
MaxRetries: 3,
RetryInterval: 60,
SkipUnexpectedTypeRow: false,
}
)