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

Nice to know about entity selectors (and tagging)

henk_stobbe
DynaMight Champion
DynaMight Champion

Hello,

 

         You can use the entity selector on the  Relation target entity!

 

 

As an example, suppose you have multiple namespaces in Azure and you have the same name for a service bus queue in these namespaces.

 

You need to tag these queue's using below entity selector.

 

type(azure_service_bus_queue),

toRelationships.isAzrServiceBusNamespaceOfQueue(type(AZURE_SERVICE_BUS_NAMESPACE),

entityName("namespace"))

 

It looks like a complex query but if you read,

 

select this type, with this relation (but select only these target entities) 

 

@henridb : thanks for sharing!

 

 

KR Henk

 

 

4 REPLIES 4

ChadTurner
DynaMight Legend
DynaMight Legend

Thanks for sharing! 

-Chad

dannemca
DynaMight Guru
DynaMight Guru

fromRelationships and toRelationships are great, that's for sure.

For those that want to know where to get all possibilities, just check with https://www.dynatrace.com/support/help/dynatrace-api/environment-api/entity-v2/get-entity-type

Site Reliability Engineer @ Kyndryl

techean
Dynatrace Champion
Dynatrace Champion

:thankyou:for sharing this 😉

KG

Sujit
Advisor

@henk_stobbe Thanks for sharing this.... looks intresting.. 

 

Thanks,

Sujit

Dynatrace Certified Professional

Featured Posts