mirror of
https://github.com/minio/minio.git
synced 2025-11-07 12:52:58 -05:00
feat: maintain in-memory tier stats for the last 24hrs (#13782)
This commit is contained in:
committed by
GitHub
parent
f4e373e0d2
commit
d2e5f01542
@@ -227,7 +227,11 @@ func (api adminAPIHandlers) TierStatsHandler(w http.ResponseWriter, r *http.Requ
|
||||
return
|
||||
}
|
||||
|
||||
data, err := json.Marshal(dui.tierStats())
|
||||
tierStats := dui.tierStats()
|
||||
dailyStats := globalNotificationSys.GetLastDayTierStats(ctx)
|
||||
tierStats = dailyStats.addToTierInfo(tierStats)
|
||||
|
||||
data, err := json.Marshal(tierStats)
|
||||
if err != nil {
|
||||
writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user