Exemple #1
0
def __report_maintainer_factory(
        days_to_lookup: timedelta) -> BackfillReportMaintainer:
    alerts_picker = AlertsPicker(
        max_alerts=5,
        max_improvements=2,
        platforms_of_interest=(
            'windows10',
            'linux',
            'osx',
            'android',
            'windows7',
        ),  # windows7 lost it's relevance due to lower alert rate on this platform
    )
    backfill_context_fetcher = IdentifyAlertRetriggerables(
        max_data_points=5, time_interval=days_to_lookup)
    return BackfillReportMaintainer(alerts_picker, backfill_context_fetcher)