<?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 Pushing data to Events schema in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Pushing-data-to-Events-schema/m-p/717445#M489</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Am trying to build a custom Extension with Java.&lt;/P&gt;
&lt;P&gt;As per this page, &lt;A href="https://docs.appdynamics.com/display/PRO43/Build+a+Monitoring+Extension+Using+Java" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO43/Build+a+Monitoring+Extension+Using+Java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We can use AManagedMonitor class to push data to Metrics schema&lt;/P&gt;
&lt;P&gt;So is there a class that we can use to push data to Events Schema.&lt;/P&gt;
&lt;P&gt;Am aware of the 'curl' method to push Events via RestAPI to Event Service.&lt;/P&gt;
&lt;P&gt;But am looking for a native java approach for this.&lt;/P&gt;
&lt;P&gt;Does anyone know of a method to use for this scenario?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Vishnu&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 13:55:33 GMT</pubDate>
    <dc:creator>Vishnu_Kumar_D_</dc:creator>
    <dc:date>2017-11-08T13:55:33Z</dc:date>
    <item>
      <title>Pushing data to Events schema</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Pushing-data-to-Events-schema/m-p/717445#M489</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;Am trying to build a custom Extension with Java.&lt;/P&gt;
&lt;P&gt;As per this page, &lt;A href="https://docs.appdynamics.com/display/PRO43/Build+a+Monitoring+Extension+Using+Java" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO43/Build+a+Monitoring+Extension+Using+Java&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We can use AManagedMonitor class to push data to Metrics schema&lt;/P&gt;
&lt;P&gt;So is there a class that we can use to push data to Events Schema.&lt;/P&gt;
&lt;P&gt;Am aware of the 'curl' method to push Events via RestAPI to Event Service.&lt;/P&gt;
&lt;P&gt;But am looking for a native java approach for this.&lt;/P&gt;
&lt;P&gt;Does anyone know of a method to use for this scenario?&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Vishnu&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 13:55:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Pushing-data-to-Events-schema/m-p/717445#M489</guid>
      <dc:creator>Vishnu_Kumar_D_</dc:creator>
      <dc:date>2017-11-08T13:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pushing data to Events schema</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Pushing-data-to-Events-schema/m-p/717446#M490</link>
      <description>&lt;P&gt;The only way to access the events service data store is using the analytics api. If you do not want to use curl you can convert your request to a java code and use it. But at the end it will be using the events api itself. For example something like below as a sample:&lt;/P&gt;
&lt;PRE&gt;OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/vnd.appd.events+text;v=2");
RequestBody body = RequestBody.create(mediaType, "&amp;lt;ADQL query goes here&amp;gt;");
Request request = new Request.Builder()
.url("https://analytics.api.appdynamics.com/events/query?mode=page&amp;amp;size=1000&amp;amp;offset=100")
.post(body)
.addHeader("content-type", "application/vnd.appd.events+text;v=2")
.addHeader("x-events-api-accountname", "Global Account Name")
.addHeader("x-events-api-key", "api key")
.addHeader("cache-control", "no-cache")
.addHeader("postman-token", "98fdc32c-bd67-fec7-6f5d-d87b619771c5")
.build();
Response response = client.newCall(request).execute();&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Nov 2017 07:18:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Pushing-data-to-Events-schema/m-p/717446#M490</guid>
      <dc:creator>Amit_Jha</dc:creator>
      <dc:date>2017-11-10T07:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pushing data to Events schema</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Pushing-data-to-Events-schema/m-p/717447#M491</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/40045"&gt;@Vishnu Kumar.D R&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Were you able to&amp;nbsp;&lt;SPAN&gt;access the events service data store using the tip suggested by&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/51185"&gt;@Amit.Jha&lt;/A&gt;?&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;Let us know how it went. &lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&lt;SPAN&gt;If you think&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/51185"&gt;@Amit.Jha&lt;/A&gt;&amp;nbsp;answer is the right solution to your question, please mark it as the accepted solution, so others can find their answers quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 21:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Pushing-data-to-Events-schema/m-p/717447#M491</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-10-22T21:47:17Z</dc:date>
    </item>
  </channel>
</rss>

