From: Sebastian Harl Date: Fri, 19 Sep 2014 05:12:37 +0000 (-0700) Subject: store: Fully annotate (for JSON) the time-series type. X-Git-Url: https://git.tokkee.org/?p=sysdb%2Fgo.git;a=commitdiff_plain;h=37f82acfc6dfc00b16b6886cf533efe6a18fb001 store: Fully annotate (for JSON) the time-series type. --- diff --git a/sysdb/store.go b/sysdb/store.go index 4e78d44..4a71428 100644 --- a/sysdb/store.go +++ b/sysdb/store.go @@ -245,9 +245,9 @@ type DataPoint struct { // A Timeseries describes a sequence of data-points. type Timeseries struct { - Start Time `json:"start"` - End Time `json:"end"` - Data map[string][]DataPoint + Start Time `json:"start"` + End Time `json:"end"` + Data map[string][]DataPoint `json:"data"` } // vim: set tw=78 sw=4 sw=4 noexpandtab :