From 91ef534fcf4b96e64f6792504a11c36353aa3459 Mon Sep 17 00:00:00 2001 From: Tan Weiu Cheng Date: Mon, 27 Jun 2022 10:53:42 +0800 Subject: [PATCH 1/2] Add panel_id to alert --- panel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/panel.go b/panel.go index 9913708..0a68e19 100644 --- a/panel.go +++ b/panel.go @@ -131,6 +131,7 @@ type ( Notifications []AlertNotification `json:"notifications,omitempty"` Message string `json:"message,omitempty"` For string `json:"for,omitempty"` + PanelID *uint `json:"panel_id,omitempty"` } GraphPanel struct { AliasColors interface{} `json:"aliasColors"` // XXX From 7c555ffd2004ed969b49a288636ab80a07c2631d Mon Sep 17 00:00:00 2001 From: Tan Weiu Cheng Date: Mon, 27 Jun 2022 10:58:34 +0800 Subject: [PATCH 2/2] Fix indentation --- panel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panel.go b/panel.go index 0a68e19..8252cd3 100644 --- a/panel.go +++ b/panel.go @@ -131,7 +131,7 @@ type ( Notifications []AlertNotification `json:"notifications,omitempty"` Message string `json:"message,omitempty"` For string `json:"for,omitempty"` - PanelID *uint `json:"panel_id,omitempty"` + PanelID *uint `json:"panel_id,omitempty"` } GraphPanel struct { AliasColors interface{} `json:"aliasColors"` // XXX