mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-08-15 14:58:08 +02:00
24 lines
586 B
Go
24 lines
586 B
Go
package template
|
|
|
|
type TemplateConfig struct {
|
|
Enabled bool `config:"enabled"`
|
|
Name string `config:"name"`
|
|
Pattern string `config:"pattern"`
|
|
Fields string `config:"fields"`
|
|
Overwrite bool `config:"overwrite"`
|
|
Settings TemplateSettings `config:"settings"`
|
|
}
|
|
|
|
type TemplateSettings struct {
|
|
Index map[string]interface{} `config:"index"`
|
|
Source map[string]interface{} `config:"_source"`
|
|
}
|
|
|
|
var (
|
|
// DefaultConfig for index template
|
|
DefaultConfig = TemplateConfig{
|
|
Enabled: true,
|
|
Fields: "fields.yml",
|
|
}
|
|
)
|