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

How to create custom error rule using request attribute value from API

pavan_babu1
Dynatrace Advocate
Dynatrace Advocate

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?

4 REPLIES 4

ChadTurner
DynaMight Legend
DynaMight Legend

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:

ChadTurner_0-1638930705160.png

 

Ill see if Dynatrace is aware of a way to leverage the API for this

-Chad

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.

Sharing Knowledge

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. 

-Chad

Featured Posts