# Alerting for function that runs once a day

**URL:** <https://community.dynatrace.com/t/alerting-for-function-that-runs-once-a-day/52700>\
**Category:** Alerting\
**Tags:** problem-detection, anomaly-detection\
**Created:** [July 29, 2025, 3:05pm UTC](https://community.dynatrace.com/t/alerting-for-function-that-runs-once-a-day/52700 "2025-07-29T15:05:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dylanw](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@dylanw](https://community.dynatrace.com/u/dylanw)\
**Post date:** [July 29, 2025, 3:05pm UTC](https://community.dynatrace.com/t/alerting-for-function-that-runs-once-a-day/52700/1 "2025-07-29T15:05:53Z")

</div>

I have lambda that runs once everyday, I have the metric for invocations coming though but want to create a problem if the lambda has not been invoked in the past 24 hours. As the Davis anomaly detector has a maximum of a 60 minute sliding window I am unable to get it to measure for a complete day.&nbsp; I am wondering if there is any other way to create a problem that monitors a 24 hour period or if there is something else in Davis anomaly detector that can have a wider sliding window of 1440 minutes (one day)

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [July 30, 2025, 7:47am UTC](https://community.dynatrace.com/t/alerting-for-function-that-runs-once-a-day/52700/2 "2025-07-30T07:47:57Z")

</div>

Hi,

I had just raised [this product idea](https://community.dynatrace.com/post/276737). Maybe it can help to your use case.

Another option can be maintenance window if you know when your funcion is executed more or less, something as it is executed everyday at 12:00am…

Best regards

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [July 30, 2025, 11:04am UTC](https://community.dynatrace.com/t/alerting-for-function-that-runs-once-a-day/52700/3 "2025-07-30T11:04:49Z")

</div>

There are multiple options already.

- **Site Reliability Guardian** to check (metric/log/event … whatever you need) with a **Simple workflow** to trigger the SRG execution and another Simple workflow for notification on the SRG results bizevents (SRG results) - this would be my preferred choice, very simple to configure and no additional costs involved.
- **Workflow** with cron scheduling to check the data and create an event.

For Managed customers who don’t have the options above, I recommend a custom ActiveGate extension in Python, which would perform the required checks (by accessing the Dynatrace API) and send events/logs/metrics (as needed). Not a common usage for ActiveGate extensions, but it allows you to execute code and can be run easily on the Dynatrace infrastructure. Requires some python and extensions development knowledge, but it’s not difficult.
