Jelajahi Sumber

优化接口错误分布与接口列表对齐问题,统一1小时

路佳明 2 minggu lalu
induk
melakukan
47e5deeae3
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/observe/service/event.go

+ 1 - 1
app/observe/service/event.go

@@ -122,7 +122,7 @@ func (e *Event) EventStatistic(c *dto.EventStatisticReq, result *[]dto.EventStat
 				return err
 			}
 			return e.ChOrm.Debug().Model(&models.TracesURL{}).
-				Select("toStartOfFiveMinutes(Timestamp) as StartTime, count() as Total").
+				Select("toStartOfHour(Timestamp) as StartTime, count() as Total").
 				Where("Route=? and Method=? and ServiceName=? and AppAlias=?", um.Url, um.Method, um.ServiceName, um.AppAlias).
 				Where("Timestamp>=? and Timestamp<?", c.StartTime, c.EndTime).
 				Where("StatusCode>=400").