forked from elastic/beats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.go
23 lines (21 loc) · 810 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
package dashboards
type Config struct {
Enabled bool `config:"enabled"`
KibanaIndex string `config:"kibana_index"`
Index string `config:"index"`
Dir string `config:"directory"`
File string `config:"file"`
Beat string `config:"beat"`
URL string `config:"url"`
OnlyDashboards bool `config:"only_dashboards"`
OnlyIndex bool `config:"only_index"`
Snapshot bool `config:"snapshot"`
SnapshotURL string `config:"snapshot_url"`
}
var defaultConfig = Config{
KibanaIndex: ".kibana",
}
var (
defaultURLPattern = "https://artifacts.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-%s.zip"
snapshotURLPattern = "https://snapshots.elastic.co/downloads/beats/beats-dashboards/beats-dashboards-%s-SNAPSHOT.zip"
)