# Alert Setup for specific Request endpoint and response code

**URL:** <https://community.dynatrace.com/t/alert-setup-for-specific-request-endpoint-and-response-code/47059>\
**Category:** Alerting\
**Tags:** problem-detection, problem-notification, anomaly-detection, problems-classic\
**Created:** [August 8, 2024, 2:38am UTC](https://community.dynatrace.com/t/alert-setup-for-specific-request-endpoint-and-response-code/47059 "2024-08-08T02:38:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbbieA](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@AbbieA](https://community.dynatrace.com/u/AbbieA)\
**Post date:** [August 8, 2024, 2:38am UTC](https://community.dynatrace.com/t/alert-setup-for-specific-request-endpoint-and-response-code/47059/1 "2024-08-08T02:38:59Z")

</div>

Hi, how can I setup an alert / anomaly detection to a specific request endpoint and specific response code?

---

<div class="post-metadata">

**Author:** ![tuanla123](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/tuanla123/32/28344_2.png) [@tuanla123](https://community.dynatrace.com/u/tuanla123)\
**Post date:** [August 8, 2024, 3:21am UTC](https://community.dynatrace.com/t/alert-setup-for-specific-request-endpoint-and-response-code/47059/2 "2024-08-08T03:21:45Z")

</div>

You can create custom metric and assign alert for it

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [August 8, 2024, 6:49am UTC](https://community.dynatrace.com/t/alert-setup-for-specific-request-endpoint-and-response-code/47059/3 "2024-08-08T06:49:49Z")

</div>

Hi&nbsp;[@AbbieA](https://community.dynatrace.com/user/76065)

As&nbsp;[@tuanla123](https://community.dynatrace.com/user/68882)&nbsp;mentioned you can create a [calculated service metric](https://docs.dynatrace.com/docs/shortlink/key-requests#calculated-service-metric)

But I would start with mark the request as a key request.

Please check&nbsp;[Monitor key requests](https://docs.dynatrace.com/docs/shortlink/key-requests)&nbsp;for more details about:

- [Create a key request (via web UI)](https://docs.dynatrace.com/docs/shortlink/key-requests#create-ui)
- [Anomaly detection with key requests](https://docs.dynatrace.com/docs/shortlink/key-requests#anomaly-detection)

HTH

Yos
