<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Custom Plugin: closing problem reported via report_error_event in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Custom-Plugin-closing-problem-reported-via-report-error-event/m-p/125545#M1276</link>
    <description>&lt;P&gt;From a custom oneagent plugin:&lt;/P&gt;&lt;PRE&gt;if (status=='ERROR'):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.results_builder.report_error_event(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title = "Scheduled Job Failure - from code",&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; description = "At least one of the scheduled jobs reports failed",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "job": &amp;nbsp;jobDetail['name'],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "lastRun": jobDetail['lastRun'],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "nextRun": jobDetail['nextRun']&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; entity_selector=ExplicitPgiSelector(pgi_id=pgi_id)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/PRE&gt;&lt;P&gt;Nice... this works and opens a problem. I even see the details...&lt;/P&gt;&lt;P&gt;But, whenever the error is gone and this event is not sent every minute anymore, this problem stays open.&lt;/P&gt;&lt;P&gt;When does it automatically closes?&lt;BR /&gt;Or is there a way that I can close it. Since I have full control in the plugin I know exactly when this error is gone.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Nov 2019 14:14:07 GMT</pubDate>
    <dc:creator>Bert_VanderHeyd</dc:creator>
    <dc:date>2019-11-26T14:14:07Z</dc:date>
    <item>
      <title>Custom Plugin: closing problem reported via report_error_event</title>
      <link>https://community.dynatrace.com/t5/Extensions/Custom-Plugin-closing-problem-reported-via-report-error-event/m-p/125545#M1276</link>
      <description>&lt;P&gt;From a custom oneagent plugin:&lt;/P&gt;&lt;PRE&gt;if (status=='ERROR'):&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; self.results_builder.report_error_event(&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title = "Scheduled Job Failure - from code",&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; description = "At least one of the scheduled jobs reports failed",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; properties = {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "job": &amp;nbsp;jobDetail['name'],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "lastRun": jobDetail['lastRun'],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "nextRun": jobDetail['nextRun']&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; entity_selector=ExplicitPgiSelector(pgi_id=pgi_id)&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/PRE&gt;&lt;P&gt;Nice... this works and opens a problem. I even see the details...&lt;/P&gt;&lt;P&gt;But, whenever the error is gone and this event is not sent every minute anymore, this problem stays open.&lt;/P&gt;&lt;P&gt;When does it automatically closes?&lt;BR /&gt;Or is there a way that I can close it. Since I have full control in the plugin I know exactly when this error is gone.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2019 14:14:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Custom-Plugin-closing-problem-reported-via-report-error-event/m-p/125545#M1276</guid>
      <dc:creator>Bert_VanderHeyd</dc:creator>
      <dc:date>2019-11-26T14:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Plugin: closing problem reported via report_error_event</title>
      <link>https://community.dynatrace.com/t5/Extensions/Custom-Plugin-closing-problem-reported-via-report-error-event/m-p/125546#M1277</link>
      <description>&lt;P&gt;According to this documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/events/post-event/"&gt;https://www.dynatrace.com/support/help/extend-dynatrace/dynatrace-api/environment-api/events/post-event/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can define problem timeout. After this time this problem will be marked as timeouted. You can refresh the problem using ID returned from API if you need. &lt;/P&gt;&lt;P&gt;Sebastian &lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:09:44 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Custom-Plugin-closing-problem-reported-via-report-error-event/m-p/125546#M1277</guid>
      <dc:creator>skrystosik</dc:creator>
      <dc:date>2020-01-14T10:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Plugin: closing problem reported via report_error_event</title>
      <link>https://community.dynatrace.com/t5/Extensions/Custom-Plugin-closing-problem-reported-via-report-error-event/m-p/125547#M1278</link>
      <description>&lt;P&gt;Based on my experience it is closed automatically.  So you have to push the events every time the plugin query method code is called.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 14 Jan 2020 10:31:07 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Custom-Plugin-closing-problem-reported-via-report-error-event/m-p/125547#M1278</guid>
      <dc:creator>Julius_Loman</dc:creator>
      <dc:date>2020-01-14T10:31:07Z</dc:date>
    </item>
  </channel>
</rss>

