Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Datapoints ¶
type Datapoints []Datapoint
Datapoints is a JSON serializeable list of values for the series.
type Series ¶
type Series struct { Start time.Time `json:"start"` End time.Time `json:"end"` Tags Tags `json:"tags"` Datapoints Datapoints `json:"datapoints"` // contains filtered or unexported fields }
Series is a flat JSON serieazeable representation of the series.
type Value ¶
type Value float64
Value is a JSON serizlizable float64 that allows NaNs.
func (Value) MarshalJSON ¶
MarshalJSON returns state as the JSON encoding of a Value.
func (*Value) UnmarshalJSON ¶
UnmarshalJSON unmarshals JSON-encoded data into a Value.
Click to show internal directories.
Click to hide internal directories.