add type to cell interface
parent
48e78fe894
commit
dc95ca2b6e
|
@ -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{
|
||||||
{
|
{
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue