add type to cell interface

pull/10616/head
Jade McGough 2016-12-06 02:48:12 -08:00
parent 48e78fe894
commit dc95ca2b6e
2 changed files with 2 additions and 0 deletions

View File

@ -84,6 +84,7 @@ func TestMarshalLayout(t *testing.T) {
W: 4, W: 4,
H: 4, H: 4,
I: "anotherid", I: "anotherid",
Type: "line",
Name: "cell1", Name: "cell1",
Queries: []chronograf.Query{ Queries: []chronograf.Query{
{ {

View File

@ -260,6 +260,7 @@ type Cell struct {
I string `json:"i"` I string `json:"i"`
Name string `json:"name"` Name string `json:"name"`
Queries []Query `json:"queries"` Queries []Query `json:"queries"`
Type string `json:"type"`
} }
// Layout is a collection of Cells for visualization // Layout is a collection of Cells for visualization