# Entity selector for SLO

**URL:** <https://community.dynatrace.com/t/entity-selector-for-slo/34719>\
**Category:** Dashboarding\
**Tags:** slo, dashboards-classic\
**Created:** [April 4, 2022, 6:44pm UTC](https://community.dynatrace.com/t/entity-selector-for-slo/34719 "2022-04-04T18:44:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcelo\_santand](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marcelo_santand/32/13828_2.png) [@Marcelo\_santand](https://community.dynatrace.com/u/Marcelo_santand)\
**Post date:** [April 4, 2022, 6:44pm UTC](https://community.dynatrace.com/t/entity-selector-for-slo/34719/1 "2022-04-04T18:44:23Z")

</div>

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](https://global.discourse-cdn.com/dynatrace/original/2X/0/012d67e9fe4b19934aab384be17b5dbe64b92f18.png)

 ![2.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/7/67b8e3cde370d3718f229586fdd8688621ee3eae.png)

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

Thanks!

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [April 4, 2022, 6:58pm UTC](https://community.dynatrace.com/t/entity-selector-for-slo/34719/2 "2022-04-04T18:58:07Z")

</div>

[@Marcelo\_santand](https://community.dynatrace.com/user/36135)&nbsp;, why so complicated? You should filter it straight away (in the examples the /url1 and /url2 stand for the key request name)

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

```

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

```markup
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):

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

```

For the same as above but not using entity ID:

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

```

---

<div class="post-metadata">

**Author:** ![Marcelo\_santand](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marcelo_santand/32/13828_2.png) [@Marcelo\_santand](https://community.dynatrace.com/u/Marcelo_santand)\
**Post date:** [April 4, 2022, 7:08pm UTC](https://community.dynatrace.com/t/entity-selector-for-slo/34719/3 "2022-04-04T19:08:07Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![uros\_djukic1](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/uros_djukic1/32/37084_2.png) [@uros\_djukic1](https://community.dynatrace.com/u/uros_djukic1)\
**Post date:** [April 6, 2022, 3:30pm UTC](https://community.dynatrace.com/t/entity-selector-for-slo/34719/4 "2022-04-06T15:30:24Z")

</div>

Hello,  
Please find the documentation here :&nbsp;[Monitored entities API - GET entities list — Dynatrace Docs](https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-entities-list)

 ![uros_djukic1_0-1649259006133.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/8/784473ddb5a9d0f0d68bf5659680f1b18e1fb9b2.png)
