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 serializable representation of the series.
type Tag ¶
type Tag [2]string
Tag is a simple JSON serializable representation of a tag.
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.