func SetTimeLocation(name string) error {
	var err error
	timeLocation, err = time.LoadLocation(name)
	if err != nil {
		return errors.Wrap(err, "load location error")
	}
	return nil
}
SetTimeLocation sets the time location.
package storage
import (
	"context"
	"fmt"
	"strconv"
	"time"
	"github.com/go-redis/redis/v8"
	"github.com/pkg/errors"
)
type AggregationInterval string
const (
	AggregationMinute AggregationInterval = "MINUTE"
	AggregationHour   AggregationInterval = "HOUR"
	AggregationDay    AggregationInterval = "DAY"
	AggregationMonth  AggregationInterval = "MONTH"
)
const (
	metricsKeyTempl = "lora:ns:metrics:{%s}:%s:%d"
)
var (
	timeLocation = time.Local
)
type MetricsRecord struct {
	Time    time.Time
	Metrics map[string]float64
}