When scrolling through the API-documentation before writing a new python plugin, I noticed 2 different ways to report events back to Dynatrace:
The old way
grp = self.topology_builder.create_group(grp_id, grp_name)
dev = grp.create_device(dev_id, dev_name)
dev.report_error_event(title, desc, props)
The new way
xxx.event_error(title, desc, props)
Via the chat I got the message:
Result of both operations are basically the same - the only difference is that report_performance_event is called with results_builder context (the older method of reporting data, still supported), while event_performance is method called with entity context (newer approach)
I hoped it'd be a simple replace-thing, but when replacing dev.report_error_event with dev.event_error I get the message
AttributeError: 'Device' object has no attribute 'event_error'
Can someone help me out with this?
It's the 'new approach' but it's not mentioned in documentation or sample applications.
The reason why I'd like to find out is because we're having troubles with problems being closed every 30minutes.
So I'd like to find out if we have the same problem with the new way of reporting problems also?
Solved! Go to Solution.
Hi Jan, I currently don't have the time to run any tests (I use report_error_event by the way). But it will not change the problem timeout. Make sure that you resend the same error before the timeout happens and the problem should stay open. If not please raise a support ticket.