use of com.github.ambry.server.storagestats.AggregatedAccountStorageStats in project ambry by linkedin.
the class AccountStatsMySqlStore method queryAggregatedAccountStorageStatsByClusterName.
@Override
public AggregatedAccountStorageStats queryAggregatedAccountStorageStatsByClusterName(String clusterName) throws Exception {
long startTimeMs = System.currentTimeMillis();
AggregatedAccountStorageStats aggregatedAccountStorageStats = new AggregatedAccountStorageStats(null);
aggregatedAccountReportsDao.queryContainerUsageForCluster(clusterName, (accountId, containerStats) -> {
aggregatedAccountStorageStats.addContainerStorageStats(accountId, containerStats);
});
storeMetrics.queryAggregatedStatsTimeMs.update(System.currentTimeMillis() - startTimeMs);
return aggregatedAccountStorageStats;
}
Aggregations