Woken up at 3am by false hourly alerts? - here's how to get a good nights sleep | Adobe Higher Education
Skip to main content
Andrew_Wathen_
Community Advisor
Community Advisor
May 6, 2022

Woken up at 3am by false hourly alerts? - here's how to get a good nights sleep

  • May 6, 2022
  • 12 respuestas
  • 4075 visualizaciones

False alerts are bad news.  Apart from being very annoying, they can cause you to lose trust in your alerts, leading you to ignore real problems. Out of the box Adobe does not offer a way to turn off hourly alerts overnight. This can lead to false alerts being sent as volumes drop and the data becomes more volatile.  However, there is an easy method to disable hourly alerts during specific hours...

Imagine a scenario where you wanted to create an alert when 'orders' are below or equal to 1000, but you didn't want this alert to operate between 1:00am and 6:59am.

Set up:

1) Create a 'hit' level segment called 'non-core hours' where 'hour of day' is greater than or equal to '1:00am' AND 'hour of day' is less than or equal to '6:00am'

2) Create a calculated metric called 'Metric for core hours order alert' using an 'if' function:

  • Within 'logic_test' place your 'non-core hours' segment with the 'occurrences' metric nested inside it
  • Within 'value_if_true' add a 'Static Number' with a value of '1001' (Note: this needs to be any value which would not trigger an alert, in this case any number greater than 1000)
  • within 'value_if_false' add the 'Orders' metric (Note: this needs to be the metric you want to alert on during core hours, in this case 'orders')

3) Create an hourly granularity Alert called 'core hours order alert' where the calculated metric called 'Metric for core hours order alert' is below or equal to 1000

How the alert works:

During 1:00am to 6:59am, as long as you get at least 1 occurrence in each hour, the value will always be 1001 so the alert won't trigger.  During the rest of the day it will trigger if orders is equal or below 1000.

NOTE: this method also works for the 'anomaly' based alerting options.  As the calculated metrics returns a static value at the same time every night, anomaly detection does not see it as an anomaly (because it is the same every night!).

12 respuestas

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
May 6, 2022

Great tip! I think this will be useful to a lot of users

Rajneesh_Gautam_
Community Advisor
Community Advisor
June 1, 2022

this is brilliant - thanks @andrew_wathen_  - hope you are doing well!

CurtisYoung1987
Level 3
June 2, 2022

This is such a super helpful tip!!!

VaniBhemarasetty
Adobe Employee
Adobe Employee
June 2, 2022

Great tip! I think this will be useful to a lot of users

Urs_Boller
Community Advisor
Community Advisor
June 24, 2022

I'm using the same setting some years now and I'm really happy how the alert works. Thanks for sharing it as a blog post @andrew_wathen_ - I wonder if we get a setting on the alert itself one day instead of creating a bunch of calculated metrics 😉

New Member
September 8, 2022

Great tip @andrew_wathen_ 

Hopefully adobe makes it easy to select date range/days of week within the UI sometime soon 🙂

February 13, 2025

Esto es de gran utilidad, una pregunta, ¿sabrías decirme como se podría hacer esto mismo pero además añadiendo que la alerta solo funcione de lunes a viernes? 

 

 

Gracias!

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 13, 2025

@antonio83 you can do the same trick as above, except in your segment you can use the Weekday/Weekend dimension.

 

 

Use a similar calculated metric to set a static value for weekends to ensure the data is always above the threshold.

 

 

Google Translation:

Puedes hacer el mismo truco que el anterior, excepto que en tu segmento puedes usar la dimensión Día laborable/Fin de semana.

 

Utilice una métrica calculada similar para establecer un valor estático para los fines de semana y garantizar que los datos estén siempre por encima del umbral.

February 13, 2025

Hola Jennifer,

 

Si, yo probé esto mismo, pero en el gráfico del preview se muestra que la alerta habría saltado el sábado y el domingo, y es justo lo que yo quiero evitar.

Jennifer_Dungan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 13, 2025

Ahh @antonio83,

 

You can't add Weekend/Weekday directly into the Alert... you have to create a segment AND a calculated metric (forcing ALL data on the weekend to be above 52000

 

 

 

 

Adding the dimension directly into the Alert will result in the logic looking for above 52000 and to be a weekday (which on a weekend will fail 100% of the time - hence 24 alerts on those days)

 

The calculated metric forces the "weekend" traffic to be a static value that will not trigger the alert, while allowing the weekdays to send the data as normal:

 

 

 

Google Translation:

No puede agregar fin de semana/día laborable directamente a la alerta... debe crear un segmento Y una métrica calculada (obligando a que TODOS los datos del fin de semana estén por encima de 52000).

 

Agregar la dimensión directamente a la Alerta dará como resultado que la lógica busque por encima de 52000 y sea un día laborable (que en un fin de semana fallará el 100% del tiempo, por lo tanto, 24 alertas en esos días)

 

La métrica calculada obliga al tráfico del "fin de semana" a ser un valor estático que no activará la alerta, al tiempo que permite que los días laborables envíen los datos normalmente: