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

Replacement for associated_entity in ruxit.api package?

tarjei
Organizer

So I am currently using associated_entity to get the entity of a MSSQL database of which I am creating a plugin:

self.entity = kwargs["associated_entity"]
instance_name = self.entity.properties['mssql_instance_name']


However I see that this is deprecated:


What is the recommendation to use instead?

3 REPLIES 3

Mike_L
Dynatrace Pro
Dynatrace Pro

Use activation_context instead, such as this:

kwargs['activation_context'].value.processes[0].properties['mssql_instance_name']

Any chance of updating the documentation?

@Jakub M. All yours 🙂