From: Sebastian Harl Date: Fri, 19 Sep 2014 03:25:59 +0000 (-0700) Subject: Add the 'Backends' field to all store object types. X-Git-Url: https://git.tokkee.org/?p=sysdb%2Fgo.git;a=commitdiff_plain;h=68bd714dd03b85ae5517a3ec6d854338d87eea41 Add the 'Backends' field to all store object types. --- diff --git a/sysdb/store.go b/sysdb/store.go index 9d90497..4e78d44 100644 --- a/sysdb/store.go +++ b/sysdb/store.go @@ -205,6 +205,7 @@ type Attribute struct { Value string `json:"value"` LastUpdate Time `json:"last_update"` UpdateInterval Duration `json:"update_interval"` + Backends []string `json:"backends"` } // A Metric describes a metric known to SysDB. @@ -212,6 +213,7 @@ type Metric struct { Name string `json:"name"` LastUpdate Time `json:"last_update"` UpdateInterval Duration `json:"update_interval"` + Backends []string `json:"backends"` Attributes []Attribute `json:"attributes"` } @@ -220,6 +222,7 @@ type Service struct { Name string `json:"name"` LastUpdate Time `json:"last_update"` UpdateInterval Duration `json:"update_interval"` + Backends []string `json:"backends"` Attributes []Attribute `json:"attributes"` } @@ -228,6 +231,7 @@ type Host struct { Name string `json:"name"` LastUpdate Time `json:"last_update"` UpdateInterval Duration `json:"update_interval"` + Backends []string `json:"backends"` Attributes []Attribute `json:"attributes"` Metrics []Metric `json:"metrics"` Services []Service `json:"services"`