Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

How to exclude weekends from alerts?

vickyg28253246
Level 4
Level 4

I have seen this question dated back to 2015, and at the time the answer was "you can't".

I am hoping now with the intelligent alerts we can.

I tried to use the "Weekday/weekend" dimension, but not quite sure it works. Is there an obvious solution I am missing?

Thank you

1 Accepted Solution
ursboller
Correct answer by
Community Advisor
Community Advisor

still "no".... sorry.

what I have done is a "workaround" with a calculated metric and a segment for only "weekday" traffic.

it looks something like this:

{if (segment: weekday => "occurencies") greater than  (static number: "0") then [your-metric] else (static number: "0"}

the calculated metric will only return [your-metric] for weekdays, weekends are always 0. this is just to hope that the anomality detection will recognise the 0 as "no anomality" and therefore do not send an alert on weekends...

View solution in original post

3 Replies
ursboller
Correct answer by
Community Advisor
Community Advisor

still "no".... sorry.

what I have done is a "workaround" with a calculated metric and a segment for only "weekday" traffic.

it looks something like this:

{if (segment: weekday => "occurencies") greater than  (static number: "0") then [your-metric] else (static number: "0"}

the calculated metric will only return [your-metric] for weekdays, weekends are always 0. this is just to hope that the anomality detection will recognise the 0 as "no anomality" and therefore do not send an alert on weekends...

View solution in original post

vickyg28253246
Level 4
Level 4

Thanks Ursboller,

Makes sense logically. I actually do see a dimension "Weekday/Weekend" which has 2 values: "weekend" and "weekday".

If I apply "weekday" as a segment, it automatically updates any metric for the weekend to 0.

I have implemented this segment as a filter for my traffic change alert and am waiting to see if I get an alert this weekend.

ursboller
Community Advisor
Community Advisor

I suggest you setup 2 alerts, one alert with segment applied, one without. this way you can see the difference...