app-d-custom-user-data-app

Library for CISCO AppDynamics's custom userData

Usage no npm install needed!

<script type="module">
  import appDCustomUserDataApp from 'https://cdn.skypack.dev/app-d-custom-user-data-app';
</script>

README

custom-user-data-app

developed by Subhajit Rajak(for CISCO appdynamics)

usage:

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

Code scaffolding

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.

Build

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.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.