Error Alert on 3xx response code

Hii,

Is there any way to trigger email alert on  3xx response code of api.

thanks

Prithvi

Hello @Prithvi_Mandal

You can achieve this through:

  • Configuring Synthetic monitors and add the fail if criteria

BR,

Peter

Hii @Peter_Youssef ,

actually API’s has already monitored in our environment. how can we do without synthetic .

Regards 

Hi @Prithvi_Mandal

you should do it in 2 steps:

1- Create a calculated metric on your API to count the number of http code 3xx.

2- Create an Event metric based on this Calculated metric and trigger and event when you reach a specific threshold.

BRs,

Hi @Prithvi_Mandal

There is a way you can create multidimensional analysis view and create a metric based on the error.

BR,

Peter.

Hello @Prithvi_Mandal

You have another solution to create request attribute as per the attached example and then configure the required alerting

2024-10-14_19h13_38.png

Under custom rule select the request attribute which will be either based on the response code 302 or the http method “Get”.

Tip:

  • To proceed with this alternative solution, you have to create a request attribute based on the http method and Response code, then you will be able to create the required metric and receive alerts upon occurrences.
  • Request attribute.

KR,

Peter.