// NewStampedMetricReport creates a new StampedMetricReport with a random, unique identifier.
NewStampedMetricReport creates a new StampedMetricReport with a random, unique identifier.
// NewStampedMetricReport creates a new StampedMetricReport with a random unique identifier .
func NewStampedMetricReport(report MetricReport) StampedMetricReport {
	var stamped StampedMetricReport
	id, err := uuid.NewRandom()
	if err != nil {
		panic(fmt.Sprintf("cannot create uuid for report: %+v", err))
	}
	stamped.Id = id.String()
	stamped.MetricReport = report
	return stamped
}
func NewStampedMetricReport ( report MetricReport ) StampedMetricReport { var stamped StampedMetricReport id , err := uuid . NewRandom ( ) if err != nil { panic ( fmt . Sprintf ( " " , err ) ) } stamped . Id = id . String ( ) stamped . MetricReport = report return stamped }
NewStampedMetricReport creates a new StampedMetricReport with a random, unique identifier.
NewStampedMetricReport creates a new StampedMetricReport with a random unique identifier .