File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " eGInnovations" ,
33 "displayName" : " eG Enterprise" ,
4- "version" : " 1.1.7 " ,
4+ "version" : " 1.1.8 " ,
55 "author" : " eG Innovations Pvt Ltd" ,
66 "description" : " Monitor key application metrics from your eG environment" ,
77 "category" : " APM" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,8 @@ export async function getHistoricalData(context) {
1818 timeline : context . dataSourceConfig . timeline , //'1 hour',
1919 componentName :context . dataSourceConfig . componentName , //'172.16.8.112:7077',
2020 componentType : context . dataSourceConfig . componentType , //'eG Manager',
21- test : context . dataSourceConfig . test , //'Network',
21+ test : context . dataSourceConfig . test ,
22+ info :context . dataSourceConfig . descriptor , //'Network',
2223 measure : context . dataSourceConfig . measure , //'Packet Loss',
2324 from : 'squaredup'
2425 } ;
Original file line number Diff line number Diff line change @@ -5,18 +5,26 @@ import fetch from 'node-fetch';
55export async function getLiveMeasure ( context ) {
66 const serverUrl = context . pluginConfig . serverUrl ;
77 const url = `${ serverUrl } /api/eg/analytics/getLiveMeasure` ;
8+ const info = '' ;
89 context . log . info ( url ) ;
910
1011 const agent = new https . Agent ( {
1112 rejectUnauthorized : false
1213 } ) ;
1314
15+ if ( context . dataSourceConfig . descriptor != 'All' ) {
16+ info = context . dataSourceConfig . descriptor ;
17+ } else {
18+ info = '' ;
19+ }
20+
1421 // Define the body of the request
1522 const body = {
1623 componentName : context . dataSourceConfig . componentName , //'172.16.8.112:7077',
1724 componentType : context . dataSourceConfig . componentType ,
1825 test : context . dataSourceConfig . test ,
19- measure : context . dataSourceConfig . measure , //'eG Manager'
26+ measure : context . dataSourceConfig . measure ,
27+ info : info , //'eG Manager'
2028 from : 'squaredup'
2129 } ;
2230 context . log . info ( JSON . stringify ( context . dataSourceConfig ) ) ;
You can’t perform that action at this time.
0 commit comments