Skip to content

Commit

Permalink
added metrics to analysis periods
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkberry committed Nov 19, 2024
1 parent 4c65dbd commit 23e5fb8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
18 changes: 17 additions & 1 deletion jetstream/pin-email-and-calendar-tabs-early-day-user.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ description = "Usage metrics for tab pinning."

[metrics]

weekly = [
'any_pinned_tab_rate',
'more_than_one_pinned_tab_rate',
'tab_pinned_event_count',
'concurrent_pinned_tab_count',
'tab_reload_count',
]

overall = [
'any_pinned_tab_rate',
'more_than_one_pinned_tab_rate',
'tab_pinned_event_count',
'concurrent_pinned_tab_count',
'tab_reload_count',
]

[metrics.any_pinned_tab_rate]
select_expression = """
CAST(COALESCE(SUM(payload.processes.parent.scalars.browser_engagement_tab_pinned_event_count), 0) > 0 AS INT64)
Expand Down Expand Up @@ -35,4 +51,4 @@ type = "scalar"

# The count of tab reload events by the user after unloaded -- a proxy for returning to pinned tabs.
[metrics.tab_reload_count.statistics.bootstrap_mean]
[metrics.tab_reload_count.statistics.deciles]
[metrics.tab_reload_count.statistics.deciles]
17 changes: 16 additions & 1 deletion jetstream/pin-email-and-calendar-tabs-existing-user.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@ description = "Usage metrics for tab pinning."

[metrics]

weekly = [
'any_pinned_tab_rate',
'more_than_one_pinned_tab_rate',
'tab_pinned_event_count',
'concurrent_pinned_tab_count',
'tab_reload_count',
]

overall = [
'any_pinned_tab_rate',
'more_than_one_pinned_tab_rate',
'tab_pinned_event_count',
'concurrent_pinned_tab_count',
'tab_reload_count',
]

[metrics.any_pinned_tab_rate]
select_expression = """
CAST(COALESCE(SUM(payload.processes.parent.scalars.browser_engagement_tab_pinned_event_count), 0) > 0 AS INT64)
Expand Down Expand Up @@ -36,4 +52,3 @@ type = "scalar"
# The count of tab reload events by the user after unloaded -- a proxy for returning to pinned tabs.
[metrics.tab_reload_count.statistics.bootstrap_mean]
[metrics.tab_reload_count.statistics.deciles]

0 comments on commit 23e5fb8

Please sign in to comment.