I'm triying to generate new metric that contains a counter of metric with average response time> 3 seconds.
I developed a calculator but i can´t see the metric, i think that i have a mistake when i call the metric average response time.
I'm going to assume that you're utilizing 10.8 APM on-premise. I'll comment about our SaaS solutions later or maybe in another response.
For testing, I recommend you download a copy of the Rhino JS Engine, which we use in the product: https://mozilla.github.io/rhino/. You can download the binaries compatible with your OS from the GitHub repository.
Take a look at some of the examples I have here: https://github.com/htdavis/ca-apm-fieldpack-js-calcs. In particular, look at ArrayTest.js. You can do something similar using your ART example to make sure you're able to parse and get the results you want.
When using logging on an EM, the output is dumped to the EM log, depending on where the calculator is running. We do recommend you output any of the calculators to their own logfiles, by using the methods outlined in the attached provided. This so you can run logging in debug mode without polluting the EM log.
Logging is going to be the most useful tool you have when debugging. Make sure to output the contents of your variables in the execute function to validate during every step.
I will test it with the information that you give me and i will post the results
If you are using DX APM SaaS on-premise, you may not have ready access to view logs, without contacting someone who has access to your container environment.
If you are using our hosted solution, you will need to open a support ticket.
Again, it's best to do the testing locally before uploading.