18 Dec 2024 12:06 PM
I have an entity custom:host , which is mapped to Host entity so that data can be displayed on OOTB Host screen .
I am unable to report the event using below code for self.report_dt_event()
26 Dec 2024 03:27 PM
I can't tell everything from your post, but it seems like you're trying to use the entity ID of the built-in host entity type as a filter on your custom host entity in the selector which will not work. Having a 'same as' relationship won't allow you to automatically be able to use the attributes of that other entity. For attributes only the attributes on your custom entity would be available.
You can use relationships as filters in entity selectors too so if you have the relationship working and showing up properly you could use that: https://docs.dynatrace.com/docs/discover-dynatrace/references/dynatrace-api/environment-api/entity-v...
Lastly, if this is a local activation of an extension running on a OneAgent monitored host there shouldn't be any need for this extra entity type. You'd be able to report all this directly to the OA monitored host. We only do something like this for remote activations of extension.