mirror of
https://github.com/Icinga/icingabeat.git
synced 2025-08-23 02:38:08 +02:00
20 lines
535 B
Go
20 lines
535 B
Go
// Config is put into a different package to prevent cyclic imports in case
|
|
// it is needed in several locations
|
|
|
|
package config
|
|
|
|
import "github.com/elastic/beats/libbeat/common"
|
|
|
|
type Config struct {
|
|
// Modules is a list of module specific configuration data.
|
|
Monitors []*common.Config `config:"monitors" validate:"required"`
|
|
Scheduler Scheduler `config:"scheduler"`
|
|
}
|
|
|
|
type Scheduler struct {
|
|
Limit uint `config:"limit" validate:"min=0"`
|
|
Location string `config:"location"`
|
|
}
|
|
|
|
var DefaultConfig = Config{}
|