mezon-js 2.15.73 → 2.15.75
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/metrics.d.ts +21 -0
- package/dist/mezon-js.cjs.js +1 -1
- package/dist/mezon-js.esm.mjs +1 -1
- package/dist/mezon-js.iife.js +1 -1
- package/dist/mezon-js.umd.js +1 -1
- package/dist/mezon-js.umd.js.map +1 -1
- package/dist/transport.d.ts +2 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare class MetricsLatencyApi {
|
|
2
|
+
private readonly maxAllowedFailures;
|
|
3
|
+
private readonly minAllowedFastRate;
|
|
4
|
+
private readonly maxAllowedLatencyMs;
|
|
5
|
+
private startTime;
|
|
6
|
+
private totalRequests;
|
|
7
|
+
private failed;
|
|
8
|
+
private slowCount;
|
|
9
|
+
start(): void;
|
|
10
|
+
end(isError?: boolean): void;
|
|
11
|
+
get shouldSwitch(): boolean;
|
|
12
|
+
get stats(): {
|
|
13
|
+
totalRequests: number;
|
|
14
|
+
failedCount: number;
|
|
15
|
+
slowCount: number;
|
|
16
|
+
slowRate: number;
|
|
17
|
+
fastRate: number;
|
|
18
|
+
isUnhealthy: boolean;
|
|
19
|
+
};
|
|
20
|
+
reset(): void;
|
|
21
|
+
}
|