cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make message text from api.fail appear in Dynatrace Problem

chad_dameworth
Newcomer

I'm using JavaScript to validate JSON response from a web page. However, when I call api.fail and supply message text that I expect would appear in the problem, all I see is "Script execution failed on <Event name>". Is there a way to make specific message text to appear in the problem when using custom scripts?

3 REPLIES 3

HannahM
Dynatrace Champion
Dynatrace Champion

Hi Chad,

currently this is not possible. There is a new feature being worked on that will allow these messages to be shown in the WebUI and that is expected in Q4 2020/ Q1 2021.

There are also a couple of Product Ideas that you can vote for for this:

https://answers.dynatrace.com/idea/242001/allow-me-to-make-a-synthetic-test-fail-via-javascr.html

https://answers.dynatrace.com/idea/243683/rfe-synthetics-http-make-apifail-message-available.html

Best wishes, Hannah

Solution is not a real solution. 

 

First link suggest we can get if from event, while this is problem which is called for "problem notifications".

Second should do the trick as well.

 

Why being able to put "Api.fail" messages and descriptions if not visible in problems ? Non sense. 

NicolasT
Guide

Solution is not a real solution. 

 

First link suggest we can get if from event, while this is problem which is called for "problem notifications".

Second should do the trick as well.

 

Why being able to put "Api.fail" messages and descriptions if not visible in problems ? Non sense.