Skip to content

Commit f783e2f

Browse files
author
dashuser1
committed
Bug Fixes
1 parent 9986b8e commit f783e2f

6 files changed

Lines changed: 20 additions & 15 deletions

File tree

plugins/eginnovations/v1/data_streams.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@
156156
"displayName": "Component Name",
157157
"shape": "string",
158158
"role": "label"
159+
},
160+
{
161+
"name": "state",
162+
"displayName": "State",
163+
"shape": "string",
164+
"role": "label"
159165
}
160166
]
161167
},
@@ -337,7 +343,7 @@
337343
"label": "Test Name",
338344
"title": "Test Name",
339345
"help": "Select the Test Name",
340-
"validation": { "required": false },
346+
"validation": { "required": true },
341347
"placeholder": "Select the Test Name",
342348
"isMulti": false,
343349
"data": {
@@ -352,7 +358,7 @@
352358
"label": "Measure",
353359
"title": "Measure",
354360
"help": "Select the Measure Name",
355-
"validation": { "required": false },
361+
"validation": { "required": true },
356362
"placeholder": "Select the measure Name",
357363
"isMulti": false,
358364
"data": {

plugins/eginnovations/v1/importObjects/components.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fetch from 'node-fetch';
22
import https from 'https';
33

4-
export let totalNApps = 2;
4+
export let totalNApps = 50;
55

66
/**
77
* stageComponents

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.3",
4+
"version": "1.1.4",
55
"author": "eG Innovations Pvt Ltd",
66
"description": "Monitor key application metrics from your eG environment",
77
"category": "APM",

plugins/eginnovations/v1/readDataSource/componentsByState.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function getComponentsByState(context) {
4444

4545
let data = await response.json();
4646

47-
return data.runningComponents;
47+
return data.totalComponents;
4848
} catch (error) {
4949
// Catch and log any errors
5050
context.log.error(`Error in getComponentsByState: ${error.message}`);

plugins/eginnovations/v1/readDataSource/getComponentsByType.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function getComponentsByType(context) {
4444
let data = await response.json();
4545

4646
// Extract only the componentType values in a new array of objects
47-
const componentTypes = data.runningComponents.map(component => ({
47+
const componentTypes = data.totalComponents.map(component => ({
4848
componentType: component.componentType
4949
}));
5050
return componentTypes;

plugins/eginnovations/v1/readDataSource/getLiveMeasure.js

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// import _ from 'lodash';
2-
import fetch from 'node-fetch';
32
import https from 'https';
3+
import fetch from 'node-fetch';
44

55
export async function getLiveMeasure(context) {
66
const serverUrl = context.pluginConfig.serverUrl;
@@ -13,11 +13,11 @@ export async function getLiveMeasure(context) {
1313

1414
// Define the body of the request
1515
const body = {
16-
17-
'componentName': context.dataSourceConfig.componentName,//'172.16.8.112:7077',
18-
'componentType':context.dataSourceConfig.componentType ,//'eG Manager'
19-
'from': 'squaredup'
20-
16+
componentName: context.dataSourceConfig.componentName, //'172.16.8.112:7077',
17+
componentType: context.dataSourceConfig.componentType,
18+
test: context.dataSourceConfig.test,
19+
measure: context.dataSourceConfig.measure, //'eG Manager'
20+
from: 'squaredup'
2121
};
2222
context.log.info(JSON.stringify(context.dataSourceConfig));
2323
const headers = {
@@ -27,7 +27,7 @@ export async function getLiveMeasure(context) {
2727
managerurl: `${serverUrl}`,
2828
accessID: context.pluginConfig.accessID
2929
};
30-
30+
3131
try {
3232
// Await the fetch request
3333
const response = await fetch(url, {
@@ -49,9 +49,8 @@ export async function getLiveMeasure(context) {
4949
}
5050

5151
let data = await response.json();
52-
53-
return data;
5452

53+
return data;
5554
} catch (error) {
5655
// Catch and log any errors
5756
context.log.error(`Error in getLiveMeasure: ${error.message}`);

0 commit comments

Comments
 (0)