• Forums
    • Public Forums
      • Community Connect
      • Dynatrace
        • Dynatrace Open Q&A
      • Application Monitoring & UEM
        • AppMon & UEM Open Q&A
      • Network Application Monitoring
        • NAM Open Q&A
  • Home /
  • Public Forums /
  • Dynatrace /
  • Dynatrace Open Q&A /
avatar image
Question by Jan B. · Feb 15 at 01:36 PM · extensions activegate error reporting

Custom ActiveGate plugin - how to properly send events back to Dynatrace

Hello all,

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?


Kind regards,

Jan

Comment

People who like this

0 Show 0
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Reply

  • Sort: 
  • Most voted
  • Newest
  • Oldest
avatar image
Best Answer

Answer by Mike L. · 4 days ago

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.

Mike

Comment

People who like this

0 Show 0 · Share
10 |2000000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Toggle Comment visibility. Current Visibility: Viewable by all users

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

How to get started

First steps in the forum
Read Community User Guide
Best practices of using forum

NAM 2019 SP5 is available


Check the RHEL support added in the latest NAM service pack.

Learn more

LIVE WEBINAR

"Performance Clinic - Monitoring as a Self Service with Dynatrace"


JANUARY 15, 3:00 PM GMT / 10:00 AM ET

Register here

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Supports - Dynatrace SNMP Polling Extension

ActiveGate Plugin add_endpoint reference

ActiveGate Plugin technology endpoint name value in plugin

How to use a generated library by the build command in a remote oneagent plugin ?

How Install ActiveGate plugin module

Forum Tags

mobile monitoring dotnet iis chat kubernetes servicenow amazon web services feedback mysql mainframe application rules rest api cassandra dashboard oneagent sdk cmc waterfall chart application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo opentelemetry integrations activegate auto-detection high five award uem webserver usql iib test automation license ios news migration management zones ibm mq web services notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming resource javascript appmon ai availability tipstricks automation extensions diagnostic tools session replay permissions search davis assistant auto-update faq documentation problem detection http monitors easytravel apdex network docker tags and metadata cloud foundry google cloud platform synthetic monitoring lambda process groups account usability dynatrace saas gui paas openshift key user actions administration production user actions postgresql synthetic locations upgrade oneagent security Dynatrace Managed user management python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting performance monitoring NGINX action naming geolocation linux nam installation error reporting database mission control apache slo mobileapp RUM php azure purepath davis scripting aix nodejs android
  • Forums
  • Public Forums
    • Community Connect
    • Dynatrace
      • Dynatrace Open Q&A
    • Application Monitoring & UEM
      • AppMon & UEM Open Q&A
    • Network Application Monitoring
      • NAM Open Q&A