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()
host_entity_id = data[‘dt.entity.host’]self.report_dt_event(description=“One or more processes are unavailable”, title=“Test Host Unhealthy”, entity_selector= f"type(test:host),entityID(\“{host_entity_id}\”)")types: - name: test:host displayName: Test Host rules: - idPattern: Test_host_{host} instanceNamePattern: “{host}” iconPattern: host attributes: - key: test_host displayName: Test_Host pattern: “{host}” - key: test_host_id displayName: Test_Host_ID pattern: “{host_id}” sources: - sourceType: Metrics condition: $prefix(test.)relationships: - sources: - sourceType: Metrics condition: $prefix(test.) fromType: test:host toType: host typeOfRelation: SAME_AS - sources: - sourceType: Entities mappingRules: - sourceProperty: test_host_id sourceTransformation: To lower case destinationProperty: entityId destinationTransformation: To lower case - sourceProperty: test_host sourceTransformation: To lower case destinationProperty: displayName destinationTransformation: To lower case fromType: test:host typeOfRelation: SAME_AS toType: hostAlso, for an event, do we need to make an entry in extension.yaml too ?