From 68bd714dd03b85ae5517a3ec6d854338d87eea41 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Thu, 18 Sep 2014 20:25:59 -0700 Subject: [PATCH] Add the 'Backends' field to all store object types. --- sysdb/store.go | 4 ++++ 1 file changed, 4 insertions(+) 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"` -- 2.30.2