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