transform: changes to support sdk v0.2.0 (#20426)

and update vendor
This commit is contained in:
Kyle Brandt
2019-11-18 11:40:40 -05:00
committed by GitHub
parent 7a8c6a9b54
commit c9309edbb0
142 changed files with 4305 additions and 928 deletions
+2 -2
View File
@@ -14,8 +14,8 @@ func SeriesToFrame(series *TimeSeries) (*dataframe.Frame, error) {
timeVec[idx], floatVec[idx] = convertTSDBTimePoint(point)
}
frame := dataframe.New(series.Name, dataframe.Labels(series.Tags),
dataframe.NewField("time", dataframe.FieldTypeTime, timeVec),
dataframe.NewField("value", dataframe.FieldTypeNumber, floatVec),
dataframe.NewField("time", timeVec),
dataframe.NewField("value", floatVec),
)
return frame, nil