Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions plugins/eginnovations/v1/data_streams.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{
"map": {
"unmonitored": [],
"unknown": [],
"unknown": ["unknown"],
"error": ["critical"],
"warning": ["major"],
"success": ["minor"]
Expand All @@ -35,6 +35,7 @@
{
"name": "HistoricalData",
"metadata": [
{ "name": "legend", "displayName": "Legend", "shape": "string", "role": "label" },
{
"name": "date",
"displayName": "Date",
Expand Down Expand Up @@ -88,7 +89,7 @@
{
"map": {
"unmonitored": [],
"unknown": [],
"unknown": ["Unknown"],
"error": ["Critical"],
"warning": ["Major"],
"success": ["Minor"]
Expand Down Expand Up @@ -174,10 +175,10 @@
"state",
{
"map": {
"unmonitored": ["Minor"],
"unmonitored": [],
"unknown": ["Unknown"],
"error": ["Critical"],
"warning": ["Major"],
"error": ["Critical", "Major"],
"warning": ["Minor"],
"success": ["Normal"]
}
}
Expand Down Expand Up @@ -220,14 +221,15 @@
"map": {
"unmonitored": [],
"unknown": ["Unknown"],
"error": ["Critical"],
"warning": ["Major"],
"error": ["Critical", "Major"],
"warning": ["Minor"],
"success": ["Normal"]
}
}
],
"name": "priority"
},
{ "name": "legend", "displayName": "Legend", "shape": "string", "role": "label" },
{
"name": "priority",
"displayName": "Priority",
Expand Down
2 changes: 1 addition & 1 deletion plugins/eginnovations/v1/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eGInnovations",
"displayName": "eG Enterprise",
"version": "1.1.9",
"version": "1.2.0",
"author": "eG Innovations Pvt Ltd",
"description": "Monitor key application metrics from your eG environment",
"category": "APM",
Expand Down
6 changes: 5 additions & 1 deletion plugins/eginnovations/v1/readDataSource/getHistoricalData.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ export async function getHistoricalData(context) {

let data = await response.json();

return data.data;
// return data.data;
return data.data.map((component) => ({
...component,
legend: `${component.componentType} / ${component.componentName} / ${component.test}/ ${component.descriptor}/ ${component.measure}`
}));
} catch (error) {
// Catch and log any errors
context.log.error(`Error in getHistoricalData: ${error.message}`);
Expand Down
8 changes: 6 additions & 2 deletions plugins/eginnovations/v1/readDataSource/getLiveMeasure.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export async function getLiveMeasure(context) {

if (context.dataSourceConfig.descriptor != 'All' && context.dataSourceConfig.descriptor != 'Not Applicable') {
info = context.dataSourceConfig.descriptor;
}else{
} else {
info = '';
}

Expand Down Expand Up @@ -59,7 +59,11 @@ export async function getLiveMeasure(context) {

let data = await response.json();

return data;
// return data;
return data.map((component) => ({
...component,
legend: `${component.componentType} / ${component.componentName} / ${component.test}/ ${component.descriptor}/ ${component.measure}`
}));
} catch (error) {
// Catch and log any errors
context.log.error(`Error in getLiveMeasure: ${error.message}`);
Expand Down
Loading