This commit is contained in:
crusader 2018-07-04 17:35:46 +09:00
parent 1d13feb9ce
commit 8fd9425dee

View File

@ -8,12 +8,13 @@ import (
)
type Metric struct {
SensorID string `json:"sensorID,omitempty"`
StartDate *util.Timestamp `json:"startDate,omitempty"`
EndDate *util.Timestamp `json:"endDate,omitempty"`
Status MetricStatusEnum `json:"status,omitempty"`
Extra map[string]string `json:"extra,omitempty"`
Data map[string]string `json:"data,omitempty"`
SensorID string `json:"sensorID,omitempty"`
StartDate *util.Timestamp `json:"startDate,omitempty"`
EndDate *util.Timestamp `json:"endDate,omitempty"`
Success bool `json:"success,omitempty"`
// Status MetricStatusEnum `json:"status,omitempty"`
// Extra map[string]string `json:"extra,omitempty"`
Data map[string]string `json:"data,omitempty"`
}
type MetricStatusEnum int