developed by Subhajit Rajak(for CISCO appdynamics)
step 1:
npm i custom-user-data-app
step 2:
import "AppdLibService" in your app.module.ts and pass it in providers
import { AppdLibService } from 'custom-user-data-app';
providers: [AppdLibService]
step 3:
import "AppdLibService" and dependency inject the AppdLibService in the constructor of the component where you want to record data in cisco appdynamics
import { AppdLibService } from 'custom-user-data-app';
constructor(public appDservice: AppdLibService){}
step 4:
call the adrumFunction of AppdLibService from the component with two arguments
step 5:
object of strings(this object can be anything) and appKey as string
let obj:any= {};
obj.user = "somevalue"; //user name
obj.token = "somevalue"; //user login token
obj.role = "somevalue"; // user role
obj.dashboard_name = "somevalue"; // dashboard of the component
obj.tab_name = "somevalue"; // tab of the component
obj.report_name = "somevalue"; // report of the component
let appKey = "XX-XXX-XXX-XXX"; // cisco appdynamics appKey
step 6:
final call example from component with two arguments one is obj as object and second one is appKey as string:
this.appDservice.adrumFunction(obj,appKey);
This project was generated with Angular CLI version 6.0.8. by Subhajit Rajak
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.