func NewEngine(cfg *Config) (*Engine, error) {
	monitors, err := cfg.GetMonitors()
	if err != nil {
		return nil, err
	}

	return &Engine{
		cfg:      cfg,
		log:      logrus.WithField("component", "engine"),
		monitors: monitors,
	}, nil
}
// NewEngine initializes the engine.
NewEngine initializes the engine.
// NewEngine initializes the engine .
func NewEngine(cfg *Config) (*Engine, error) {
	monitors, err := cfg.GetMonitors()
	if err != nil {
		return nil, err
	}
	return &Engine{
		cfg:      cfg,
		log:      logrus.WithField("component", "engine"),
		monitors: monitors,
	}, nil
}
func NewEngine ( cfg * Config ) ( * Engine , error ) { monitors , err := cfg . GetMonitors ( ) if err != nil { return nil , err } return & Engine { cfg : cfg , log : logrus . WithField ( " " , " " ) , monitors : monitors , } , nil }
NewEngine initializes the engine.
NewEngine initializes the engine .