Skip to content

Commit

Permalink
Init for creating the dau_reporting_active_users_aggregates_v1 table
Browse files Browse the repository at this point in the history
  • Loading branch information
gkatre committed Nov 13, 2024
1 parent e246ed9 commit 2e4df12
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql_generators/glean_usage/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(),
]


Expand Down
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit 2e4df12

Please sign in to comment.