<?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 passing event in the payload in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/passing-event-in-the-payload/m-p/736673#M10008</link>
    <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;- I am using appdyanmics in my app for monitoring user activity.&lt;BR /&gt;- but the problem is it doesnt show how much time user has clicked the button.&lt;BR /&gt;- so using rxjs I have wrote a click event.&lt;BR /&gt;- this click event shows the mouse event and how to pass this mouse event in appdyanmics payload, so that I can generate a report usimg appdyanmics.&lt;BR /&gt;- providing my code changes below&lt;/P&gt;
&lt;P&gt;appdyanmics Reference links:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/Extend+the+JavaScript+Agent+for+Single+Page+Applications+%28SPAs%29+in+Browser+RUM" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/Extend+the+JavaScript+Agent+for+Single+Page+Applications+%28SPAs%29+in+Browser+RUM&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/Single+Page+Applications+in+Browser+RUM+-+AngularJS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/Single+Page+Applications+in+Browser+RUM+-+AngularJS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;sample appdynamics angular app &lt;A href="https://github.com/derrekyoung/appd-sampleapp-angular2" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/derrekyoung/appd-sampleapp-angular2&lt;/A&gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://cdn.appdynamics.com/adrum/adrum-latest.js&amp;quot;&amp;gt;&amp;lt;/script" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cdn.appdynamics.com/adrum/adrum-latest.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;app.component.ts&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;import { Component } from '@angular/core';&lt;BR /&gt;import {Subject} from 'rxjs/Subject';&lt;/P&gt;
&lt;P&gt;@Component({&lt;BR /&gt;selector: 'app-root',&lt;BR /&gt;templateUrl: './app.component.html',&lt;BR /&gt;styleUrls: ['./app.component.css']&lt;BR /&gt;})&lt;BR /&gt;export class AppComponent {&lt;BR /&gt;title = 'AppDynamics Sample App for Angular 2';&lt;/P&gt;
&lt;P&gt;click = new Subject();&lt;/P&gt;
&lt;P&gt;ngOnInit() {&lt;BR /&gt;this.click.subscribe(console.log);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;app.component.html&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;&amp;lt;h1&amp;gt;&lt;BR /&gt;{{title}}&lt;BR /&gt;&amp;lt;/h1&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;header&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;!-- Navigation with router directives--&amp;gt;&lt;BR /&gt;&amp;lt;nav&amp;gt;&lt;BR /&gt;&amp;lt;a [routerLink]="['/']"&amp;gt;Home&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;a [routerLink]="['/names']"&amp;gt;Names&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;a [routerLink]="['/posts']"&amp;gt;Posts&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;a [routerLink]="['/photos']"&amp;gt;Photos&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/nav&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;&lt;BR /&gt;&amp;lt;!-- &amp;lt;button (click)="new Subject()" type="button"&amp;gt;Click Me!&amp;lt;/button&amp;gt; --&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;button (click)="click.next($event)"&amp;gt;Click Me!&amp;lt;/button&amp;gt; &lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/header&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;lt;router-outlet&amp;gt;&amp;lt;/router-outlet&amp;gt;&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;appdynamics request payload&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"vr": "4.4.1.154",&lt;BR /&gt;"dt": "R",&lt;BR /&gt;"rg": "0",&lt;BR /&gt;"es": [{&lt;BR /&gt;"eg": "1",&lt;BR /&gt;"et": 2,&lt;BR /&gt;"eu": "0://1/2/",&lt;BR /&gt;"ts": 1515610064377,&lt;BR /&gt;"mg": "2",&lt;BR /&gt;"au": "0://3/",&lt;BR /&gt;"at": 3,&lt;BR /&gt;"pp": 3,&lt;BR /&gt;"mx": {&lt;BR /&gt;"PLC": 1,&lt;BR /&gt;"FBT": 48,&lt;BR /&gt;"DDT": 0,&lt;BR /&gt;"DPT": 4,&lt;BR /&gt;"PLT": 52,&lt;BR /&gt;"ARE": 0&lt;BR /&gt;},&lt;BR /&gt;"md": "GET",&lt;BR /&gt;"xs": 200,&lt;BR /&gt;"si": 18&lt;BR /&gt;}],&lt;BR /&gt;"ai": "d4e7ef50_b4f3_1dd7_5cdf_49a60ff5635d",&lt;BR /&gt;"gs": ["bbe438d0_0c94_63d9_2c22_700343b560b5", "cde9c933_e332_41ce_9333_5021c1502265", "4e6a7f03_4588_49e2_6c25_d8a3a1f3fe90"],&lt;BR /&gt;"up": ["http", "jsonplaceholder.typicode.com", "users", "localhost:4200"]&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jan 2018 02:46:24 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2018-01-11T02:46:24Z</dc:date>
    <item>
      <title>passing event in the payload</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/passing-event-in-the-payload/m-p/736673#M10008</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;
&lt;P&gt;- I am using appdyanmics in my app for monitoring user activity.&lt;BR /&gt;- but the problem is it doesnt show how much time user has clicked the button.&lt;BR /&gt;- so using rxjs I have wrote a click event.&lt;BR /&gt;- this click event shows the mouse event and how to pass this mouse event in appdyanmics payload, so that I can generate a report usimg appdyanmics.&lt;BR /&gt;- providing my code changes below&lt;/P&gt;
&lt;P&gt;appdyanmics Reference links:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/Extend+the+JavaScript+Agent+for+Single+Page+Applications+%28SPAs%29+in+Browser+RUM" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/Extend+the+JavaScript+Agent+for+Single+Page+Applications+%28SPAs%29+in+Browser+RUM&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://docs.appdynamics.com/display/PRO42/Single+Page+Applications+in+Browser+RUM+-+AngularJS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO42/Single+Page+Applications+in+Browser+RUM+-+AngularJS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;sample appdynamics angular app &lt;A href="https://github.com/derrekyoung/appd-sampleapp-angular2" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/derrekyoung/appd-sampleapp-angular2&lt;/A&gt;&lt;BR /&gt;&amp;lt;script src="&lt;A href="https://cdn.appdynamics.com/adrum/adrum-latest.js&amp;quot;&amp;gt;&amp;lt;/script" target="_blank" rel="nofollow noopener noreferrer"&gt;https://cdn.appdynamics.com/adrum/adrum-latest.js"&amp;gt;&amp;lt;/script&lt;/A&gt;&amp;gt;&lt;/P&gt;

&lt;P&gt;app.component.ts&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;import { Component } from '@angular/core';&lt;BR /&gt;import {Subject} from 'rxjs/Subject';&lt;/P&gt;
&lt;P&gt;@Component({&lt;BR /&gt;selector: 'app-root',&lt;BR /&gt;templateUrl: './app.component.html',&lt;BR /&gt;styleUrls: ['./app.component.css']&lt;BR /&gt;})&lt;BR /&gt;export class AppComponent {&lt;BR /&gt;title = 'AppDynamics Sample App for Angular 2';&lt;/P&gt;
&lt;P&gt;click = new Subject();&lt;/P&gt;
&lt;P&gt;ngOnInit() {&lt;BR /&gt;this.click.subscribe(console.log);&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;app.component.html&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;&amp;lt;h1&amp;gt;&lt;BR /&gt;{{title}}&lt;BR /&gt;&amp;lt;/h1&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;header&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;!-- Navigation with router directives--&amp;gt;&lt;BR /&gt;&amp;lt;nav&amp;gt;&lt;BR /&gt;&amp;lt;a [routerLink]="['/']"&amp;gt;Home&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;a [routerLink]="['/names']"&amp;gt;Names&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;a [routerLink]="['/posts']"&amp;gt;Posts&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;a [routerLink]="['/photos']"&amp;gt;Photos&amp;lt;/a&amp;gt;&lt;BR /&gt;&amp;lt;/nav&amp;gt;&lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;BR /&gt;&amp;lt;div&amp;gt;&lt;BR /&gt;&amp;lt;!-- &amp;lt;button (click)="new Subject()" type="button"&amp;gt;Click Me!&amp;lt;/button&amp;gt; --&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;button (click)="click.next($event)"&amp;gt;Click Me!&amp;lt;/button&amp;gt; &lt;BR /&gt;&amp;lt;/div&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;/header&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&amp;lt;router-outlet&amp;gt;&amp;lt;/router-outlet&amp;gt;&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;appdynamics request payload&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"vr": "4.4.1.154",&lt;BR /&gt;"dt": "R",&lt;BR /&gt;"rg": "0",&lt;BR /&gt;"es": [{&lt;BR /&gt;"eg": "1",&lt;BR /&gt;"et": 2,&lt;BR /&gt;"eu": "0://1/2/",&lt;BR /&gt;"ts": 1515610064377,&lt;BR /&gt;"mg": "2",&lt;BR /&gt;"au": "0://3/",&lt;BR /&gt;"at": 3,&lt;BR /&gt;"pp": 3,&lt;BR /&gt;"mx": {&lt;BR /&gt;"PLC": 1,&lt;BR /&gt;"FBT": 48,&lt;BR /&gt;"DDT": 0,&lt;BR /&gt;"DPT": 4,&lt;BR /&gt;"PLT": 52,&lt;BR /&gt;"ARE": 0&lt;BR /&gt;},&lt;BR /&gt;"md": "GET",&lt;BR /&gt;"xs": 200,&lt;BR /&gt;"si": 18&lt;BR /&gt;}],&lt;BR /&gt;"ai": "d4e7ef50_b4f3_1dd7_5cdf_49a60ff5635d",&lt;BR /&gt;"gs": ["bbe438d0_0c94_63d9_2c22_700343b560b5", "cde9c933_e332_41ce_9333_5021c1502265", "4e6a7f03_4588_49e2_6c25_d8a3a1f3fe90"],&lt;BR /&gt;"up": ["http", "jsonplaceholder.typicode.com", "users", "localhost:4200"]&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;```&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 02:46:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/passing-event-in-the-payload/m-p/736673#M10008</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-01-11T02:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: passing event in the payload</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/passing-event-in-the-payload/m-p/736674#M10009</link>
      <description>&lt;P&gt;You can pass custom data using the approach given in the link below&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO44/Add+Custom+User+Data+to+a+Page+Browser+Snapshot" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO44/Add+Custom+User+Data+to+a+Page+Browser+Snapshot&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You can also refer the below link&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.appdynamics.com/display/PRO44/Extend+the+JavaScript+Agent+for+SPAs#ExtendtheJavaScriptAgentforSPAs-NotifytheAgentofEvents" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.appdynamics.com/display/PRO44/Extend+the+JavaScript+Agent+for+SPAs#ExtendtheJavaScriptAgentforSPAs-NotifytheAgentofEvents&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Mohammed Rayan&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 08:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/passing-event-in-the-payload/m-p/736674#M10009</guid>
      <dc:creator>Mohammed_Rayan</dc:creator>
      <dc:date>2018-01-11T08:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: passing event in the payload</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/passing-event-in-the-payload/m-p/736675#M10010</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;

&lt;P&gt;In my angular code can you tell me where to add it&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jan 2018 09:53:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/passing-event-in-the-payload/m-p/736675#M10010</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-01-11T09:53:48Z</dc:date>
    </item>
  </channel>
</rss>

