def __init__(self): """Initialize baseline_clients_first_seen table.""" GleanTable.__init__(self) self.target_table_id = TARGET_TABLE_ID self.prefix = PREFIX self.no_init = False self.custom_render_kwargs = {}
def __init__(self): """Initialize baseline_clients_daily table.""" GleanTable.__init__(self) self.target_table_id = BASELINE_DAILY_TABLE_ID self.prefix = PREFIX self.custom_render_kwargs = {} self.no_init = False
def __init__(self): """Initialize baseline_clients_last_seen table.""" GleanTable.__init__(self) self.target_table_id = TARGET_TABLE_ID self.prefix = PREFIX self.custom_render_kwargs = dict(usage_types=USAGE_TYPES, ) self.no_init = False
def __init__(self): """Initialize clients_last_seen_joined table.""" GleanTable.__init__(self) self.target_table_id = TARGET_TABLE_ID self.no_init = True self.per_app_id_enabled = False self.cross_channel_template = None
def __init__(self): """Initialize events_unnested table.""" GleanTable.__init__(self) self.target_table_id = TARGET_TABLE_ID self.prefix = PREFIX self.no_init = True self.per_app_id_enabled = False self.cross_channel_template = "cross_channel_events_unnested.view.sql"
def __init__(self): """Initialize metrics_clients_last_seen table.""" GleanTable.__init__(self) self.target_table_id = TARGET_TABLE_ID self.no_init = True self.per_app_id_enabled = False self.cross_channel_template = None with open( Path(os.path.dirname(__file__)) / "templates" / "metrics_templating.yaml", "r", ) as f: metrics_config = yaml.safe_load(f) or {} self.custom_render_kwargs = {"metrics": metrics_config}
def generate_per_app_id(self, project_id, baseline_table, output_dir=None): """Generate per-app_id datasets.""" self.custom_render_kwargs = dict( # do not match on org_mozilla_firefoxreality fennec_id=any( (f"{app_id}_stable" in baseline_table) for app_id in [ "org_mozilla_firefox", "org_mozilla_fenix_nightly", "org_mozilla_fennec_aurora", "org_mozilla_firefox_beta", "org_mozilla_fenix", ] ) ) GleanTable.generate_per_app_id( self, project_id, baseline_table, output_dir=output_dir, )
def __init__(self): """Initialize events_unnested table.""" GleanTable.__init__(self) self.no_init = True self.per_app_id_enabled = False self.per_app_enabled = True