Skip to content

Commit

Permalink
Use data frame time field name
Browse files Browse the repository at this point in the history
  • Loading branch information
coderReview committed Sep 22, 2024
1 parent 2bbf59a commit 76fc2b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/plugin/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ func convertItemsToDataFrame(processedQuery *PiProcessedQuery, d *Datasource, Su
// in the slice type, or values that are not "good"
valuepointers := convertSliceToPointers(fP.values, fP.badValues)

timeField := data.NewField("Time", nil, fP.timestamps)
timeField := data.NewField(data.TimeSeriesTimeFieldName, nil, fP.timestamps)
if !digitalState || !digitalStates {
valueField := data.NewField(frameLabel["name"], labels, valuepointers)
frame.Fields = append(frame.Fields,
Expand Down

0 comments on commit 76fc2b6

Please sign in to comment.