コード例 #1
0
    (copy_deduplicate_all >> [
        org_mozilla_firefox_baseline_daily, org_mozilla_firefox_metrics_daily
    ] >> org_mozilla_firefox_clients_last_seen >> nondesktop_aggregate_tasks)

    (copy_deduplicate_all >> [
        vrbrowser_baseline_daily, vrbrowser_metrics_daily
    ] >> vrbrowser_clients_daily >> vrbrowser_clients_last_seen >>
     nondesktop_aggregate_tasks)

    # Nondesktop forecasts.

    simpleprophet_forecasts_mobile = simpleprophet_forecast(
        task_id="simpleprophet_forecasts_mobile",
        datasource="mobile",
        project_id='moz-fx-data-shared-prod',
        dataset_id='telemetry_derived',
        table_id='simpleprophet_forecasts_mobile_v1',
        owner="*****@*****.**",
        email=["*****@*****.**", "*****@*****.**"],
    )

    firefox_nondesktop_exact_mau28 >> simpleprophet_forecasts_mobile

    # Mobile search queries and dependency chain.

    mobile_search_clients_daily = bigquery_etl_query(
        task_id='mobile_search_clients_daily',
        project_id='moz-fx-data-shared-prod',
        dataset_id="search_derived",
        destination_table='mobile_search_clients_daily_v1',
        email=['*****@*****.**', '*****@*****.**'],
コード例 #2
0
    fxa_users_last_seen >> firefox_accounts_exact_mau28_raw

    smoot_usage_fxa_v2 = bigquery_etl_query(
        task_id='smoot_usage_fxa_v2',
        project_id='moz-fx-data-shared-prod',
        destination_table='smoot_usage_fxa_v2',
        dataset_id='telemetry_derived',
    )

    fxa_users_last_seen >> smoot_usage_fxa_v2

    simpleprophet_forecasts_fxa = simpleprophet_forecast(
        task_id="fxa_simpleprophet_forecasts",
        datasource="fxa",
        project_id='moz-fx-data-shared-prod',
        dataset_id='telemetry_derived',
        table_id='simpleprophet_forecasts_fxa_v1',
        email=["*****@*****.**", "*****@*****.**"],
    )

    simpleprophet_forecasts_fxa << firefox_accounts_exact_mau28_raw


    # Per-user-per-service tables.

    fxa_users_services_daily = bigquery_etl_query(
        task_id='fxa_users_services_daily',
        project_id='moz-fx-data-shared-prod',
        destination_table='fxa_users_services_daily_v1',
        dataset_id='telemetry_derived',
    )