mezon-js 2.15.75 → 2.15.76
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
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
export declare const CHECK_HEALTHY = "CHECK_HEALTHY";
|
|
1
2
|
export declare class MetricsLatencyApi {
|
|
2
3
|
private readonly maxAllowedFailures;
|
|
3
4
|
private readonly minAllowedFastRate;
|
|
4
5
|
private readonly maxAllowedLatencyMs;
|
|
5
|
-
private
|
|
6
|
+
private readonly metricsWindowMs;
|
|
7
|
+
private readonly minRequests;
|
|
8
|
+
private windowStartTime;
|
|
6
9
|
private totalRequests;
|
|
7
10
|
private failed;
|
|
8
11
|
private slowCount;
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
private readonly requests;
|
|
13
|
+
start(requestId: number): void;
|
|
14
|
+
end(requestId: number, isError?: boolean): void;
|
|
11
15
|
get shouldSwitch(): boolean;
|
|
12
16
|
get stats(): {
|
|
13
17
|
totalRequests: number;
|