|
|
|
@@ -195,7 +195,6 @@ func GetAllCloudbrainsTrend(ctx *context.Context) { |
|
|
|
} |
|
|
|
|
|
|
|
func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) { |
|
|
|
|
|
|
|
recordBeginTime, err := getBrainRecordBeginTime() |
|
|
|
if err != nil { |
|
|
|
log.Error("Can not get record begin time", err) |
|
|
|
@@ -216,7 +215,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) { |
|
|
|
if pageSize <= 0 { |
|
|
|
pageSize = DEFAULT_PAGE_SIZE |
|
|
|
} |
|
|
|
|
|
|
|
debugOneCount, err := models.GenerateDebugOneCount(beginTime, endTime) |
|
|
|
if err != nil { |
|
|
|
log.Error("Can not query debugOneCount.", err) |
|
|
|
@@ -253,7 +251,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) { |
|
|
|
ctx.Error(http.StatusBadRequest, ctx.Tr("inferenceTwoCount_get_error")) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
cloudbrainsPeriodData := CloudbrainsPeriodData{ |
|
|
|
DebugOneCount: debugOneCount, |
|
|
|
BenchmarkOneCount: benchmarkOneCount, |
|
|
|
@@ -271,7 +268,6 @@ func GetAllCloudbrainsPeriodStatistics(ctx *context.Context) { |
|
|
|
fmt.Printf("testtime is:%s", testtime) |
|
|
|
|
|
|
|
ctx.JSON(http.StatusOK, cloudbrainsPeriodData) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
func getCloudbrainCount(beginTime time.Time, endTime time.Time) (int64, int64, int64, int64, int64, int64, int64, int64, int64, error) { |
|
|
|
|