# Notification based on a user action name

**URL:** <https://community.dynatrace.com/t/notification-based-on-a-user-action-name/38835>\
**Category:** Open Q&A\
**Tags:** problem-notification, user-actions\
**Created:** [March 15, 2023, 2:15pm UTC](https://community.dynatrace.com/t/notification-based-on-a-user-action-name/38835 "2023-03-15T14:15:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkulov](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mkulov/32/11732_2.png) [@mkulov](https://community.dynatrace.com/u/mkulov)\
**Post date:** [March 15, 2023, 2:15pm UTC](https://community.dynatrace.com/t/notification-based-on-a-user-action-name/38835/1 "2023-03-15T14:15:42Z")

</div>

Hi,

We would like to send an email notification to specific users based on a degradation of a specific user action.

Any idea if it is possible to send a notification based on the user action degradation problem for a given user action name?

Thank you,

Martin

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [March 15, 2023, 2:35pm UTC](https://community.dynatrace.com/t/notification-based-on-a-user-action-name/38835/2 "2023-03-15T14:35:41Z")

</div>

Hi Martin,

You can create a Key User Action for a specific user action. In the next step, you create a custom event based on the Key User Action and assign it to the alerting profiles.

Radek

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [March 15, 2023, 2:39pm UTC](https://community.dynatrace.com/t/notification-based-on-a-user-action-name/38835/3 "2023-03-15T14:39:31Z")

</div>

In addition, you can set performance metric&nbsp;for each key user action:

[https://www.dynatrace.com/support/help/shortlink/configure-key-user-actions-web](https://www.dynatrace.com/support/help/shortlink/configure-key-user-actions-web#customize-apdex-rating-for-a-key-user-action)

---

<div class="post-metadata">

**Author:** ![mkulov](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mkulov/32/11732_2.png) [@mkulov](https://community.dynatrace.com/u/mkulov)\
**Post date:** [March 17, 2023, 2:17pm UTC](https://community.dynatrace.com/t/notification-based-on-a-user-action-name/38835/4 "2023-03-17T14:17:02Z")

</div>

Hi Radek,

I imagined that I can use the anomaly detection built in problem alerting in order to send email notifications.

What do you suggest looks like the performance metrics for these custom events will not utilize anomaly detection feature in problem detection.

Is this correct?

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [March 17, 2023, 3:20pm UTC](https://community.dynatrace.com/t/notification-based-on-a-user-action-name/38835/5 "2023-03-17T15:20:24Z")

</div>

Hi,

When using key user actions, you can configure automatic anomaly detection or a fixed threshold for each such action.

 ![key.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/b/ab59fe98265a57fa20b151a4ef85397ad3a31d94.png)

Here is a similar thread: [https://community.dynatrace.com/t5/Real-User-Monitoring/Key-User-Action-Anomaly-Detection-Help/m-p/192058](https://community.dynatrace.com/post/192058)

Of course, if you want to send an email informing only that an action has exceed a threshold to a certain group of recipients, you need to configure a metric event for that key action.

--------

Dynatrace uses three monitoring strategies for such events:

- [Static threshold](https://www.dynatrace.com/support/help/observe-and-explore/davis-ai/anomaly-detection/metric-events/static-thresholds)—the threshold that doesn’t change over time.
- [Auto-adaptive threshold](https://www.dynatrace.com/support/help/observe-and-explore/davis-ai/anomaly-detection/metric-events/auto-adaptive-threshold)—Dynatrace calculates the threshold automatically and adapts it dynamically to your metric’s behavior.
- [Seasonal baseline](https://www.dynatrace.com/support/help/observe-and-explore/davis-ai/anomaly-detection/metric-events/seasonal-baseline)—Dynatrace calculates a confidence band for a metric with seasonal patterns

> **[Metric events](https://docs.dynatrace.com/docs/dynatrace-intelligence/anomaly-detection-classic/metric-events)**
>
> Learn about metric events in Dynatrace

--------

**but for&nbsp;metric key queries, only static thresholds are available.**

 ![event.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/c/cc6c0a61f17835e830dca3d7aac6f4e434d576d7.png)

Then you configure a new alert profile and you’re done.

Radek

---

<div class="post-metadata">

**Author:** ![janusz\_dabrowsk](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/janusz_dabrowsk/32/17325_2.png) [@janusz\_dabrowsk](https://community.dynatrace.com/u/janusz_dabrowsk)\
**Post date:** [April 14, 2023, 6:44am UTC](https://community.dynatrace.com/t/notification-based-on-a-user-action-name/38835/6 "2023-04-14T06:44:55Z")

</div>

Hi Martin,  
Here’s how I would try to address it,&nbsp;  
1) Create metric for specific user action

 ![janusz_dabrowsk_0-1681454553195.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/126b3bca94e9cc6eadfc5c079afe8d481273ff3a.png)

2) Create anomaly detection rule based on created metric

 ![janusz_dabrowsk_1-1681454672142.png](https://global.discourse-cdn.com/dynatrace/original/2X/c/c0bb3b3d8dc86b4c48e47786235aed7c82c1ea4b.png)
