@cargolift-cdi/types 0.1.25 → 0.1.27
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/db/entities/diagnostic-latency.entity.d.ts +4 -3
- package/dist/db/entities/diagnostic-latency.entity.d.ts.map +1 -1
- package/dist/db/entities/diagnostic-latency.entity.js +8 -4
- package/dist/db/repository/diagnostic-latency-repository.service.d.ts.map +1 -1
- package/dist/db/repository/diagnostic-latency-repository.service.js +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Entidade de diagnóstico de latência.
|
|
3
|
-
* Armazena
|
|
4
|
-
*
|
|
3
|
+
* Armazena informações sobre a latência de operações, incluindo timestamps de início e fim,
|
|
4
|
+
* além do ID de correlação para rastreamento.
|
|
5
5
|
*/
|
|
6
6
|
export declare class DiagnosticLatency {
|
|
7
|
-
id:
|
|
7
|
+
id: number;
|
|
8
|
+
testId: string;
|
|
8
9
|
correlationId: string;
|
|
9
10
|
timestamp_start: Date;
|
|
10
11
|
timestamp_end: Date;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostic-latency.entity.d.ts","sourceRoot":"","sources":["../../../src/db/entities/diagnostic-latency.entity.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBACa,iBAAiB;IAE5B,EAAE,EAAG,MAAM,CAAC;IAGZ,aAAa,EAAG,MAAM,CAAC;IAGvB,eAAe,EAAG,IAAI,CAAC;IAGvB,aAAa,EAAG,IAAI,CAAC;IAGrB,SAAS,EAAG,MAAM,CAAC;CACpB"}
|
|
1
|
+
{"version":3,"file":"diagnostic-latency.entity.d.ts","sourceRoot":"","sources":["../../../src/db/entities/diagnostic-latency.entity.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,qBACa,iBAAiB;IAE5B,EAAE,EAAG,MAAM,CAAC;IAGZ,MAAM,EAAG,MAAM,CAAC;IAGhB,aAAa,EAAG,MAAM,CAAC;IAGvB,eAAe,EAAG,IAAI,CAAC;IAGvB,aAAa,EAAG,IAAI,CAAC;IAGrB,SAAS,EAAG,MAAM,CAAC;CACpB"}
|
|
@@ -4,22 +4,26 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { Column, Entity,
|
|
7
|
+
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
8
8
|
/**
|
|
9
9
|
* Entidade de diagnóstico de latência.
|
|
10
|
-
* Armazena
|
|
11
|
-
*
|
|
10
|
+
* Armazena informações sobre a latência de operações, incluindo timestamps de início e fim,
|
|
11
|
+
* além do ID de correlação para rastreamento.
|
|
12
12
|
*/
|
|
13
13
|
let DiagnosticLatency = class DiagnosticLatency {
|
|
14
14
|
id;
|
|
15
|
+
testId;
|
|
15
16
|
correlationId;
|
|
16
17
|
timestamp_start;
|
|
17
18
|
timestamp_end;
|
|
18
19
|
latencyMs;
|
|
19
20
|
};
|
|
20
21
|
__decorate([
|
|
21
|
-
|
|
22
|
+
PrimaryGeneratedColumn({ type: 'int' })
|
|
22
23
|
], DiagnosticLatency.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
Column({ type: 'varchar', length: 36 })
|
|
26
|
+
], DiagnosticLatency.prototype, "testId", void 0);
|
|
23
27
|
__decorate([
|
|
24
28
|
Column({ type: 'varchar', default: 36 })
|
|
25
29
|
], DiagnosticLatency.prototype, "correlationId", void 0);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"diagnostic-latency-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/diagnostic-latency-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"diagnostic-latency-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/diagnostic-latency-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAgB,UAAU,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAE7E;;;GAGG;AACH,qBACa,kCAAkC;IAG3C,OAAO,CAAC,QAAQ,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU,CAAC,iBAAiB,CAAC;IAGtD;;;;;;OAMG;IACG,MAAM,CACV,EAAE,EAAE,MAAM,EACV,cAAc,EAAE,MAAM,EACtB,eAAe,EAAE,IAAI,GACpB,OAAO,CAAC,iBAAiB,CAAC;CAe9B"}
|
|
@@ -29,7 +29,7 @@ let DiagnosticLatencyRepositoryService = class DiagnosticLatencyRepositoryServic
|
|
|
29
29
|
async create(id, correlation_id, timestamp_start) {
|
|
30
30
|
const now = new Date();
|
|
31
31
|
const entity = this.repo.create({
|
|
32
|
-
id,
|
|
32
|
+
testId: id,
|
|
33
33
|
correlationId: correlation_id,
|
|
34
34
|
timestamp_start,
|
|
35
35
|
timestamp_end: now,
|