Skip to content

Commit 0f5e204

Browse files
author
dashuser1
committed
Descriptor parameter added in Live Mesaure and Historical Data data streams
1 parent 7ff32e7 commit 0f5e204

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

plugins/eginnovations/v1/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",

plugins/eginnovations/v1/readDataSource/getHistoricalData.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
};

plugins/eginnovations/v1/readDataSource/getLiveMeasure.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,26 @@ import fetch from 'node-fetch';
55
export 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));

0 commit comments

Comments
 (0)