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?

5 REPLIES 5

HannahM
Dynatrace Leader
Dynatrace Leader

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://community.dynatrace.com/idea/242001/allow-me-to-make-a-synthetic-test-fail-via-javascr.html

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

Best wishes, Hannah

Synthetic SME and community advocate.

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
Organizer

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. 

Viachaslau
Advisor

Is it was implemented?

Part 1:
https://community.dynatrace.com/t5/Product-ideas/RFE-Synthetics-HTTP-Make-api-fail-message-available...
was implemented and you can now see the messages in the WebUI. 
Part 2 https://community.dynatrace.com/t5/Product-ideas/Allow-me-to-make-a-Synthetic-HTTP-test-fail-via-Jav...
making the information available to be shown in the Problem has not. You can vote for the Product Idea here

Synthetic SME and community advocate.

Featured Posts