@golemio/core 1.2.6 → 1.2.7-dev.521233702
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/helpers/HealthCheck.d.ts +0 -1
- package/dist/helpers/HealthCheck.js +0 -1
- package/dist/helpers/HealthCheck.js.map +1 -1
- package/dist/input-gateway/config/abstract.d.ts +0 -10
- package/dist/input-gateway/config/config.js +0 -12
- package/dist/input-gateway/config/config.js.map +1 -1
- package/dist/input-gateway/connectors/index.d.ts +0 -1
- package/dist/input-gateway/connectors/index.js +0 -1
- package/dist/input-gateway/connectors/index.js.map +1 -1
- package/dist/input-gateway/helpers/Logger.js +2 -48
- package/dist/input-gateway/helpers/Logger.js.map +1 -1
- package/dist/integration-engine/config/abstract.d.ts +0 -10
- package/dist/integration-engine/config/config.js +0 -12
- package/dist/integration-engine/config/config.js.map +1 -1
- package/dist/integration-engine/connectors/index.d.ts +0 -1
- package/dist/integration-engine/connectors/index.js +0 -1
- package/dist/integration-engine/connectors/index.js.map +1 -1
- package/dist/integration-engine/helpers/Logger.js +1 -23
- package/dist/integration-engine/helpers/Logger.js.map +1 -1
- package/dist/monitoring/opentelemetry/instrumentation/index.d.ts +2 -1
- package/dist/monitoring/opentelemetry/instrumentation/index.js +2 -0
- package/dist/monitoring/opentelemetry/instrumentation/index.js.map +1 -1
- package/dist/shared/luxon.d.ts +2 -0
- package/dist/shared/{influx.js → luxon.js} +3 -3
- package/dist/shared/luxon.js.map +1 -0
- package/package.json +133 -130
- package/dist/input-gateway/connectors/InfluxDBConnector.d.ts +0 -9
- package/dist/input-gateway/connectors/InfluxDBConnector.js +0 -60
- package/dist/input-gateway/connectors/InfluxDBConnector.js.map +0 -1
- package/dist/integration-engine/connectors/InfluxConnector.d.ts +0 -9
- package/dist/integration-engine/connectors/InfluxConnector.js +0 -62
- package/dist/integration-engine/connectors/InfluxConnector.js.map +0 -1
- package/dist/shared/influx.d.ts +0 -2
- package/dist/shared/influx.js.map +0 -1
|
@@ -15,7 +15,6 @@ var Service;
|
|
|
15
15
|
Service["POSTGRES"] = "PostgreSQL";
|
|
16
16
|
Service["MONGO"] = "MongoDB";
|
|
17
17
|
Service["REDIS"] = "RedisDB";
|
|
18
|
-
Service["INFLUX"] = "InfluxDB";
|
|
19
18
|
Service["RABBITMQ"] = "RabbitMQ";
|
|
20
19
|
})(Service = exports.Service || (exports.Service = {}));
|
|
21
20
|
var Status;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HealthCheck.js","sourceRoot":"","sources":["../../src/helpers/HealthCheck.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"HealthCheck.js","sourceRoot":"","sources":["../../src/helpers/HealthCheck.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,IAAY,OAKX;AALD,WAAY,OAAO;IACf,kCAAuB,CAAA;IACvB,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;IACjB,gCAAqB,CAAA;AACzB,CAAC,EALW,OAAO,GAAP,eAAO,KAAP,eAAO,QAKlB;AAED,IAAK,MAGJ;AAHD,WAAK,MAAM;IACP,mBAAS,CAAA;IACT,uBAAa,CAAA;AACjB,CAAC,EAHI,MAAM,KAAN,MAAM,QAGV;AAiBM,MAAM,gBAAgB,GAAG,CAAO,QAAyB,EAA0B,EAAE;IACxF,IAAI;QACA,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,GAAG,CAC9B,QAAQ,CAAC,GAAG,CAAC,CAAO,OAAO,EAAE,EAAE;YAC3B,OAAO,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC,MAAM,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QAC7F,CAAC,CAAA,CAAC,CACL,CAAC;QACF,MAAM,SAAS,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,CAAC;QACpE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;KACpD;IAAC,OAAO,GAAG,EAAE;QACV,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC;KAC1C;AACL,CAAC,CAAA,CAAC;AAZW,QAAA,gBAAgB,oBAY3B"}
|
|
@@ -9,16 +9,6 @@ export interface IConfiguration {
|
|
|
9
9
|
app_version: string | undefined;
|
|
10
10
|
app_name: string;
|
|
11
11
|
colorful_logs: string | undefined;
|
|
12
|
-
influx_db: {
|
|
13
|
-
database: string | undefined;
|
|
14
|
-
enabled: boolean;
|
|
15
|
-
hosts: Array<{
|
|
16
|
-
host: string | undefined;
|
|
17
|
-
port: number;
|
|
18
|
-
}>;
|
|
19
|
-
password: string | undefined;
|
|
20
|
-
username: string | undefined;
|
|
21
|
-
};
|
|
22
12
|
log_level: string | undefined;
|
|
23
13
|
node_env: string;
|
|
24
14
|
payload_limit_csv: string | undefined;
|
|
@@ -9,18 +9,6 @@ exports.config = {
|
|
|
9
9
|
app_version: process.env.npm_package_version,
|
|
10
10
|
app_name: process.env.APP_NAME || "input-gateway",
|
|
11
11
|
colorful_logs: process.env.COLORFUL_LOGS,
|
|
12
|
-
influx_db: {
|
|
13
|
-
database: process.env.INFLUX_DB_DATABASE,
|
|
14
|
-
enabled: process.env.INFLUX_DB_ENABLED === "true",
|
|
15
|
-
hosts: [
|
|
16
|
-
{
|
|
17
|
-
host: process.env.INFLUX_DB_HOST,
|
|
18
|
-
port: parseInt(process.env.INFLUX_DB_PORT, 10),
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
-
password: process.env.INFLUX_DB_PASSWORD,
|
|
22
|
-
username: process.env.INFLUX_DB_USERNAME,
|
|
23
|
-
},
|
|
24
12
|
log_level: process.env.LOG_LEVEL,
|
|
25
13
|
node_env: process.env.NODE_ENV || "development",
|
|
26
14
|
payload_limit_csv: process.env.PAYLOAD_LIMIT_CSV,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/input-gateway/config/config.ts"],"names":[],"mappings":";;;;AAAA,mCAAiC;AACjC,4CAAwC;AAGxC,MAAM,oBAAoB,GAAG,IAAI,uBAAY,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC;AAEpE,QAAA,MAAM,GAAmB;IAClC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IAC5C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,eAAe;IACjD,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;IACxC,SAAS,EAAE
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/input-gateway/config/config.ts"],"names":[],"mappings":";;;;AAAA,mCAAiC;AACjC,4CAAwC;AAGxC,MAAM,oBAAoB,GAAG,IAAI,uBAAY,CAAC,sBAAsB,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC;AAEpE,QAAA,MAAM,GAAmB;IAClC,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB;IAC5C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,eAAe;IACjD,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa;IACxC,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS;IAChC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,aAAa;IAC/C,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;IAChD,kBAAkB,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB;IAClD,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;IAChD,IAAI,EAAE,O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CAAC,CAAC,CAAC,CAAC;KAClG;IACD,OAAO,EAAE;QACL,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,KAAK,MAAM;QAC/C,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,YAAsB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;QACxF,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE;KAC3C;IACD,SAAS,EAAE;QACP,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,MAAM;QACpD,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;QACzC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;QACnG,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;KACvG;CACJ,CAAC"}
|
|
@@ -12,5 +12,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
/* ig/connectors/index.ts */
|
|
14
14
|
__exportStar(require("./AMQPConnector"), exports);
|
|
15
|
-
__exportStar(require("./InfluxDBConnector"), exports);
|
|
16
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input-gateway/connectors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA4B;AAC5B,kDAAgC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input-gateway/connectors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA4B;AAC5B,kDAAgC"}
|
|
@@ -14,7 +14,6 @@ const errors_1 = require("@golemio/errors");
|
|
|
14
14
|
const events_1 = require("events");
|
|
15
15
|
const Logger_1 = require("../../helpers/Logger");
|
|
16
16
|
const config_1 = require("../config");
|
|
17
|
-
const connectors_1 = require("../connectors");
|
|
18
17
|
var LoggerEventType;
|
|
19
18
|
(function (LoggerEventType) {
|
|
20
19
|
LoggerEventType["ResponseTimes"] = "response-time:middleware";
|
|
@@ -32,55 +31,10 @@ exports.requestLogger = requestLogger;
|
|
|
32
31
|
const loggerEvents = new events_1.EventEmitter();
|
|
33
32
|
exports.loggerEvents = loggerEvents;
|
|
34
33
|
loggerEvents.on(LoggerEventType.ResponseTimes, ({ req, name, elapsedMS }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
35
|
-
|
|
36
|
-
try {
|
|
37
|
-
const influxDB = connectors_1.InfluxConnector.getConnection();
|
|
38
|
-
yield influxDB.writePoints([
|
|
39
|
-
{
|
|
40
|
-
fields: {
|
|
41
|
-
response_time: elapsedMS,
|
|
42
|
-
},
|
|
43
|
-
measurement: "response_times",
|
|
44
|
-
tags: {
|
|
45
|
-
function: name,
|
|
46
|
-
method: req.method,
|
|
47
|
-
url: req.originalUrl,
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
]);
|
|
51
|
-
}
|
|
52
|
-
catch (err) {
|
|
53
|
-
loggerEvents.emit("error", new errors_1.CustomError(`Error while saving data to InfluxDB!`, true, LoggerEventType.ResponseTimes, undefined, new errors_1.CustomError(`${req.method} ${req.originalUrl} : ${name} ${elapsedMS}ms`, true, undefined, undefined, err)));
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
logger.verbose(`ResponseTimesLogger: ${req.method} ${req.originalUrl} : ${name} ${elapsedMS}ms`);
|
|
58
|
-
}
|
|
34
|
+
logger.verbose(`ResponseTimesLogger: ${req.method} ${req.originalUrl} : ${name} ${elapsedMS}ms`);
|
|
59
35
|
}));
|
|
60
36
|
loggerEvents.on(LoggerEventType.NumberOfRecords, ({ req, numberOfRecords }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
61
|
-
|
|
62
|
-
const influxDB = connectors_1.InfluxConnector.getConnection();
|
|
63
|
-
try {
|
|
64
|
-
yield influxDB.writePoints([
|
|
65
|
-
{
|
|
66
|
-
fields: {
|
|
67
|
-
number_of_records: numberOfRecords,
|
|
68
|
-
},
|
|
69
|
-
measurement: "number_of_records",
|
|
70
|
-
tags: {
|
|
71
|
-
method: req.method,
|
|
72
|
-
url: req.originalUrl,
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
]);
|
|
76
|
-
}
|
|
77
|
-
catch (err) {
|
|
78
|
-
loggerEvents.emit("error", new errors_1.CustomError(`Error while saving data to InfluxDB!`, true, LoggerEventType.NumberOfRecords, undefined, new errors_1.CustomError(`${req.method} ${req.originalUrl} : ${numberOfRecords}`, true, undefined, undefined, err)));
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
else {
|
|
82
|
-
logger.verbose(`NumberOfRecordsLogger: ${req.method} ${req.originalUrl} : ${numberOfRecords}`);
|
|
83
|
-
}
|
|
37
|
+
logger.verbose(`NumberOfRecordsLogger: ${req.method} ${req.originalUrl} : ${numberOfRecords}`);
|
|
84
38
|
}));
|
|
85
39
|
loggerEvents.on("error", (error) => {
|
|
86
40
|
errors_1.ErrorHandler.handle(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/input-gateway/helpers/Logger.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA4D;AAC5D,mCAAsC;AAEtC,iDAAoE;AACpE,sCAAoC;
|
|
1
|
+
{"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/input-gateway/helpers/Logger.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA4D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
|
22
22
|
app_name: string;
|
|
23
23
|
datasources: Record<string, any>;
|
|
24
|
-
influx_db: {
|
|
25
|
-
database: string | undefined;
|
|
26
|
-
enabled: boolean;
|
|
27
|
-
hosts: Array<{
|
|
28
|
-
host: string | undefined;
|
|
29
|
-
port: number;
|
|
30
|
-
}>;
|
|
31
|
-
password: string | undefined;
|
|
32
|
-
username: string | undefined;
|
|
33
|
-
};
|
|
34
24
|
port: string | undefined;
|
|
35
25
|
queuesBlacklist: Record<string, string[]>;
|
|
36
26
|
s3: {
|
|
@@ -23,18 +23,6 @@ exports.config = {
|
|
|
23
23
|
app_version: process.env.npm_package_version,
|
|
24
24
|
app_name: process.env.APP_NAME || "integration-engine",
|
|
25
25
|
datasources: new _helpers_1.ConfigLoader("datasources").conf,
|
|
26
|
-
influx_db: {
|
|
27
|
-
database: process.env.INFLUX_DB_DATABASE,
|
|
28
|
-
enabled: process.env.INFLUX_DB_ENABLED === "true",
|
|
29
|
-
hosts: [
|
|
30
|
-
{
|
|
31
|
-
host: process.env.INFLUX_DB_HOST,
|
|
32
|
-
port: parseInt(process.env.INFLUX_DB_PORT, 10),
|
|
33
|
-
},
|
|
34
|
-
],
|
|
35
|
-
password: process.env.INFLUX_DB_PASSWORD,
|
|
36
|
-
username: process.env.INFLUX_DB_USERNAME,
|
|
37
|
-
},
|
|
38
26
|
port: process.env.PORT,
|
|
39
27
|
queuesBlacklist: new _helpers_1.ConfigLoader("queuesBlacklist", true).conf,
|
|
40
28
|
s3: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/integration-engine/config/config.ts"],"names":[],"mappings":";;;AAAA,4CAAwC;AAG3B,QAAA,MAAM,GAAmB;IAClC,eAAe,EAAE,OAAO,CAAC,GAAG,CAAC,eAAe,IAAI,IAAI;IACpD,gBAAgB,EAAE,OAAO,CAAC,GAAG,CAAC,gBAAgB;IAC9C,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,SAA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,CAAC,GAAG,CAAC,YAAsB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;QACxF,MAAM,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,EAAE;KAC3C;IACD,SAAS,EAAE;QACP,aAAa,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,KAAK,MAAM;QACpD,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;QACzC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS;QACnG,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;KACvG;IACD,gBAAgB,EAAE;QACd,iBAAiB,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,IAAI,GAAG;QACnF,qHAAqH;QACrH,uBAAuB,EAAE,OAAO,CAAC,GAAG,CAAC,yCAAyC;YAC1E,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,yCAAyC,CAAC;YAC/D,CAAC,CAAC,CAAC;KACV;CACJ,CAAC"}
|
|
@@ -12,7 +12,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
/* ie/connectors/index.ts */
|
|
14
14
|
__exportStar(require("./AMQPConnector"), exports);
|
|
15
|
-
__exportStar(require("./InfluxConnector"), exports);
|
|
16
15
|
__exportStar(require("./MongoConnector"), exports);
|
|
17
16
|
__exportStar(require("./PostgresConnector"), exports);
|
|
18
17
|
__exportStar(require("./RedisConnector"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integration-engine/connectors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA4B;AAC5B,kDAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/integration-engine/connectors/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4BAA4B;AAC5B,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,mDAAiC"}
|
|
@@ -16,7 +16,6 @@ const events_1 = require("events");
|
|
|
16
16
|
const Logger_1 = require("../../helpers/Logger");
|
|
17
17
|
const ErrorLog_1 = require("../../schema-definitions/ErrorLog");
|
|
18
18
|
const config_1 = require("../config");
|
|
19
|
-
const connectors_1 = require("../connectors");
|
|
20
19
|
const models_1 = require("../models");
|
|
21
20
|
var LoggerEventType;
|
|
22
21
|
(function (LoggerEventType) {
|
|
@@ -35,28 +34,7 @@ exports.requestLogger = requestLogger;
|
|
|
35
34
|
const loggerEvents = new events_1.EventEmitter();
|
|
36
35
|
exports.loggerEvents = loggerEvents;
|
|
37
36
|
loggerEvents.on(LoggerEventType.NumberOfRecords, ({ name, numberOfRecords }) => __awaiter(void 0, void 0, void 0, function* () {
|
|
38
|
-
|
|
39
|
-
const influxDB = connectors_1.InfluxConnector.getConnection();
|
|
40
|
-
try {
|
|
41
|
-
yield influxDB.writePoints([
|
|
42
|
-
{
|
|
43
|
-
fields: {
|
|
44
|
-
number_of_records: numberOfRecords,
|
|
45
|
-
},
|
|
46
|
-
measurement: "number_of_records",
|
|
47
|
-
tags: {
|
|
48
|
-
name,
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
]);
|
|
52
|
-
}
|
|
53
|
-
catch (err) {
|
|
54
|
-
loggerEvents.emit("error", new errors_1.CustomError("Error while saving data to InfluxDB.", true, LoggerEventType.NumberOfRecords, 1004, err));
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
logger.verbose(`NumberOfRecordsLogger: ${name} : ${numberOfRecords}`);
|
|
59
|
-
}
|
|
37
|
+
logger.verbose(`NumberOfRecordsLogger: ${name} : ${numberOfRecords}`);
|
|
60
38
|
}));
|
|
61
39
|
loggerEvents.on("error", (error) => {
|
|
62
40
|
errors_1.ErrorHandler.handle(error);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/Logger.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA4D;AAC5D,kDAA+C;AAC/C,mCAAsC;AACtC,iDAAoE;AACpE,gEAAyC;AACzC,sCAAoC;AACpC,
|
|
1
|
+
{"version":3,"file":"Logger.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/Logger.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA4D;AAC5D,kDAA+C;AAC/C,mCAAsC;AACtC,iDAAoE;AACpE,gEAAyC;AACzC,sCAAoC;AACpC,sCAA2C;AAW3C,IAAK,eAGJ;AAHD,WAAK,eAAe;IAChB,wDAAqC,CAAA;IACrC,0DAAuC,CAAA;AAC3C,CAAC,EAHI,eAAe,KAAf,eAAe,QAGnB;AAoEqC,0CAAe;AA7DrD,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,qBAAY,EAAC;IAC5B,WAAW,EAAE,oBAAoB;IACjC,OAAO,EAAE,eAAM,CAAC,QAAQ;IACxB,QAAQ,EAAE,eAAM,CAAC,SAAS;CAC7B,CAAC,CAAC;AAyDgB,qBAAG;AAvDtB,MAAM,aAAa,GAAG,IAAA,4BAAmB,GAAE,CAAC;AAuDW,sCAAa;AAtDpE,MAAM,YAAY,GAAG,IAAI,qBAAY,EAAE,CAAC;AAsDhB,oCAAY;AApDpC,YAAY,CAAC,EAAE,CAAC,eAAe,CAAC,eAAe,EAAE,CAAO,EAAE,IAAI,EAAE,eAAe,EAAwC,EAAE,EAAE;IACvH,MAAM,CAAC,OAAO,CAAC,0BAA0B,IAAI,MAAM,eAAe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,eAAe,CAAC,CAAC;KAC/C;IAAC,OAAO,GAAG,EAAE;QACV,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC1B;AACL,CAAC,CAAA,CAAC,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { HttpInstrumentation } from "@opentelemetry/instrumentation-http";
|
|
2
2
|
import { IORedisInstrumentation } from "@opentelemetry/instrumentation-ioredis";
|
|
3
|
+
import { RedisInstrumentation } from "@opentelemetry/instrumentation-redis";
|
|
3
4
|
import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express";
|
|
4
5
|
import { SequelizeInstrumentation } from "opentelemetry-instrumentation-sequelize";
|
|
5
6
|
import { MongooseInstrumentation } from "opentelemetry-instrumentation-mongoose";
|
|
6
7
|
import { AmqplibInstrumentation } from "opentelemetry-instrumentation-amqplib";
|
|
7
8
|
import { AwsInstrumentation } from "opentelemetry-instrumentation-aws-sdk";
|
|
8
|
-
export declare const getInstrumentation: () => (ExpressInstrumentation | HttpInstrumentation | SequelizeInstrumentation | MongooseInstrumentation | AmqplibInstrumentation | IORedisInstrumentation | AwsInstrumentation)[];
|
|
9
|
+
export declare const getInstrumentation: () => (ExpressInstrumentation | HttpInstrumentation | SequelizeInstrumentation | MongooseInstrumentation | AmqplibInstrumentation | IORedisInstrumentation | RedisInstrumentation | AwsInstrumentation)[];
|
|
@@ -4,6 +4,7 @@ exports.getInstrumentation = void 0;
|
|
|
4
4
|
// Instrumentation
|
|
5
5
|
const instrumentation_http_1 = require("@opentelemetry/instrumentation-http");
|
|
6
6
|
const instrumentation_ioredis_1 = require("@opentelemetry/instrumentation-ioredis");
|
|
7
|
+
const instrumentation_redis_1 = require("@opentelemetry/instrumentation-redis");
|
|
7
8
|
const instrumentation_express_1 = require("@opentelemetry/instrumentation-express");
|
|
8
9
|
const opentelemetry_instrumentation_sequelize_1 = require("opentelemetry-instrumentation-sequelize");
|
|
9
10
|
const opentelemetry_instrumentation_mongoose_1 = require("opentelemetry-instrumentation-mongoose");
|
|
@@ -19,6 +20,7 @@ const getInstrumentation = () => {
|
|
|
19
20
|
new opentelemetry_instrumentation_mongoose_1.MongooseInstrumentation(configs_1.mongooseConfig),
|
|
20
21
|
new opentelemetry_instrumentation_amqplib_1.AmqplibInstrumentation(configs_1.amqplibConfig),
|
|
21
22
|
new instrumentation_ioredis_1.IORedisInstrumentation(),
|
|
23
|
+
new instrumentation_redis_1.RedisInstrumentation(),
|
|
22
24
|
new opentelemetry_instrumentation_aws_sdk_1.AwsInstrumentation(configs_1.awsSdkConfig),
|
|
23
25
|
];
|
|
24
26
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/monitoring/opentelemetry/instrumentation/index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,8EAA0E;AAC1E,oFAAgF;AAChF,oFAAgF;AAChF,qGAAmF;AACnF,mGAAiF;AACjF,iGAA+E;AAC/E,iGAA2E;AAE3E,UAAU;AACV,uCAAqG;AAE9F,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO;QACH,IAAI,gDAAsB,EAAE;QAC5B,IAAI,0CAAmB,CAAC,oBAAU,CAAC;QACnC,IAAI,kEAAwB,CAAC,yBAAe,CAAC;QAC7C,IAAI,gEAAuB,CAAC,wBAAc,CAAC;QAC3C,IAAI,8DAAsB,CAAC,uBAAa,CAAC;QACzC,IAAI,gDAAsB,EAAE;QAC5B,IAAI,0DAAkB,CAAC,sBAAY,CAAC;KACvC,CAAC;AACN,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/monitoring/opentelemetry/instrumentation/index.ts"],"names":[],"mappings":";;;AAAA,kBAAkB;AAClB,8EAA0E;AAC1E,oFAAgF;AAChF,gFAA4E;AAC5E,oFAAgF;AAChF,qGAAmF;AACnF,mGAAiF;AACjF,iGAA+E;AAC/E,iGAA2E;AAE3E,UAAU;AACV,uCAAqG;AAE9F,MAAM,kBAAkB,GAAG,GAAG,EAAE;IACnC,OAAO;QACH,IAAI,gDAAsB,EAAE;QAC5B,IAAI,0CAAmB,CAAC,oBAAU,CAAC;QACnC,IAAI,kEAAwB,CAAC,yBAAe,CAAC;QAC7C,IAAI,gEAAuB,CAAC,wBAAc,CAAC;QAC3C,IAAI,8DAAsB,CAAC,uBAAa,CAAC;QACzC,IAAI,gDAAsB,EAAE;QAC5B,IAAI,4CAAoB,EAAE;QAC1B,IAAI,0DAAkB,CAAC,sBAAY,CAAC;KACvC,CAAC;AACN,CAAC,CAAC;AAXW,QAAA,kBAAkB,sBAW7B"}
|
|
@@ -18,6 +18,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
18
18
|
__setModuleDefault(result, mod);
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
|
-
const
|
|
22
|
-
module.exports =
|
|
23
|
-
//# sourceMappingURL=
|
|
21
|
+
const Luxon = __importStar(require("luxon"));
|
|
22
|
+
module.exports = Luxon;
|
|
23
|
+
//# sourceMappingURL=luxon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"luxon.js","sourceRoot":"","sources":["../../src/shared/luxon.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAC/B,iBAAS,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,132 +1,135 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
2
|
+
"name": "@golemio/core",
|
|
3
|
+
"version": "1.2.7-dev.521233702",
|
|
4
|
+
"description": "Golemio Core Module",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"bin": {
|
|
8
|
+
"golemio-import-test-data": "bin/import-test-data.js"
|
|
9
|
+
},
|
|
10
|
+
"scripts": {
|
|
11
|
+
"build": "rimraf ./dist && ttsc -p ./tsconfig.build.json",
|
|
12
|
+
"build-minimal": "run-s 'build --sourceMap false --declaration false'",
|
|
13
|
+
"build-watch": "run-s 'build --watch --preserveWatchOutput'",
|
|
14
|
+
"test": "cross-env NODE_ENV=test TS_NODE_COMPILER='ttypescript' mocha --exit --check-leaks --timeout 120000 -r ts-node/register -r dotenv/config 'test/**/*.test.ts'",
|
|
15
|
+
"test-debug": "run-s 'test --inspect-brk=9230'",
|
|
16
|
+
"code-coverage": "nyc run-s 'test -r source-map-support/register'",
|
|
17
|
+
"generate-docs": "typedoc --out docs/typedoc src",
|
|
18
|
+
"lint": "eslint \"{src,test}/**/*.ts\""
|
|
19
|
+
},
|
|
20
|
+
"keywords": [
|
|
21
|
+
"golemio"
|
|
22
|
+
],
|
|
23
|
+
"author": "Operator ICT, a.s.",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"repository": {
|
|
26
|
+
"type": "git",
|
|
27
|
+
"url": "https://gitlab.com/operator-ict/golemio/code/modules/core"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@commitlint/cli": "^11.0.0",
|
|
31
|
+
"@commitlint/config-conventional": "^11.0.0",
|
|
32
|
+
"@golemio/eslint-config": "^1.1.0",
|
|
33
|
+
"@types/amqplib": "^0.5.17",
|
|
34
|
+
"@types/apicache": "^1.2.3",
|
|
35
|
+
"@types/chai": "4.2.3",
|
|
36
|
+
"@types/chai-as-promised": "7.1.2",
|
|
37
|
+
"@types/content-type": "^1.1.3",
|
|
38
|
+
"@types/debug": "0.0.31",
|
|
39
|
+
"@types/decompress": "^4.2.3",
|
|
40
|
+
"@types/ioredis": "^4.17.10",
|
|
41
|
+
"@types/lodash": "^4.14.165",
|
|
42
|
+
"@types/mocha": "^8.2.0",
|
|
43
|
+
"@types/morgan": "^1.9.2",
|
|
44
|
+
"@types/node": "^14.14.20",
|
|
45
|
+
"@types/redis": "^2.8.28",
|
|
46
|
+
"@types/sinon": "7.0.13",
|
|
47
|
+
"@types/ssh2-sftp-client": "^5.3.1",
|
|
48
|
+
"@types/supertest": "^2.0.11",
|
|
49
|
+
"@zerollup/ts-transform-paths": "^1.7.18",
|
|
50
|
+
"chai": "4.2.0",
|
|
51
|
+
"chai-as-promised": "7.1.1",
|
|
52
|
+
"cross-env": "^7.0.3",
|
|
53
|
+
"eslint": "^8.1.1",
|
|
54
|
+
"husky": "^4.3.7",
|
|
55
|
+
"mocha": "^9.1.2",
|
|
56
|
+
"nock": "^13.0.5",
|
|
57
|
+
"npm-run-all": "^4.1.5",
|
|
58
|
+
"nyc": "^15.1.0",
|
|
59
|
+
"prettier": "^2.5.1",
|
|
60
|
+
"pretty-quick": "^3.1.0",
|
|
61
|
+
"rimraf": "^3.0.2",
|
|
62
|
+
"sinon": "7.1.1",
|
|
63
|
+
"source-map-support": "0.5.9",
|
|
64
|
+
"supertest": "^6.1.6",
|
|
65
|
+
"ts-node": "^9.1.1",
|
|
66
|
+
"ttypescript": "^1.5.13",
|
|
67
|
+
"typedoc": "^0.21.4",
|
|
68
|
+
"typescript": "4.4.4"
|
|
69
|
+
},
|
|
70
|
+
"dependencies": {
|
|
71
|
+
"@golemio/errors": "^1.0.1",
|
|
72
|
+
"@golemio/utils": "^1.0.0",
|
|
73
|
+
"@golemio/validator": "0.2.0",
|
|
74
|
+
"@google-cloud/storage": "^5.18.0",
|
|
75
|
+
"@opentelemetry/api": "^1.0.2",
|
|
76
|
+
"@opentelemetry/exporter-jaeger": "^0.24.0",
|
|
77
|
+
"@opentelemetry/instrumentation-express": "^0.24.0",
|
|
78
|
+
"@opentelemetry/instrumentation-http": "^0.24.0",
|
|
79
|
+
"@opentelemetry/instrumentation-ioredis": "^0.24.0",
|
|
80
|
+
"@opentelemetry/instrumentation-redis": "^0.24.0",
|
|
81
|
+
"@opentelemetry/node": "^0.24.0",
|
|
82
|
+
"@opentelemetry/resources": "^0.24.0",
|
|
83
|
+
"@opentelemetry/tracing": "^0.24.0",
|
|
84
|
+
"@sentry/node": "^6.11.0",
|
|
85
|
+
"@sentry/tracing": "^6.11.0",
|
|
86
|
+
"@types/express": "^4.16.0",
|
|
87
|
+
"@types/luxon": "^2.3.1",
|
|
88
|
+
"@types/request-promise": "^4.1.45",
|
|
89
|
+
"ajv": "^8.10.0",
|
|
90
|
+
"amqplib": "^0.7.1",
|
|
91
|
+
"apicache": "^1.6.3",
|
|
92
|
+
"aws-sdk": "^2.823.0",
|
|
93
|
+
"axios": "^0.24.0",
|
|
94
|
+
"basic-ftp": "^4.6.6",
|
|
95
|
+
"content-type": "^1.0.4",
|
|
96
|
+
"debug": "3.1.0",
|
|
97
|
+
"decompress": "^4.2.1",
|
|
98
|
+
"dotenv": "^8.2.0",
|
|
99
|
+
"express": "^4.16.4",
|
|
100
|
+
"express-validator": "^5.3.1",
|
|
101
|
+
"fast-csv": "^4.3.6",
|
|
102
|
+
"fast-glob": "^3.2.5",
|
|
103
|
+
"iconv-lite": "^0.6.2",
|
|
104
|
+
"ioredis": "^4.19.4",
|
|
105
|
+
"lightship": "^6.7.2",
|
|
106
|
+
"lodash": "^4.17.21",
|
|
107
|
+
"luxon": "^2.3.2",
|
|
108
|
+
"moment-timezone": "^0.5.26",
|
|
109
|
+
"mongodb-restore-dump": "1.0.1",
|
|
110
|
+
"mongoose": "^5.3.6",
|
|
111
|
+
"morgan": "^1.10.0",
|
|
112
|
+
"opentelemetry-instrumentation-amqplib": "^0.24.0",
|
|
113
|
+
"opentelemetry-instrumentation-aws-sdk": "^0.24.1",
|
|
114
|
+
"opentelemetry-instrumentation-mongoose": "^0.24.0",
|
|
115
|
+
"opentelemetry-instrumentation-sequelize": "^0.24.0",
|
|
116
|
+
"path-to-regexp": "^6.2.0",
|
|
117
|
+
"pg": "^8.6.0",
|
|
118
|
+
"prom-client": "^14.0.0",
|
|
119
|
+
"redis": "^3.1.1",
|
|
120
|
+
"request": "2.88.0",
|
|
121
|
+
"request-promise": "^4.2.5",
|
|
122
|
+
"sequelize": "^6.6.5",
|
|
123
|
+
"ssh2-sftp-client": "^7.1.0",
|
|
124
|
+
"winston": "^3.3.3",
|
|
125
|
+
"xml2js-es6-promise": "^1.1.1"
|
|
126
|
+
},
|
|
127
|
+
"resolutions": {
|
|
128
|
+
"mpath": "^0.8.4",
|
|
129
|
+
"url-parse": "^1.5.6",
|
|
130
|
+
"minimist": "^1.2.6",
|
|
131
|
+
"moment": "^2.29.2",
|
|
132
|
+
"@google-cloud/storage/**/node-forge": "^1.3.0",
|
|
133
|
+
"**/axios/follow-redirects": "^1.14.7"
|
|
134
|
+
}
|
|
132
135
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare class MyInfluxDB {
|
|
2
|
-
private influxDB;
|
|
3
|
-
connect: (schemas: any[]) => Promise<any>;
|
|
4
|
-
getConnection: () => any;
|
|
5
|
-
isConnected: () => Promise<boolean>;
|
|
6
|
-
disconnect: () => Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
declare const InfluxConnector: MyInfluxDB;
|
|
9
|
-
export { InfluxConnector };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InfluxConnector = void 0;
|
|
13
|
-
const errors_1 = require("@golemio/errors");
|
|
14
|
-
const influx_1 = require("influx");
|
|
15
|
-
const config_1 = require("../config");
|
|
16
|
-
const helpers_1 = require("../helpers");
|
|
17
|
-
class MyInfluxDB {
|
|
18
|
-
constructor() {
|
|
19
|
-
this.connect = (schemas) => __awaiter(this, void 0, void 0, function* () {
|
|
20
|
-
try {
|
|
21
|
-
if (this.influxDB) {
|
|
22
|
-
return this.influxDB;
|
|
23
|
-
}
|
|
24
|
-
this.influxDB = new influx_1.InfluxDB({
|
|
25
|
-
database: config_1.config.influx_db.database,
|
|
26
|
-
hosts: config_1.config.influx_db.hosts,
|
|
27
|
-
password: config_1.config.influx_db.password,
|
|
28
|
-
schema: schemas,
|
|
29
|
-
username: config_1.config.influx_db.username,
|
|
30
|
-
});
|
|
31
|
-
const names = yield this.influxDB.getDatabaseNames();
|
|
32
|
-
if (!names.includes(config_1.config.influx_db.database)) {
|
|
33
|
-
yield this.influxDB.createDatabase(config_1.config.influx_db.database, { duration: "7d" });
|
|
34
|
-
}
|
|
35
|
-
return this.influxDB;
|
|
36
|
-
}
|
|
37
|
-
catch (err) {
|
|
38
|
-
errors_1.ErrorHandler.handle(new errors_1.CustomError("Error while connecting to InfluxDB.", false, undefined, err));
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
this.getConnection = () => {
|
|
42
|
-
if (!this.influxDB) {
|
|
43
|
-
throw new errors_1.CustomError("InfluxDB connection does not exist. First call connect() method.", false, undefined);
|
|
44
|
-
}
|
|
45
|
-
return this.influxDB;
|
|
46
|
-
};
|
|
47
|
-
this.isConnected = () => __awaiter(this, void 0, void 0, function* () {
|
|
48
|
-
var _a;
|
|
49
|
-
const stats = (yield ((_a = this.influxDB) === null || _a === void 0 ? void 0 : _a.ping(5000))) || [];
|
|
50
|
-
return !!stats.length && stats[0].online;
|
|
51
|
-
});
|
|
52
|
-
this.disconnect = () => __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
helpers_1.log.info("InfluxDB disconnect called");
|
|
54
|
-
this.influxDB = null;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const InfluxConnector = new MyInfluxDB();
|
|
59
|
-
exports.InfluxConnector = InfluxConnector;
|
|
60
|
-
//# sourceMappingURL=InfluxDBConnector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InfluxDBConnector.js","sourceRoot":"","sources":["../../../src/input-gateway/connectors/InfluxDBConnector.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA4D;AAC5D,mCAAkC;AAClC,sCAAoC;AACpC,wCAAkC;AAElC,MAAM,UAAU;IAAhB;QAGW,YAAO,GAAG,CAAO,OAAc,EAAgB,EAAE;YACpD,IAAI;gBACA,IAAI,IAAI,CAAC,QAAQ,EAAE;oBACf,OAAO,IAAI,CAAC,QAAQ,CAAC;iBACxB;gBAED,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAQ,CAAC;oBACzB,QAAQ,EAAE,eAAM,CAAC,SAAS,CAAC,QAAQ;oBACnC,KAAK,EAAE,eAAM,CAAC,SAAS,CAAC,KAAK;oBAC7B,QAAQ,EAAE,eAAM,CAAC,SAAS,CAAC,QAAQ;oBACnC,MAAM,EAAE,OAAO;oBACf,QAAQ,EAAE,eAAM,CAAC,SAAS,CAAC,QAAQ;iBACtC,CAAC,CAAC;gBAEH,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,gBAAgB,EAAE,CAAC;gBACrD,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,eAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;oBAC5C,MAAM,IAAI,CAAC,QAAQ,CAAC,cAAc,CAAC,eAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;iBACrF;gBAED,OAAO,IAAI,CAAC,QAAQ,CAAC;aACxB;YAAC,OAAO,GAAG,EAAE;gBACV,qBAAY,CAAC,MAAM,CAAC,IAAI,oBAAW,CAAC,qCAAqC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC;aACtG;QACL,CAAC,CAAA,CAAC;QAEK,kBAAa,GAAG,GAAQ,EAAE;YAC7B,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;gBAChB,MAAM,IAAI,oBAAW,CAAC,kEAAkE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;aAC/G;YACD,OAAO,IAAI,CAAC,QAAQ,CAAC;QACzB,CAAC,CAAC;QAEK,gBAAW,GAAG,GAA2B,EAAE;;YAC9C,MAAM,KAAK,GAAG,CAAC,MAAM,CAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,IAAI,CAAC,IAAI,CAAC,CAAA,CAAC,IAAI,EAAE,CAAC;YACtD,OAAO,CAAC,CAAC,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;QAC7C,CAAC,CAAA,CAAC;QAEK,eAAU,GAAG,GAAwB,EAAE;YAC1C,aAAG,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;YACvC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;QACzB,CAAC,CAAA,CAAC;IACN,CAAC;CAAA;AAED,MAAM,eAAe,GAAG,IAAI,UAAU,EAAE,CAAC;AAEhC,0CAAe"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
declare class MyInflux {
|
|
2
|
-
private influx;
|
|
3
|
-
connect: (schemas: any[]) => Promise<any>;
|
|
4
|
-
getConnection: () => any;
|
|
5
|
-
isConnected: () => Promise<boolean>;
|
|
6
|
-
disconnect: () => Promise<void>;
|
|
7
|
-
}
|
|
8
|
-
declare const InfluxConnector: MyInflux;
|
|
9
|
-
export { InfluxConnector };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.InfluxConnector = void 0;
|
|
13
|
-
const errors_1 = require("@golemio/errors");
|
|
14
|
-
const influx_1 = require("influx");
|
|
15
|
-
const config_1 = require("../config");
|
|
16
|
-
const helpers_1 = require("../helpers");
|
|
17
|
-
class MyInflux {
|
|
18
|
-
constructor() {
|
|
19
|
-
this.influx = null;
|
|
20
|
-
this.connect = (schemas) => __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
try {
|
|
22
|
-
if (this.influx) {
|
|
23
|
-
return this.influx;
|
|
24
|
-
}
|
|
25
|
-
this.influx = new influx_1.InfluxDB({
|
|
26
|
-
database: config_1.config.influx_db.database,
|
|
27
|
-
hosts: config_1.config.influx_db.hosts,
|
|
28
|
-
password: config_1.config.influx_db.password,
|
|
29
|
-
schema: schemas,
|
|
30
|
-
username: config_1.config.influx_db.username,
|
|
31
|
-
});
|
|
32
|
-
const names = yield this.influx.getDatabaseNames();
|
|
33
|
-
if (!names.includes(config_1.config.influx_db.database)) {
|
|
34
|
-
yield this.influx.createDatabase(config_1.config.influx_db.database);
|
|
35
|
-
}
|
|
36
|
-
helpers_1.log.info("Connected to InfluxDB!");
|
|
37
|
-
return this.influx;
|
|
38
|
-
}
|
|
39
|
-
catch (err) {
|
|
40
|
-
throw new errors_1.CustomError("Error while connecting to InfluxDB.", false, this.constructor.name, 1001, err);
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
this.getConnection = () => {
|
|
44
|
-
if (!this.influx) {
|
|
45
|
-
throw new errors_1.CustomError("InfluxDB connection does not exist. First call connect() method.", false, this.constructor.name, 1002);
|
|
46
|
-
}
|
|
47
|
-
return this.influx;
|
|
48
|
-
};
|
|
49
|
-
this.isConnected = () => __awaiter(this, void 0, void 0, function* () {
|
|
50
|
-
var _a;
|
|
51
|
-
const stats = (yield ((_a = this.influx) === null || _a === void 0 ? void 0 : _a.ping(5000))) || [];
|
|
52
|
-
return !!stats.length && stats[0].online;
|
|
53
|
-
});
|
|
54
|
-
this.disconnect = () => __awaiter(this, void 0, void 0, function* () {
|
|
55
|
-
helpers_1.log.info("InfluxDB disconnect called");
|
|
56
|
-
this.influx = null;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
const InfluxConnector = new MyInflux();
|
|
61
|
-
exports.InfluxConnector = InfluxConnector;
|
|
62
|
-
//# sourceMappingURL=InfluxConnector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InfluxConnector.js","sourceRoot":"","sources":["../../../src/integration-engine/connectors/InfluxConnector.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAA8C;AAC9C,mCAAkC;AAClC,sCAAoC;AACpC,wCAAkC;AAElC,MAAM,QAAQ;IAAd;QACY,WAAM,GAAoB,IAAI,CAAC;QAEhC,YAAO,GAAG,CAAO,OAAc,EAAgB,EAAE;YACpD,IAAI;gBACA,IAAI,IAAI,CAAC,MAAM,EAAE;oBACb,OAAO,IAAI,CAAC,MAAM,CAAC;iBACtB;gBAED,IAAI,CAAC,MAAM,GAAG,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