@cargolift-cdi/types 0.1.25 → 0.1.26
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 +2 -2
- package/dist/db/entities/diagnostic-latency.entity.js +2 -2
- package/dist/db/repository/diagnostic-latency-repository.service.d.ts +2 -2
- 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,7 +1,7 @@
|
|
|
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
7
|
id: string;
|
|
@@ -7,8 +7,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { Column, Entity, PrimaryColumn } 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;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Repository } from 'typeorm';
|
|
1
|
+
import { InsertResult, Repository } from 'typeorm';
|
|
2
2
|
import { DiagnosticLatency } from '../entities/diagnostic-latency.entity.js';
|
|
3
3
|
/**
|
|
4
4
|
* Repositório de diagnóstico de latência.
|
|
@@ -14,6 +14,6 @@ export declare class DiagnosticLatencyRepositoryService {
|
|
|
14
14
|
* @param timestamp_start
|
|
15
15
|
* @returns
|
|
16
16
|
*/
|
|
17
|
-
create(id: string, correlation_id: string, timestamp_start: Date): Promise<
|
|
17
|
+
create(id: string, correlation_id: string, timestamp_start: Date): Promise<InsertResult>;
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=diagnostic-latency-repository.service.d.ts.map
|
|
@@ -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,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"diagnostic-latency-repository.service.d.ts","sourceRoot":"","sources":["../../../src/db/repository/diagnostic-latency-repository.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,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,CAAC,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,eAAe,EAAE,IAAI,GAAG,OAAO,CAAC,YAAY,CAAC;CAiB/F"}
|
|
@@ -35,7 +35,7 @@ let DiagnosticLatencyRepositoryService = class DiagnosticLatencyRepositoryServic
|
|
|
35
35
|
timestamp_end: now,
|
|
36
36
|
latencyMs: now.getTime() - timestamp_start.getTime(),
|
|
37
37
|
});
|
|
38
|
-
return this.repo.
|
|
38
|
+
return this.repo.insert(entity);
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
DiagnosticLatencyRepositoryService = __decorate([
|