func NewMetricsSevrice(startat time.Time, endat time.Time, metricname string) *MetricsSevrice {
	return &MetricsSevrice{
		StartAt:    startat,
		EndAt:      endat,
		MetricName: metricname,
		logger:     logrus.WithFields(logrus.Fields{"service": "kuberbs", "pkg": "metricsevrice"}),
	}
}
NewMetricsSevrice - create new MetricsSevrice struct
package metricsservice
import (
	"time"
	cfg "github.com/doitintl/kuberbs/pkg/config"
	"github.com/doitintl/kuberbs/pkg/metrics"
	"github.com/sirupsen/logrus"
)
type MetricsSevrice struct {
	StartAt          time.Time
	EndAt            time.Time
	logger           *logrus.Entry
	MetricName       string
	metricsHandler   metrics.ErrorRateHandler
	doneHandler      metrics.DoneHandler
	checkMetricsFunc metrics.CheckMetricsFunc
	doneChan         chan bool
	Config           *cfg.Config
}