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 { type Metric struct {
SensorID string `json:"sensorID,omitempty"` SensorID string `json:"sensorID,omitempty"`
StartDate *util.Timestamp `json:"startDate,omitempty"` StartDate *util.Timestamp `json:"startDate,omitempty"`
EndDate *util.Timestamp `json:"endDate,omitempty"` EndDate *util.Timestamp `json:"endDate,omitempty"`
Status MetricStatusEnum `json:"status,omitempty"` Success bool `json:"success,omitempty"`
Extra map[string]string `json:"extra,omitempty"` // Status MetricStatusEnum `json:"status,omitempty"`
Data map[string]string `json:"data,omitempty"` // Extra map[string]string `json:"extra,omitempty"`
Data map[string]string `json:"data,omitempty"`
} }
type MetricStatusEnum int type MetricStatusEnum int