@golemio/pid 2.8.4 → 2.8.5
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/integration-engine/ropid-gtfs/workers/presets/transformations/PresetLogTransformation.js +2 -1
- package/dist/integration-engine/ropid-gtfs/workers/presets/transformations/PresetLogTransformation.js.map +1 -1
- package/dist/schema-definitions/ropid-departures-preset-logs/datasources/GrafanaLokiJsonSchema.js +1 -2
- package/dist/schema-definitions/ropid-departures-preset-logs/datasources/GrafanaLokiJsonSchema.js.map +1 -1
- package/dist/schema-definitions/ropid-departures-preset-logs/datasources/interfaces/ILogQueryData.d.ts +1 -1
- package/package.json +1 -1
|
@@ -24,6 +24,7 @@ let PresetLogTransformation = exports.PresetLogTransformation = class PresetLogT
|
|
|
24
24
|
return Promise.resolve(dto);
|
|
25
25
|
};
|
|
26
26
|
this.transformElement = (dataItem) => {
|
|
27
|
+
var _a;
|
|
27
28
|
// Use dummy hostname to parse relative URLs
|
|
28
29
|
// we want to normalize the relative URL without query params, leading slashes and other irregularities
|
|
29
30
|
const url = new URL(dataItem.stream.req_url, "http://golemio");
|
|
@@ -35,7 +36,7 @@ let PresetLogTransformation = exports.PresetLogTransformation = class PresetLogT
|
|
|
35
36
|
is_processed: false,
|
|
36
37
|
request_url: dataItem.stream.req_url,
|
|
37
38
|
request_method: dataItem.stream.req_method,
|
|
38
|
-
request_user_agent: dataItem.stream.req_userAgent,
|
|
39
|
+
request_user_agent: (_a = dataItem.stream.req_userAgent) !== null && _a !== void 0 ? _a : "",
|
|
39
40
|
response_status: Number.parseInt(dataItem.stream.res_status),
|
|
40
41
|
response_time_ms: Number.parseInt(dataItem.stream.responseTime),
|
|
41
42
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresetLogTransformation.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/presets/transformations/PresetLogTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,2FAA2F;AAC3F,iEAAgE;AAIzD,IAAM,uBAAuB,qCAA7B,MAAM,uBAAwB,SAAQ,oCAAkB;IAAxD;;QACI,SAAI,GAAG,yBAAyB,CAAC;QAEjC,cAAS,GAAG,CAAC,IAAqB,EAAkC,EAAE;YACzE,MAAM,GAAG,GAA0B,EAAE,CAAC;YACtC,KAAK,MAAM,QAAQ,IAAI,IAAI,EAAE;gBACzB,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAmC,CAAC,CAAC;gBAC3E,IAAI,OAAO,EAAE;oBACT,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;iBACrB;aACJ;YAED,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAChC,CAAC,CAAC;QAEQ,qBAAgB,GAAG,CAAC,QAAiC,EAAuB,EAAE
|
|
1
|
+
{"version":3,"file":"PresetLogTransformation.js","sourceRoot":"","sources":["../../../../../../src/integration-engine/ropid-gtfs/workers/presets/transformations/PresetLogTransformation.ts"],"names":[],"mappings":";;;;;;;;;AAEA,2FAA2F;AAC3F,iEAAgE;AAIzD,IAAM,uBAAuB,qCAA7B,MAAM,uBAAwB,SAAQ,oCAAkB;IAAxD;;QACI,SAAI,GAAG,yBAAyB,CAAC;QAEjC,cAAS,GAAG,CAAC,IAAqB,EAAkC,EAAE;YACzE,MAAM,GAAG,GAA0B,EAAE,CAAC;YACtC,KAAK,MAAM,QAAQ,IAAI,IAAI,EAAE;gBACzB,MAAM,OAAO,GAAG,IAAI,CAAC,gBAAgB,CAAC,QAAmC,CAAC,CAAC;gBAC3E,IAAI,OAAO,EAAE;oBACT,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;iBACrB;aACJ;YAED,OAAO,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAChC,CAAC,CAAC;QAEQ,qBAAgB,GAAG,CAAC,QAAiC,EAAuB,EAAE;;YACpF,4CAA4C;YAC5C,uGAAuG;YACvG,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;YAC/D,MAAM,yBAAyB,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAChE,MAAM,oBAAoB,GAAG,IAAI,IAAI,CAAC,MAAM,CAAC,yBAAyB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YAE3F,OAAO;gBACH,WAAW,EAAE,oBAAoB;gBACjC,YAAY,EAAE,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAE,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC;gBAClE,YAAY,EAAE,KAAK;gBACnB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,OAAO;gBACpC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,UAAU;gBAC1C,kBAAkB,EAAE,MAAA,QAAQ,CAAC,MAAM,CAAC,aAAa,mCAAI,EAAE;gBACvD,eAAe,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,CAAC;gBAC5D,gBAAgB,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC;aAClE,CAAC;QACN,CAAC,CAAC;IACN,CAAC;CAAA,CAAA;kCAjCY,uBAAuB;IADnC,IAAA,qBAAU,GAAE;GACA,uBAAuB,CAiCnC"}
|
package/dist/schema-definitions/ropid-departures-preset-logs/datasources/GrafanaLokiJsonSchema.js
CHANGED
|
@@ -16,7 +16,7 @@ exports.grafanaLokiJsonSchema = {
|
|
|
16
16
|
req_method: { type: "string" },
|
|
17
17
|
req_remoteAddress: { type: "string" },
|
|
18
18
|
req_url: { type: "string" },
|
|
19
|
-
req_userAgent: { type: "string" },
|
|
19
|
+
req_userAgent: { type: "string", nullable: true },
|
|
20
20
|
res_contentLength: { type: "string", nullable: true },
|
|
21
21
|
res_status: { type: "string" },
|
|
22
22
|
responseTime: { type: "string" },
|
|
@@ -28,7 +28,6 @@ exports.grafanaLokiJsonSchema = {
|
|
|
28
28
|
"req_method",
|
|
29
29
|
"req_remoteAddress",
|
|
30
30
|
"req_url",
|
|
31
|
-
"req_userAgent",
|
|
32
31
|
"res_status",
|
|
33
32
|
"responseTime",
|
|
34
33
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GrafanaLokiJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-departures-preset-logs/datasources/GrafanaLokiJsonSchema.ts"],"names":[],"mappings":";;;AAGa,QAAA,qBAAqB,GAAoC;IAClE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACR,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,UAAU,EAAE;oBACR,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3B,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACnC,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC9B,iBAAiB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACrC,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC3B,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"GrafanaLokiJsonSchema.js","sourceRoot":"","sources":["../../../../src/schema-definitions/ropid-departures-preset-logs/datasources/GrafanaLokiJsonSchema.ts"],"names":[],"mappings":";;;AAGa,QAAA,qBAAqB,GAAoC;IAClE,IAAI,EAAE,OAAO;IACb,KAAK,EAAE;QACH,IAAI,EAAE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