Skip to content

Commit ff48a14

Browse files
authored
Alerting: Add exported getters for PanelKey fields (grafana#72064)
Add getters
1 parent dfb040d commit ff48a14

File tree

1 file changed

+12
-0
lines changed
  • pkg/services/ngalert/state/historian

1 file changed

+12
-0
lines changed

pkg/services/ngalert/state/historian/core.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ func parsePanelKey(rule history_model.RuleMeta, logger log.Logger) *PanelKey {
7474
return nil
7575
}
7676

77+
func (p PanelKey) OrgID() int64 {
78+
return p.orgID
79+
}
80+
81+
func (p PanelKey) DashUID() string {
82+
return p.dashUID
83+
}
84+
85+
func (p PanelKey) PanelID() int64 {
86+
return p.panelID
87+
}
88+
7789
func mergeLabels(base, into data.Labels) data.Labels {
7890
for k, v := range into {
7991
base[k] = v

0 commit comments

Comments
 (0)