25 Nov 2021
01:05 AM
- last edited on
31 Aug 2022
03:46 AM
by
MaciejNeumann
We have 200 error codes captured in a request attribute. In which some are considered Technical errors and some are businesses errors. We need to create custom error rules for all the technical errors (at least 100 codes) in 10 services =1000 custom error rules.
Is there any way we can use API for this or Reduce the effort by applying error detection rules for all 10 services at once?
Solved! Go to Solution.
Thats a really good question. If you can use the API you might still end up hitting a limitation where you need to provide the entity ID, but granted that would cut down the workload.
You can create a global rule as well:
Ill see if Dynatrace is aware of a way to leverage the API for this
Dear Chad,
I reopen a discussion here because I have the same need now.
Did you know if its feasible globally or via API?
Because making this service by service is a very big pain.
You could create a script that will capture all the Service IDs, then once captured, you could add to that script to set the detection settings as desired on the number of services you are targeting. Then Post it to the API via the script, either with Postman or a tool similar.
This is what support gave us: https://www.dynatrace.com/support/help/dynatrace-api/configuration-api/service-api/failure-detection...