diff --git a/storage/metric/curator_test.go b/storage/metric/curator_test.go index 2d0750fea..782dcd0e9 100644 --- a/storage/metric/curator_test.go +++ b/storage/metric/curator_test.go @@ -40,7 +40,7 @@ type ( sample struct { time time.Time - value float64 + value model.SampleValue } sampleGroup struct { @@ -90,7 +90,7 @@ func (s sampleGroup) Get() (key, value coding.Encoder) { for _, value := range s.values { series.Value = append(series.Value, &dto.SampleValueSeries_Value{ Timestamp: proto.Int64(value.time.Unix()), - Value: proto.Float64(value.value), + Value: value.value.ToDTO(), }) } diff --git a/storage/metric/rule_integration_test.go b/storage/metric/rule_integration_test.go index c71b6622c..6004a0521 100644 --- a/storage/metric/rule_integration_test.go +++ b/storage/metric/rule_integration_test.go @@ -26,7 +26,7 @@ func GetValueAtTimeTests(persistenceMaker func() (MetricPersistence, test.Closer month time.Month day int hour int - value float64 + value model.SampleValue } type input struct { @@ -358,7 +358,7 @@ func GetBoundaryValuesTests(persistenceMaker func() (MetricPersistence, test.Clo month time.Month day int hour int - value float64 + value model.SampleValue } type input struct { @@ -672,7 +672,7 @@ func GetRangeValuesTests(persistenceMaker func() (MetricPersistence, test.Closer month time.Month day int hour int - value float64 + value model.SampleValue } type input struct {