code: func getSchedulerDBIntervals() ([]contract.Interval, error) {
  	var err error
  	var intervals []contract.Interval
  
  	intervals, err = dbClient.Intervals()
  
  	if err != nil {
  		LoggingClient.Error("failed connecting to metadata and retrieving intervals:" + err.Error())
  		return intervals, err
  	}
  
  	if intervals != nil {
  		LoggingClient.Debug("successfully queried support-scheduler intervals...")
  		for _, v := range intervals {
  			LoggingClient.Debug("found interval", "name", v.Name, "id", v.ID, "start", v.Start)
  		}
  	}
  	return intervals, nil
  }
docs: // Query support-scheduler scheduler client get intervals