@openhoo/hoopilot 1.2.0 → 1.3.0
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/README.md +8 -0
- package/dist/cli.js +884 -2
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +903 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +18 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +902 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -193,10 +193,28 @@ interface GithubRateLimitSnapshot {
|
|
|
193
193
|
retryAfterSeconds?: number;
|
|
194
194
|
used?: number;
|
|
195
195
|
}
|
|
196
|
+
/** Request-latency summary for one route, in milliseconds. */
|
|
197
|
+
interface RouteLatency {
|
|
198
|
+
avgMs: number;
|
|
199
|
+
count: number;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Aggregate request-latency summary derived from the duration histogram. `avgMs`
|
|
203
|
+
* is exact; the percentiles are estimated from the histogram buckets (Prometheus-
|
|
204
|
+
* style linear interpolation), so they are approximate.
|
|
205
|
+
*/
|
|
206
|
+
interface LatencySnapshot {
|
|
207
|
+
avgMs: number;
|
|
208
|
+
byRoute: Record<string, RouteLatency>;
|
|
209
|
+
count: number;
|
|
210
|
+
p50Ms: number;
|
|
211
|
+
p95Ms: number;
|
|
212
|
+
}
|
|
196
213
|
/** A point-in-time JSON view of the in-process metrics. */
|
|
197
214
|
interface MetricsSnapshot {
|
|
198
215
|
githubRateLimit: Record<string, GithubRateLimitSnapshot>;
|
|
199
216
|
inFlight: number;
|
|
217
|
+
latency: LatencySnapshot;
|
|
200
218
|
requests: {
|
|
201
219
|
byRoute: Record<string, number>;
|
|
202
220
|
byStatus: Record<string, number>;
|
package/dist/index.d.ts
CHANGED
|
@@ -193,10 +193,28 @@ interface GithubRateLimitSnapshot {
|
|
|
193
193
|
retryAfterSeconds?: number;
|
|
194
194
|
used?: number;
|
|
195
195
|
}
|
|
196
|
+
/** Request-latency summary for one route, in milliseconds. */
|
|
197
|
+
interface RouteLatency {
|
|
198
|
+
avgMs: number;
|
|
199
|
+
count: number;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* Aggregate request-latency summary derived from the duration histogram. `avgMs`
|
|
203
|
+
* is exact; the percentiles are estimated from the histogram buckets (Prometheus-
|
|
204
|
+
* style linear interpolation), so they are approximate.
|
|
205
|
+
*/
|
|
206
|
+
interface LatencySnapshot {
|
|
207
|
+
avgMs: number;
|
|
208
|
+
byRoute: Record<string, RouteLatency>;
|
|
209
|
+
count: number;
|
|
210
|
+
p50Ms: number;
|
|
211
|
+
p95Ms: number;
|
|
212
|
+
}
|
|
196
213
|
/** A point-in-time JSON view of the in-process metrics. */
|
|
197
214
|
interface MetricsSnapshot {
|
|
198
215
|
githubRateLimit: Record<string, GithubRateLimitSnapshot>;
|
|
199
216
|
inFlight: number;
|
|
217
|
+
latency: LatencySnapshot;
|
|
200
218
|
requests: {
|
|
201
219
|
byRoute: Record<string, number>;
|
|
202
220
|
byStatus: Record<string, number>;
|