2019-06-25 20:22:34 +00:00
|
|
|
package types
|
|
|
|
|
2019-07-02 20:33:01 +00:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2020-05-03 12:04:08 +00:00
|
|
|
// MeasuredValue represent a value provided by a measuring instrument. For
|
|
|
|
// example from a sensor. It can contains different types, for example humidity
|
|
|
|
// or temperature.
|
2019-07-02 20:33:01 +00:00
|
|
|
type MeasuredValue struct {
|
2020-05-03 12:04:08 +00:00
|
|
|
ID string `json:"id" xml:"id"`
|
|
|
|
Value float64 `json:"value,string" xml:"value,string"`
|
|
|
|
ValueType string `json:"value_type" xml:"value_type"`
|
2020-05-31 22:52:54 +00:00
|
|
|
Date time.Time `json:"date" xml:"date"`
|
2020-05-03 12:04:08 +00:00
|
|
|
SensorID string `json:"sensor_id" xml:"sensor_id"`
|
2020-06-01 20:36:57 +00:00
|
|
|
CreationDate time.Time `json:"creation_date" xml:"creation_date"`
|
2020-05-03 12:04:08 +00:00
|
|
|
UpdateDate *time.Time `json:"update_date" xml:"update_date"`
|
2019-07-02 20:33:01 +00:00
|
|
|
}
|