Skip to content

Commit

Permalink
Merge pull request #50 from fredwangwang/original-root
Browse files Browse the repository at this point in the history
add Row type
  • Loading branch information
grafov committed Dec 14, 2019
2 parents 7071802 + 048b48b commit 690a0c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions panel.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const (
PluginlistType
AlertlistType
SinglestatType
RowType
)

const MixedSource = "-- Mixed --"
Expand Down Expand Up @@ -757,6 +758,12 @@ func (p *Panel) MarshalJSON() ([]byte, error) {
AlertlistPanel
}{p.CommonPanel, *p.AlertlistPanel}
return json.Marshal(outAlertlist)
case RowType:
var outRow = struct {
CommonPanel
RowPanel
}{p.CommonPanel, *p.RowPanel}
return json.Marshal(outRow)
case CustomType:
var outCustom = struct {
CommonPanel
Expand Down

0 comments on commit 690a0c6

Please sign in to comment.