From dc95ca2b6e7f2ff685bb11f79da9d4eb926c2f13 Mon Sep 17 00:00:00 2001 From: Jade McGough Date: Tue, 6 Dec 2016 02:48:12 -0800 Subject: [PATCH] add type to cell interface --- bolt/internal/internal_test.go | 1 + chronograf.go | 1 + 2 files changed, 2 insertions(+) diff --git a/bolt/internal/internal_test.go b/bolt/internal/internal_test.go index e40b53ac57..880a7baa85 100644 --- a/bolt/internal/internal_test.go +++ b/bolt/internal/internal_test.go @@ -84,6 +84,7 @@ func TestMarshalLayout(t *testing.T) { W: 4, H: 4, I: "anotherid", + Type: "line", Name: "cell1", Queries: []chronograf.Query{ { diff --git a/chronograf.go b/chronograf.go index acf1ee5b4f..1991f73875 100644 --- a/chronograf.go +++ b/chronograf.go @@ -260,6 +260,7 @@ type Cell struct { I string `json:"i"` Name string `json:"name"` Queries []Query `json:"queries"` + Type string `json:"type"` } // Layout is a collection of Cells for visualization