from typing import Dict from client.clients.apollo_api.utils import get_charts_last_updated_as_dict, get_charts_monitoring from client.clients.dsp_api.utils import (get_chart_data_health_status, get_charts_ids_to_process, get_charts_last_update_as_dict) from constants.common import DSP def get_charts_to_process(dsp: DSP) -> Dict[str, Dict[str, str]]: """Get Dict of updated chart_ids that need to be processed Args: dsp: DSP Returns: Dict of charts that should be processed """ delphi_charts_data_health = get_chart_data_health_status(dsp) delphi_charts_data_health_as_dict = get_charts_last_update_as_dict(dsp, delphi_charts_data_health) apollo_charts_monitoring = get_charts_monitoring(dsp) apollo_charts_monitoring_as_dict = get_charts_last_updated_as_dict(apollo_charts_monitoring) return get_charts_ids_to_process(delphi_charts_data_health_as_dict, apollo_charts_monitoring_as_dict)