func TimeToConfig() int64 {
	env, _ := getIntEnv("TIME_TO_CONFIG")
	if env <= 1 {
		env = 5
	}
	return env
}
TimeToConfig to look at past (in minutes)
package config
import (
	"errors"
	"os"
	"strconv"
	"strings"
)
var errMsgVar = errors.New("getenv: env variable not exist")
func getStringEnv(key string) (string, error) {
	env := os.Getenv(key)
	if len(env) == 0 {
		return env, errMsgVar
	}
	return env, nil
}
func getIntEnv(key string) (int64, error) {
	env := os.Getenv(key)
	if len(env) == 0 {
		return 0, errMsgVar
	}
	envResult, err := strconv.ParseInt(env, 10, 64)
	if err != nil {
		return 0, err
	}
	return envResult, nil
}
func getBoolEnv(key string) (bool, error) {
	env := os.Getenv(key)
	if len(env) == 0 {
		return false, errMsgVar
	}
	envResult, err := strconv.ParseBool(env)
	if err != nil {
		return false, err
	}
	return envResult, nil
}
func getArryStringEnv(key string) ([]string, error) {
	env := os.Getenv(key)
	if len(env) == 0 {
		return nil, errMsgVar
	}
	envResult := strings.FieldsFunc(env, func(r rune) bool {
		if r == ',' {
			return true
		}
		return false
	})
	return envResult, nil
}
func DataPointConfig() int64 {
	env, _ := getIntEnv("DATA_POINT_CONFIG")
	if env == 0 {
		env = 30
	}
	return env
}
func StatisticConfig() string {
	env, _ := getStringEnv("STATISTIC_CONFIG")
	if len(env) == 0 {
		env = "Average"
	}
	return env
}
func FleetTypeConfig() string {
	env, _ := getStringEnv("FLEET_TYPE_CONFIG")
	if len(env) <= 1 {
		env = "FleetRequestId"
	}
	return env
}
func IDmetricConfig() string {
	env, _ := getStringEnv("ID_METRIC_CONFIG")
	if len(env) <= 1 {
		env = "metric"
	}
	return env
}
func ScantypeConfig() string {
	env, _ := getStringEnv("SCAN_TYPE_CONFIG")
	if len(env) <= 1 {
		env = "TimestampDescending"
	}
	return env
}
func MetricnameConfig() string {
	env, _ := getStringEnv("METRIC_NAME_CONFIG")
	if len(env) <= 1 {
		env = "PendingCapacity"
	}
	return env
}
func NamespaceConfig() string {
	env, _ := getStringEnv("NAMESPACE_CONFIG")
	if len(env) <= 1 {
		env = "AWS/EC2Spot"
	}
	return env
}
func UnitConfig() string {
	env, _ := getStringEnv("UNIT_CONFIG")
	if len(env) <= 1 {
		env = "Count"
	}
	return env
}