Explorar o código

fix: alert history list now shows on graphs with manually added annotation events, fixes #10968

Torkel Ödegaard %!s(int64=8) %!d(string=hai) anos
pai
achega
7d0c3ae6a7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      public/app/features/alerting/alert_tab_ctrl.ts

+ 1 - 1
public/app/features/alerting/alert_tab_ctrl.ts

@@ -75,7 +75,7 @@ export class AlertTabCtrl {
 
   getAlertHistory() {
     this.backendSrv
-      .get(`/api/annotations?dashboardId=${this.panelCtrl.dashboard.id}&panelId=${this.panel.id}&limit=50`)
+      .get(`/api/annotations?dashboardId=${this.panelCtrl.dashboard.id}&panelId=${this.panel.id}&limit=50&type=alert`)
       .then(res => {
         this.alertHistory = _.map(res, ah => {
           ah.time = this.dashboardSrv.getCurrent().formatDate(ah.time, 'MMM D, YYYY HH:mm:ss');