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

Entity selector SLO

 

We are trying to create an SLO by invoking a service that contains 11 key requests and about 100 requests, when using service.keyRequest it brings us only the key requests, but in reality we only need 2 URLs of that service. Here some examples

 

1.png

 

2.png

 

  Will it be possible with Entity selector to only select 2 URLs of type key request and not the other 9?

Thanks!

3 REPLIES 3

Julius_Loman
DynaMight Guru
DynaMight Guru

@Marcelo_santand , why so complicated? You should filter it straight away (in the examples the /url1 and /url2 stand for the key request name)

 

type("SERVICE_METHOD"),entityName.in("/url1","/url2")

 

 If you have multiple key requests (aka SERVICE_METHODs), you can also use entityIds such as:

 

type("SERVICE_METHOD"),entityId("SERVICE_METHOD-00B7FD10945B403C","SERVICE_METHOD-00F1E23072E6752F")

 

 

Or you can narrow it down by the relation (only keyrequests for a particular service):

 

type("SERVICE_METHOD"),entityName.in("/url1","/url2),fromRelationships.isServiceMethodOfService(entityId(SERVICE-08DB0C98768A0660))

 

For the same as above but not using entity ID:

 

type("SERVICE_METHOD"),entityName.in("/url1","/url2"),fromRelationships.isServiceMethodOfService(type(SERVICE),entityName("MyServiceName"))

 

Certified Dynatrace Master | TEMPEST a.s., Slovakia, Dynatrace Master Partner

Thank you very much, I was going through the documentation but I couldn't find the entity name.in("/url1","/url2). Thanks for the help.