Skip to content

Commit 73841d8

Browse files
author
dashuser1
committed
API Response change for historical data
1 parent ab7e282 commit 73841d8

2 files changed

Lines changed: 3 additions & 4 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.8",
4+
"version": "1.1.9",
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ export async function getHistoricalData(context) {
5959
}
6060

6161
let data = await response.json();
62-
const dynamicKey = Object.keys(data)[0];
63-
context.log.info(dynamicKey);
64-
return data[dynamicKey];
62+
63+
return data.data;
6564
} catch (error) {
6665
// Catch and log any errors
6766
context.log.error(`Error in getHistoricalData: ${error.message}`);

0 commit comments

Comments
 (0)