1.5.2 • Published 7 years ago
newrelic-host-applications v1.5.2
NewRelicHostApps
This is a simple library to handle host applications from NewRelic.
Installing the dependencies:
npm install
Start the development mode, this will build NewRelicHostApps.js
in the dist/umd
directory:
npm run build:dev
If you want to do TDD run:
npm run test:coverwatch
Usage:
UMD
implementation:
const instance = new NewRelicHostAppsBundle(data);
constructor : (array: <applications>) => void
optional
The initial data to be handled by NewRelicHostApps
MAX_MOST_SATISFING : number
A maximum number to return the most satisfying applications
apps : array
The list of the sorted applications ordered by Apdex
hostsList : array
The sorted hosts by Apdex
getTopAppsByHost : (string: <host>, number: <limit>) => array
Retrieves a list of the 25 most satisfying applications.
addAppToHosts : (object: <app>) => array
Adds an update the list of applications with higher Apdex
removeAppFromHosts : (string: <id>) => array
Removes an update the list of applications with higher Apdex