func (c *Config) GetMonitors() ([]*Monitor, error) {
	var monitors []*Monitor
	for _, monDef := range c.Monitors {
		mon, err := monDef.ToMonitor()
		if err != nil {
			return nil, err
		}
		monitors = append(monitors, mon)
	}

	return monitors, nil
}
// GetMonitors converts the config to usable monitors.
GetMonitors converts the config to usable monitors.
// GetMonitors converts the config to usable monitors .
func (c *Config) GetMonitors() ([]*Monitor, error) {
	var monitors []*Monitor
	for _, monDef := range c.Monitors {
		mon, err := monDef.ToMonitor()
		if err != nil {
			return nil, err
		}
		monitors = append(monitors, mon)
	}
	return monitors, nil
}
func ( c * Config ) GetMonitors ( ) ( [ ] * Monitor , error ) { var monitors [ ] * Monitor for _ , monDef := range c . Monitors { mon , err := monDef . ToMonitor ( ) if err != nil { return nil , err } monitors = append ( monitors , mon ) } return monitors , nil }
GetMonitors converts the config to usable monitors.
GetMonitors converts the config to usable monitors .