summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 414ad04)
raw | patch | inline | side by side (parent: 414ad04)
author | Sebastian Harl <sh@tokkee.org> | |
Fri, 19 Sep 2014 23:23:23 +0000 (16:23 -0700) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Fri, 19 Sep 2014 23:23:23 +0000 (16:23 -0700) |
These are floating point values encoded as JSON string.
sysdb/store.go | patch | blob | history |
diff --git a/sysdb/store.go b/sysdb/store.go
index 4a71428386aaea69bee4d7a7c834a2ca5484ea86..6f082f32ba9050d3bfc610d79028bf55f643347d 100644 (file)
--- a/sysdb/store.go
+++ b/sysdb/store.go
// A DataPoint describes a datum at a certain point of time.
type DataPoint struct {
Timestamp Time `json:"timestamp"`
- Value float64 `json:"value"`
+ Value float64 `json:"value,string"`
}
// A Timeseries describes a sequence of data-points.