code: func SaveMetrics(p *redis.Pool, name string, metrics MetricsRecord) error {
  	for _, agg := range aggregationIntervals {
  		if err := SaveMetricsForInterval(p, agg, name, metrics); err != nil {
  			return errors.Wrap(err, "save metrics for interval error")
  		}
  	}
  
  	log.WithFields(log.Fields{
  		"name":        name,
  		"aggregation": aggregationIntervals,
  	}).Info("metrics saved")
  
  	return nil
  }
docs: // SaveMetrics stores the given metrics into Redis.