diff --git a/panel.go b/panel.go index 83bf4119..260027c3 100644 --- a/panel.go +++ b/panel.go @@ -34,6 +34,7 @@ const ( PluginlistType AlertlistType SinglestatType + RowType ) const MixedSource = "-- Mixed --" @@ -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