You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{# when there is an anomaly we would want to use the last value of the metric (lag), otherwise visually the expectations would look out of bounds #}
68
86
case
@@ -71,15 +89,15 @@ case when
71
89
when is_anomalous = TRUE and'{{ test_configuration.anomaly_direction }}'!='spike' then
72
90
{{ elementary.lag('min_metric_value') }} over (partition by full_table_name, column_name, metric_name, dimension, dimension_value, bucket_seasonality order by bucket_end)
73
91
when '{{ test_configuration.anomaly_direction }}'='spike' then metric_value
74
-
else min_metric_value
92
+
else min_metric_value
75
93
end as min_value,
76
94
case
77
95
when is_anomalous = TRUE and'{{ test_configuration.anomaly_direction }}'='drop' then
78
96
{{ elementary.lag('metric_value') }} over (partition by full_table_name, column_name, metric_name, dimension, dimension_value, bucket_seasonality order by bucket_end)
79
97
when is_anomalous = TRUE and'{{ test_configuration.anomaly_direction }}'!='drop' then
80
98
{{ elementary.lag('max_metric_value') }} over (partition by full_table_name, column_name, metric_name, dimension, dimension_value, bucket_seasonality order by bucket_end)
81
99
when '{{ test_configuration.anomaly_direction }}'='drop' then metric_value
0 commit comments