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

Create request naming rule

chakrit
Observer

I would like to create request naming rule

Now my Env have many request in one service such as

1. /api/products/store/0000/category/00000

2./api/products/store/0001/category/00001

3./api/products/store/0000/category/00055

4./api/products/store/01120/category/00011

So, i need to group these to "API Products"

Which i have been used this condition "/api/products/store/:storeId/category/:categoryId" but result is not ok

Please provide as i need

 

Thank you very much.

4 REPLIES 4

Fin_Ubels
Dynatrace Advisor
Dynatrace Advisor

Hey chakrit,

This should be able to be achieved through the settings for the service. As shown in the below picture if you navigate to the web request naming rules page for your service you should be able to add rules for naming them.

Fin_Ubels_0-1655857692139.png

 

My example rule looks like this.

Fin_Ubels_1-1655857726056.png


And the outcome of the rule looks like this.

Fin_Ubels_2-1655857766266.png


For more information there is a documentation page for this as well.
https://www.dynatrace.com/support/help/how-to-use-dynatrace/services/service-monitoring-settings/set...

Hi @Fin_Ubels 

Yesterday i have been used this solution as you provided.

Incase normally i can used this step, but if i need to use this parameter ("/api/products/store/:storeId/category/:categoryId") in condition rule for create web request naming rule please provide solution.

 

Thank you.

Fin_Ubels
Dynatrace Advisor
Dynatrace Advisor

Ah I see, for something more specific I would then suggest using regex. My example below isn't great but it should give you an idea of where to start. In place of :storeId and :categoryId you would use some expression to match just numbers of a certain length.

Fin_Ubels_0-1655957921662.png


Here are a few sites if you need a hand creating and testing regex expressions.
https://regexr.com/

https://regex-generator.olafneumann.org/

And then Dynatrace also has some docs on Dynatrace specific regex.

https://www.dynatrace.com/support/help/how-to-use-dynatrace/tags-and-metadata/reference/regular-expr...

 

@Fin_Ubels 

 

Thank you for your solution.