func ScanType() *string {
	result := config.ScantypeConfig()
	return &result
}
ScanType get from config the scan type
package structure
import (
	"os"
	"regexp"
	"time"
	"github.com/aws/aws-sdk-go/aws"
	"github.com/aws/aws-sdk-go/service/cloudwatch"
	"github.com/getninjas/spot-ninja/config"
)
func QueryData(dimension *cloudwatch.Dimension) *cloudwatch.MetricDataQuery {
	metricQuerieData := &cloudwatch.MetricDataQuery{
		Id: aws.String(
			IDMetric()),
		MetricStat: &cloudwatch.MetricStat{
			Unit: aws.String(
				Unit()),
			Period: DataPoint(),
			Stat:   Statistic(),
			Metric: &cloudwatch.Metric{
				Dimensions: []*cloudwatch.Dimension{dimension},
				MetricName: MetricName(),
				Namespace:  NameSpace(),
			},
		},
	}
	return metricQuerieData
}
func CloudDimension(spootID string) *cloudwatch.Dimension {
	configFile := Fleettype()
	result := &cloudwatch.Dimension{
		Name:  aws.String(configFile),
		Value: aws.String(spootID),
	}
	return result
}
func GetRegion() {
	if len(os.Getenv("AWS_REGION")) <= 1 {
		os.Setenv("AWS_REGION", "us-east-1")
	}
}
func getSpotConfig() string {
	spot := os.Getenv("SPOT_CONFIG")
	if len(spot) <= 1 {
		panic("env SPOT_CONFIG not found")
	}
	return os.Getenv("SPOT_CONFIG")
}
func DataPoint() *int64 {
	dpoint := config.DataPointConfig()
	return &dpoint
}
func Statistic() *string {
	result := config.StatisticConfig()
	return &result
}
func Fleettype() string {
	return config.FleetTypeConfig()
}
func IDMetric() string {
	return config.IDmetricConfig()
}