feat(grafana_live): more work pushing data to websocket, #4355
This commit is contained in:
@@ -3,7 +3,11 @@ package dtos
|
||||
import "encoding/json"
|
||||
|
||||
type StreamMessage struct {
|
||||
Stream string `json:"stream"`
|
||||
Metric string `json:"metric"`
|
||||
Datapoints [][]json.Number `json:"Datapoints"`
|
||||
Stream string `json:"stream"`
|
||||
Series []StreamMessageSeries `json:"series"`
|
||||
}
|
||||
|
||||
type StreamMessageSeries struct {
|
||||
Name string `json:"name"`
|
||||
Datapoints [][]json.Number `json:"datapoints"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user