From 542715d0afac228e6b53e54b1f74e6f555d00606 Mon Sep 17 00:00:00 2001 From: Mike Williams <102263964+mikewilli@users.noreply.github.com> Date: Thu, 31 Oct 2024 12:33:34 -0400 Subject: [PATCH] downsample treatment-a branch (#662) --- ...d-mailto-handling-with-os-integration.toml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 jetstream/improved-mailto-handling-with-os-integration.toml diff --git a/jetstream/improved-mailto-handling-with-os-integration.toml b/jetstream/improved-mailto-handling-with-os-integration.toml new file mode 100644 index 00000000..542f5e84 --- /dev/null +++ b/jetstream/improved-mailto-handling-with-os-integration.toml @@ -0,0 +1,25 @@ +[experiment] + +enrollments_query = """( +SELECT + e.client_id AS analysis_id, + `mozfun.map.get_key`(e.event_map_values, 'branch') + AS branch, + MIN(e.submission_date) AS enrollment_date, + COUNT(e.submission_date) AS num_enrollment_events +FROM + `moz-fx-data-shared-prod.telemetry.events` e +WHERE + e.event_category = 'normandy' + AND e.event_method = 'enroll' + AND e.submission_date + BETWEEN '2024-10-07' AND '2024-10-25' + AND e.event_string_value = 'improved-mailto-handling-with-os-integration' + + AND ( + (`mozfun.map.get_key`(e.event_map_values, 'branch') = 'treatment-a' AND e.sample_id < 11) + OR + (`mozfun.map.get_key`(e.event_map_values, 'branch') != 'treatment-a') + ) +GROUP BY e.client_id, branch +)"""