From 3b286ecce54eee155768d9f193a081c9966afe95 Mon Sep 17 00:00:00 2001 From: Courtney Holcomb Date: Tue, 25 Jun 2024 11:09:53 -0700 Subject: [PATCH] Add measures to test cumulative metrics --- tests/functional/metrics/fixtures.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/functional/metrics/fixtures.py b/tests/functional/metrics/fixtures.py index 3a08b47e159..31a7161fa16 100644 --- a/tests/functional/metrics/fixtures.py +++ b/tests/functional/metrics/fixtures.py @@ -751,6 +751,7 @@ label: Rolling sum of visits over the last 7 days type: cumulative type_params: + measure: num_visits cumulative_type_params: window: 7 days period_agg: average @@ -758,12 +759,14 @@ label: Rolling total of orders (all time) type: cumulative type_params: + measure: num_orders cumulative_type_params: period_agg: last - name: orders_ytd label: Total orders since the start of the year type: cumulative type_params: + measure: num_orders cumulative_type_params: grain_to_date: year period_agg: first @@ -771,16 +774,19 @@ label: Rolling count of orders over the last quarter type: cumulative type_params: + measure: num_orders window: 1 quarter - name: visits_mtd label: Count of visits since start of month type: cumulative type_params: + measure: num_visits grain_to_date: month - name: monthly_visits label: Rolling sum of visits over the last month type: cumulative type_params: + measure: num_visits window: 1 month cumulative_type_params: period_agg: last