From 2e4df124a5a07c058cf9696ea55a78bfba22376d Mon Sep 17 00:00:00 2001 From: Gaurang Katre Date: Wed, 13 Nov 2024 11:00:43 -0800 Subject: [PATCH] Init for creating the dau_reporting_active_users_aggregates_v1 table --- sql_generators/glean_usage/__init__.py | 2 ++ .../dau_reporting_active_users_aggregates.py | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 sql_generators/glean_usage/dau_reporting_active_users_aggregates.py diff --git a/sql_generators/glean_usage/__init__.py b/sql_generators/glean_usage/__init__.py index 3ca483381da..e42dfbbd8d6 100644 --- a/sql_generators/glean_usage/__init__.py +++ b/sql_generators/glean_usage/__init__.py @@ -21,6 +21,7 @@ dau_reporting_clients_daily, dau_reporting_clients_first_seen, dau_reporting_clients_last_seen, + dau_reporting_active_users_aggregates, event_error_monitoring, event_flow_monitoring, event_monitoring_live, @@ -49,6 +50,7 @@ dau_reporting_clients_daily.DauReportingClientsDailyTable(), dau_reporting_clients_first_seen.DauReportingClientsFirstSeenTable(), dau_reporting_clients_last_seen.DauReportingClientsLastSeenTable(), + dau_reporting_active_users_aggregates.DauReportingActiveUsersAggregatesTable(), ] diff --git a/sql_generators/glean_usage/dau_reporting_active_users_aggregates.py b/sql_generators/glean_usage/dau_reporting_active_users_aggregates.py new file mode 100644 index 00000000000..77ec99ff937 --- /dev/null +++ b/sql_generators/glean_usage/dau_reporting_active_users_aggregates.py @@ -0,0 +1,17 @@ +"""Generating and run dau_reporting_active_users_aggregates queries for Glean apps.""" + +from sql_generators.glean_usage.common import GleanTable + +TARGET_TABLE_ID = "dau_reporting_active_users_aggregates_v1" +PREFIX = "dau_reporting_active_users_aggregates" + + +class DauReportingActiveUsersAggregatesTable(GleanTable): + """Represents generated dau_reporting_active_users_aggregates table.""" + + def __init__(self): + """Initialize dau_reporting_active_users_aggregates table.""" + GleanTable.__init__(self) + self.target_table_id = TARGET_TABLE_ID + self.prefix = PREFIX + self.base_table_name = "dau_reporting_v1"