@Override
  public AggregatedPartitionClassStorageStats queryAggregatedPartitionClassStorageStatsByClusterName(String clusterName)
      throws SQLException {
    long startTimeMs = System.currentTimeMillis();
    AggregatedPartitionClassStorageStats aggregatedPartitionClassStorageStats =
        new AggregatedPartitionClassStorageStats(null);
    AtomicLong timestamp = new AtomicLong(0);
    partitionClassReportsDao.queryAggregatedPartitionClassReport(clusterName,
        (partitionClassName, accountId, containerStats, updatedAt) -> {
          aggregatedPartitionClassStorageStats.addContainerStorageStats(partitionClassName, accountId, containerStats);
          timestamp.set(Math.max(timestamp.get(), updatedAt));
        });
    storeMetrics.queryAggregatedPartitionClassStatsTimeMs.update(System.currentTimeMillis() - startTimeMs);
    return aggregatedPartitionClassStorageStats;
  }
Copy the row of table {@link AggregatedAccountReportsDao#AGGREGATED_ACCOUNT_REPORTS_TABLE} to {@link AggregatedAccountReportsDao#MONTHLY_AGGREGATED_ACCOUNT_REPORTS_TABLE}
and update the {@code monthValue} in table {@link AggregatedAccountReportsDao#AGGREGATED_ACCOUNT_REPORTS_MONTH_TABLE}.
@param monthValue The month value.
@throws Exception
ambry-mysql/src/main/java/com/github/ambry/accountstats/AccountStatsMySqlStore.java