class ComponentMetricSummary {

    @VisibleForTesting
    static long aggregateAcked(TopologyTimeSeriesMetrics.TimeSeriesComponentMetric metrics) {
        return metrics.getMisc().getOrDefault(METRIC_NAME_ACK_COUNT, Collections.emptyMap())
                .values().stream().mapToLong(Double::longValue).sum();
    }

    public  ComponentMetricSummary(Long emitted, Long acked, Long failed, Double latency, Double completeLatency,
                                  Double processTime, Double executeTime,
                                  Long prevEmitted, Long prevAcked, Long prevFailed, Double prevLatency,
                                  Double prevCompleteLatency, Double prevProcessTime, Double prevExecuteTime);

}