class StormTopologyTimeSeriesMetricsImpl implements TopologyTimeSeriesMetrics {

    @Override
    public Map<Long, Double> getCompleteLatency(TopologyLayout topology, Component component, long from, long to, String asUser) {
        String stormTopologyName = StormTopologyUtil.findOrGenerateTopologyName(client, topology.getId(), topology.getName(), asUser);
        String stormComponentName = getComponentName(component);

        return queryComponentMetrics(stormTopologyName, stormComponentName, StormMappedMetric.completeLatency, from, to);
    }

    public  StormTopologyTimeSeriesMetricsImpl(StormRestAPIClient client);

}