# metric event (Event duration)

**URL:** <https://community.dynatrace.com/t/metric-event-event-duration/43277>\
**Category:** Alerting\
**Tags:** problem-detection, problem-notification, anomaly-detection\
**Created:** [December 19, 2023, 7:39am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277 "2023-12-19T07:39:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![IslamEsmail](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islamesmail/32/30725_2.png) [@IslamEsmail](https://community.dynatrace.com/u/IslamEsmail)\
**Post date:** [December 19, 2023, 7:39am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277/1 "2023-12-19T07:39:53Z")

</div>

Hi All

i have simple case that when some request repeated by certain value per hour ( 100 per hour) send alert

am already done with the calc metric, and almost with the metric event, but i have some confuses about the part of event duration, what shall i put in it

Violating samples  
Sliding window  
Dealerting samples

appricatie your feedback

Regards,

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [December 19, 2023, 7:47am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277/2 "2023-12-19T07:47:53Z")

</div>

Hello Eslam,

you can use duration parameters as following, knowing that Dynatrace get the sample every 1 minute for most of metrics:

Violating samples : **Number of times that the threshold is violated.**  
Sliding window : **The duration that you will consider the violating samples in.**  
Dealerting samples : **how many time needed below threshold to close the problem.**

Please let me know if you need further clarification.

Thanks,

Islam

---

<div class="post-metadata">

**Author:** ![IslamEsmail](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islamesmail/32/30725_2.png) [@IslamEsmail](https://community.dynatrace.com/u/IslamEsmail)\
**Post date:** [December 19, 2023, 7:58am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277/3 "2023-12-19T07:58:37Z")

</div>

Hi Islam

Thanks for you replay

so based on what you mentioned  
&nbsp;i have to devide the 100 request / 60 min to get the right value to use in&nbsp;Violating samples

and at the Sliding window i will put 60 as a min

and at the&nbsp;Dealerting samples i will bet the normal expected requests to consider it&nbsp; normal per min

if you can give me number for examples it will be great as i&nbsp; want to consider it problem if the number of requests reach 100 per hour

Regards,

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [December 19, 2023, 8:37am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277/4 "2023-12-19T08:37:20Z")

</div>

You can do it as below:

Threshold : **100**

Violating samples :&nbsp; **5**  
Sliding window :&nbsp; **60**  
Dealerting samples :&nbsp; **5**

---

<div class="post-metadata">

**Author:** ![IslamEsmail](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islamesmail/32/30725_2.png) [@IslamEsmail](https://community.dynatrace.com/u/IslamEsmail)\
**Post date:** [December 19, 2023, 8:50am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277/5 "2023-12-19T08:50:35Z")

</div>

many thanks. i will try it

---

<div class="post-metadata">

**Author:** ![IslamEsmail](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islamesmail/32/30725_2.png) [@IslamEsmail](https://community.dynatrace.com/u/IslamEsmail)\
**Post date:** [December 19, 2023, 9:02am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277/6 "2023-12-19T09:02:17Z")

</div>

if i want if once the threshold reach make a problem i have to make&nbsp;Violating samples 1, right?

---

<div class="post-metadata">

**Author:** ![Islam\_Zedan](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/islam_zedan/32/31999_2.png) [@Islam\_Zedan](https://community.dynatrace.com/u/Islam_Zedan)\
**Post date:** [December 19, 2023, 9:03am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277/7 "2023-12-19T09:03:21Z")

</div>

Yes, Correct

---

<div class="post-metadata">

**Author:** ![sundarv1](https://avatars.discourse-cdn.com/v4/letter/s/65b543/32.png) [@sundarv1](https://community.dynatrace.com/u/sundarv1)\
**Post date:** [April 17, 2025, 1:49am UTC](https://community.dynatrace.com/t/metric-event-event-duration/43277/8 "2025-04-17T01:49:35Z")

</div>

Hi Isam - one more help.

Below is enviroment level settings for violating samples(for 10 seconds sample)

Violating Sample - 90, Evaluation Window - 90 ,&nbsp;Dealerting samples-90 ,&nbsp;Evaluation window size for dealerting samples - 30

How do i set the above in the metric event as it is 1 min sample used
