22 lines
584 B
Go
22 lines
584 B
Go
package datasource
|
|
|
|
type Trend []TrendPoint
|
|
|
|
type TrendPoint struct {
|
|
ItemID string `json:"itemid,omitempty"`
|
|
Clock int64 `json:"clock,omitempty,string"`
|
|
Num string `json:"num,omitempty"`
|
|
ValueMin string `json:"value_min,omitempty"`
|
|
ValueAvg string `json:"value_avg,omitempty"`
|
|
ValueMax string `json:"value_max,omitempty"`
|
|
}
|
|
|
|
type History []HistoryPoint
|
|
|
|
type HistoryPoint struct {
|
|
ItemID string `json:"itemid,omitempty"`
|
|
Clock int64 `json:"clock,omitempty,string"`
|
|
Value float64 `json:"value,omitempty,string"`
|
|
NS int64 `json:"ns,omitempty,string"`
|
|
}
|