@emeryld/rrroutes-openapi 2.5.12 → 2.5.13
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/index.cjs +3 -90
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +3 -90
- package/dist/index.mjs.map +1 -1
- package/dist/public/assets/docs.js +97 -97
- package/dist/web/v2/types/types.base.d.ts +1 -6
- package/dist/web/v2/types/types.cacheLog.d.ts +37 -558
- package/dist/web/v2/types/types.endpoint.d.ts +5 -20
- package/dist/web/v2/types/types.log.d.ts +5 -20
- package/dist/web/v2/types/types.preset.d.ts +5 -20
- package/dist/web/v2/types/types.requestLog.d.ts +5 -20
- package/dist/web/v2/types/types.scheduling.d.ts +5 -20
- package/dist/web/v2/types/types.socket.d.ts +5 -20
- package/dist/web/v2/utils/dates.d.ts +4 -0
- package/dist/web/v2/utils/sizeFormat.d.ts +0 -1
- package/package.json +1 -1
- package/dist/web/v2/components/logs/cache/common/CacheSummaryStat.d.ts +0 -7
- package/dist/web/v2/components/logs/cache/common/CacheTraceDialog.d.ts +0 -8
- package/dist/web/v2/components/logs/cache/common/CacheValueDialog.d.ts +0 -8
- package/dist/web/v2/components/logs/cache/common/DetailField.d.ts +0 -7
- package/dist/web/v2/components/logs/cache/common/MutedText.d.ts +0 -4
- package/dist/web/v2/components/logs/cache/insights/CacheInsights.d.ts +0 -10
- package/dist/web/v2/components/logs/cache/insights/CacheInsightsKeySection.d.ts +0 -7
- package/dist/web/v2/components/logs/cache/insights/CacheInsightsKpiRow.d.ts +0 -8
- package/dist/web/v2/components/logs/cache/insights/CacheInsightsOverview.d.ts +0 -8
- package/dist/web/v2/components/logs/cache/insights/CacheInsightsTagSection.d.ts +0 -7
- package/dist/web/v2/components/logs/cache/insights/CacheProblemPanels.d.ts +0 -7
- package/dist/web/v2/components/logs/cache/insights/CacheTagInsights.d.ts +0 -20
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailActions.d.ts +0 -12
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailLogsTab.d.ts +0 -3
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailModal.d.ts +0 -18
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailSummary.d.ts +0 -17
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailTimelineTab.d.ts +0 -7
- package/dist/web/v2/components/logs/cache/key-detail/CacheKeyDetailTracesTab.d.ts +0 -3
- package/dist/web/v2/components/logs/cache/logs/CacheDataCard.d.ts +0 -30
- package/dist/web/v2/components/logs/cache/logs/CacheFiltersCard.d.ts +0 -15
- package/dist/web/v2/components/logs/cache/logs/CacheLogsSection.d.ts +0 -1
- package/dist/web/v2/components/logs/cache/logs/CacheLogsTable.d.ts +0 -7
- package/dist/web/v2/components/logs/cache/logs/CacheSummaryTable.d.ts +0 -8
- package/dist/web/v2/components/logs/cache/modals/CacheTagDetailModal.d.ts +0 -11
- package/dist/web/v2/hooks/useCacheInsights.d.ts +0 -308
- package/dist/web/v2/utils/cache/cacheInsightsMappers.d.ts +0 -6
- package/dist/web/v2/utils/cache/cacheInsightsMetrics.d.ts +0 -24
- package/dist/web/v2/utils/cache/cacheTraceInsights.d.ts +0 -35
- package/dist/web/v2/utils/cacheFormat.d.ts +0 -7
- package/dist/web/v2/utils/cacheUtils.d.ts +0 -2
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { CacheLogType, CacheTagInsight } from '../../../../types/types.cacheLog.js';
|
|
2
|
-
type CacheTagDetailModalProps = {
|
|
3
|
-
open: boolean;
|
|
4
|
-
tag: string;
|
|
5
|
-
insight: CacheTagInsight;
|
|
6
|
-
logs: CacheLogType[];
|
|
7
|
-
baseQuery: Record<string, unknown>;
|
|
8
|
-
onClose: () => void;
|
|
9
|
-
};
|
|
10
|
-
export default function CacheTagDetailModal({ open, tag, insight, logs, baseQuery: _baseQuery, onClose, }: CacheTagDetailModalProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export {};
|
|
@@ -1,308 +0,0 @@
|
|
|
1
|
-
import { CacheInsightsFilter } from '../types/types.cacheLog';
|
|
2
|
-
export type UseCacheInsightsOptions = CacheInsightsFilter;
|
|
3
|
-
/**
|
|
4
|
-
* Thin wrapper around GET /__rrroutes/cache/insights.
|
|
5
|
-
*
|
|
6
|
-
* Builds the query from the base filter helpers plus keys/groupBy and
|
|
7
|
-
* exposes the standard react-query fields from useLeafEndpoint.
|
|
8
|
-
*/
|
|
9
|
-
export declare function useCacheInsights(options: UseCacheInsightsOptions): import("@emeryld/rrroutes-client").QueryUseEndpointResultFor<import("@emeryld/rrroutes-contract").Prettify<{
|
|
10
|
-
readonly method: "get";
|
|
11
|
-
readonly path: "/__rrroutes/cache/insights";
|
|
12
|
-
readonly cfg: Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<Readonly<import("@emeryld/rrroutes-contract").Prettify<Omit<{}, "queryExtensionSchema" | "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema" | Exclude<keyof (import("@emeryld/rrroutes-contract").Prettify<Omit<C, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
13
|
-
queryExtensionSchema: C["queryExtensionSchema"] extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? C["queryExtensionSchema"] : undefined;
|
|
14
|
-
outputMetaSchema: C["outputMetaSchema"] extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? C["outputMetaSchema"] : undefined;
|
|
15
|
-
}> extends infer WithDefaults extends import("@emeryld/rrroutes-contract").MethodCfg ? import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, Exclude<keyof WithDefaults, "querySchema" | "outputSchema" | "feed">> & Omit<WithDefaults, "querySchema" | "outputSchema" | "feed">> & (WithDefaults["feed"] extends true ? (WithDefaults["feed"] extends true ? {
|
|
16
|
-
feed: true;
|
|
17
|
-
} : {
|
|
18
|
-
feed?: boolean;
|
|
19
|
-
}) & import("@emeryld/rrroutes-contract").FeedQueryField<WithDefaults> & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? {
|
|
20
|
-
paramsSchema: WithDefaults["paramsSchema"];
|
|
21
|
-
} : {
|
|
22
|
-
paramsSchema: undefined;
|
|
23
|
-
}) : (WithDefaults["feed"] extends true ? {
|
|
24
|
-
feed: true;
|
|
25
|
-
} : {
|
|
26
|
-
feed?: boolean;
|
|
27
|
-
}) & (WithDefaults["querySchema"] extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? {
|
|
28
|
-
querySchema: WithDefaults["querySchema"];
|
|
29
|
-
} : {
|
|
30
|
-
querySchema?: undefined;
|
|
31
|
-
}) & import("@emeryld/rrroutes-contract").OutputField<WithDefaults> & (WithDefaults["paramsSchema"] extends import("zod").ZodType<unknown, unknown, import("zod/v4/core").$ZodTypeInternals<unknown, unknown>> ? {
|
|
32
|
-
paramsSchema: WithDefaults["paramsSchema"];
|
|
33
|
-
} : {
|
|
34
|
-
paramsSchema: undefined;
|
|
35
|
-
}))> : never), "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema">> & import("@emeryld/rrroutes-contract").Prettify<Omit<import("@emeryld/rrroutes-contract").Prettify<import("@emeryld/rrroutes-contract").Prettify<Omit<Omit<import("@emeryld/rrroutes-contract").MethodCfg, "querySchema" | "outputSchema" | "feed">, "queryExtensionSchema" | "outputMetaSchema"> & Omit<import("@emeryld/rrroutes-contract").Prettify<Omit<{
|
|
36
|
-
outputSchema: import("zod").ZodObject<{
|
|
37
|
-
computedAt: import("zod").ZodNumber;
|
|
38
|
-
windowStart: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
39
|
-
windowEnd: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
40
|
-
groupBy: import("zod").ZodEnum<{
|
|
41
|
-
key: "key";
|
|
42
|
-
tag: "tag";
|
|
43
|
-
both: "both";
|
|
44
|
-
}>;
|
|
45
|
-
keys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
46
|
-
key: import("zod").ZodString;
|
|
47
|
-
currentSizeBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
48
|
-
lastSetAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
49
|
-
lastDeleteAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
50
|
-
lastHitAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
51
|
-
lastMissAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
52
|
-
lastActivityAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
53
|
-
totalHits: import("zod").ZodNumber;
|
|
54
|
-
totalMisses: import("zod").ZodNumber;
|
|
55
|
-
totalSets: import("zod").ZodNumber;
|
|
56
|
-
totalDeletes: import("zod").ZodNumber;
|
|
57
|
-
hitsSinceLastSet: import("zod").ZodNumber;
|
|
58
|
-
missesSinceLastSet: import("zod").ZodNumber;
|
|
59
|
-
deletesSinceLastSet: import("zod").ZodNumber;
|
|
60
|
-
avgTimeBetweenSetsMs: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
61
|
-
avgHitsBetweenSets: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
62
|
-
avgMissesBetweenSets: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
63
|
-
hitRate: import("zod").ZodNumber;
|
|
64
|
-
missRate: import("zod").ZodNumber;
|
|
65
|
-
}, import("zod/v4/core").$strip>>>;
|
|
66
|
-
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
67
|
-
tag: import("zod").ZodString;
|
|
68
|
-
approxCurrentSizeBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
69
|
-
totalHits: import("zod").ZodNumber;
|
|
70
|
-
totalMisses: import("zod").ZodNumber;
|
|
71
|
-
totalSets: import("zod").ZodNumber;
|
|
72
|
-
totalDeletes: import("zod").ZodNumber;
|
|
73
|
-
avgTimeBetweenSetsMs: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
74
|
-
avgHitsBetweenSets: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
75
|
-
avgMissesBetweenSets: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
76
|
-
hitRate: import("zod").ZodNumber;
|
|
77
|
-
missRate: import("zod").ZodNumber;
|
|
78
|
-
}, import("zod/v4/core").$strip>>>;
|
|
79
|
-
}, import("zod/v4/core").$strip>;
|
|
80
|
-
querySchema: import("zod").ZodObject<{
|
|
81
|
-
beforeDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
82
|
-
afterDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
83
|
-
orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
84
|
-
timestamp: "timestamp";
|
|
85
|
-
duration: "duration";
|
|
86
|
-
level: "level";
|
|
87
|
-
path: "path";
|
|
88
|
-
}>>;
|
|
89
|
-
orderDirection: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
90
|
-
asc: "asc";
|
|
91
|
-
desc: "desc";
|
|
92
|
-
}>>;
|
|
93
|
-
searchQuery: import("zod").ZodOptional<import("zod").ZodString>;
|
|
94
|
-
groupsInclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
95
|
-
groupsExclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
96
|
-
tagsInclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
97
|
-
tagsExclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
98
|
-
keys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
99
|
-
groupBy: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
100
|
-
key: "key";
|
|
101
|
-
tag: "tag";
|
|
102
|
-
both: "both";
|
|
103
|
-
}>>;
|
|
104
|
-
}, import("zod/v4/core").$strip>;
|
|
105
|
-
}, "queryExtensionSchema" | "outputMetaSchema"> & {
|
|
106
|
-
queryExtensionSchema: undefined;
|
|
107
|
-
outputMetaSchema: undefined;
|
|
108
|
-
}>, "querySchema" | "outputSchema" | "feed">> & {
|
|
109
|
-
feed?: boolean;
|
|
110
|
-
} & {
|
|
111
|
-
querySchema: import("zod").ZodObject<{
|
|
112
|
-
beforeDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
113
|
-
afterDate: import("zod").ZodOptional<import("zod").ZodString>;
|
|
114
|
-
orderBy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
115
|
-
timestamp: "timestamp";
|
|
116
|
-
duration: "duration";
|
|
117
|
-
level: "level";
|
|
118
|
-
path: "path";
|
|
119
|
-
}>>;
|
|
120
|
-
orderDirection: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
121
|
-
asc: "asc";
|
|
122
|
-
desc: "desc";
|
|
123
|
-
}>>;
|
|
124
|
-
searchQuery: import("zod").ZodOptional<import("zod").ZodString>;
|
|
125
|
-
groupsInclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
126
|
-
groupsExclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
127
|
-
tagsInclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
128
|
-
tagsExclude: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
129
|
-
keys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
130
|
-
groupBy: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
131
|
-
key: "key";
|
|
132
|
-
tag: "tag";
|
|
133
|
-
both: "both";
|
|
134
|
-
}>>;
|
|
135
|
-
}, import("zod/v4/core").$strip>;
|
|
136
|
-
} & {
|
|
137
|
-
outputSchema: import("zod").ZodObject<{
|
|
138
|
-
out: import("zod").ZodObject<{
|
|
139
|
-
computedAt: import("zod").ZodNumber;
|
|
140
|
-
windowStart: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
141
|
-
windowEnd: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
142
|
-
groupBy: import("zod").ZodEnum<{
|
|
143
|
-
key: "key";
|
|
144
|
-
tag: "tag";
|
|
145
|
-
both: "both";
|
|
146
|
-
}>;
|
|
147
|
-
keys: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
148
|
-
key: import("zod").ZodString;
|
|
149
|
-
currentSizeBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
150
|
-
lastSetAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
151
|
-
lastDeleteAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
152
|
-
lastHitAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
153
|
-
lastMissAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
154
|
-
lastActivityAt: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
155
|
-
totalHits: import("zod").ZodNumber;
|
|
156
|
-
totalMisses: import("zod").ZodNumber;
|
|
157
|
-
totalSets: import("zod").ZodNumber;
|
|
158
|
-
totalDeletes: import("zod").ZodNumber;
|
|
159
|
-
hitsSinceLastSet: import("zod").ZodNumber;
|
|
160
|
-
missesSinceLastSet: import("zod").ZodNumber;
|
|
161
|
-
deletesSinceLastSet: import("zod").ZodNumber;
|
|
162
|
-
avgTimeBetweenSetsMs: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
163
|
-
avgHitsBetweenSets: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
164
|
-
avgMissesBetweenSets: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
165
|
-
hitRate: import("zod").ZodNumber;
|
|
166
|
-
missRate: import("zod").ZodNumber;
|
|
167
|
-
}, import("zod/v4/core").$strip>>>;
|
|
168
|
-
tags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
169
|
-
tag: import("zod").ZodString;
|
|
170
|
-
approxCurrentSizeBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
171
|
-
totalHits: import("zod").ZodNumber;
|
|
172
|
-
totalMisses: import("zod").ZodNumber;
|
|
173
|
-
totalSets: import("zod").ZodNumber;
|
|
174
|
-
totalDeletes: import("zod").ZodNumber;
|
|
175
|
-
avgTimeBetweenSetsMs: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
176
|
-
avgHitsBetweenSets: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
177
|
-
avgMissesBetweenSets: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
178
|
-
hitRate: import("zod").ZodNumber;
|
|
179
|
-
missRate: import("zod").ZodNumber;
|
|
180
|
-
}, import("zod/v4/core").$strip>>>;
|
|
181
|
-
}, import("zod/v4/core").$strip>;
|
|
182
|
-
meta: import("zod").ZodOptional<import("zod").ZodString>;
|
|
183
|
-
}, import("zod/v4/core").$strip>;
|
|
184
|
-
} & {
|
|
185
|
-
paramsSchema: undefined;
|
|
186
|
-
}>, "outputMetaSchema" | "bodySchema" | "querySchema" | "paramsSchema" | "outputSchema"> & {
|
|
187
|
-
bodySchema: import("@emeryld/rrroutes-contract").RouteSchema<unknown, unknown> | undefined;
|
|
188
|
-
querySchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
189
|
-
groupBy: "key" | "tag" | "both";
|
|
190
|
-
beforeDate?: string | undefined;
|
|
191
|
-
afterDate?: string | undefined;
|
|
192
|
-
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
193
|
-
orderDirection?: "asc" | "desc" | undefined;
|
|
194
|
-
searchQuery?: string | undefined;
|
|
195
|
-
groupsInclude?: string[] | undefined;
|
|
196
|
-
groupsExclude?: string[] | undefined;
|
|
197
|
-
tagsInclude?: string[] | undefined;
|
|
198
|
-
tagsExclude?: string[] | undefined;
|
|
199
|
-
keys?: string[] | undefined;
|
|
200
|
-
}, {
|
|
201
|
-
beforeDate?: string | undefined;
|
|
202
|
-
afterDate?: string | undefined;
|
|
203
|
-
orderBy?: "timestamp" | "duration" | "level" | "path" | undefined;
|
|
204
|
-
orderDirection?: "asc" | "desc" | undefined;
|
|
205
|
-
searchQuery?: string | undefined;
|
|
206
|
-
groupsInclude?: string[] | undefined;
|
|
207
|
-
groupsExclude?: string[] | undefined;
|
|
208
|
-
tagsInclude?: string[] | undefined;
|
|
209
|
-
tagsExclude?: string[] | undefined;
|
|
210
|
-
keys?: string[] | undefined;
|
|
211
|
-
groupBy?: "key" | "tag" | "both" | undefined;
|
|
212
|
-
}>;
|
|
213
|
-
paramsSchema: undefined;
|
|
214
|
-
outputSchema: import("@emeryld/rrroutes-contract").RouteSchema<{
|
|
215
|
-
out: {
|
|
216
|
-
computedAt: number;
|
|
217
|
-
windowStart: number | null;
|
|
218
|
-
windowEnd: number | null;
|
|
219
|
-
groupBy: "key" | "tag" | "both";
|
|
220
|
-
keys?: {
|
|
221
|
-
key: string;
|
|
222
|
-
currentSizeBytes: number | null;
|
|
223
|
-
lastSetAt: number | null;
|
|
224
|
-
lastDeleteAt: number | null;
|
|
225
|
-
lastHitAt: number | null;
|
|
226
|
-
lastMissAt: number | null;
|
|
227
|
-
lastActivityAt: number | null;
|
|
228
|
-
totalHits: number;
|
|
229
|
-
totalMisses: number;
|
|
230
|
-
totalSets: number;
|
|
231
|
-
totalDeletes: number;
|
|
232
|
-
hitsSinceLastSet: number;
|
|
233
|
-
missesSinceLastSet: number;
|
|
234
|
-
deletesSinceLastSet: number;
|
|
235
|
-
avgTimeBetweenSetsMs: number | null;
|
|
236
|
-
avgHitsBetweenSets: number | null;
|
|
237
|
-
avgMissesBetweenSets: number | null;
|
|
238
|
-
hitRate: number;
|
|
239
|
-
missRate: number;
|
|
240
|
-
}[] | undefined;
|
|
241
|
-
tags?: {
|
|
242
|
-
tag: string;
|
|
243
|
-
approxCurrentSizeBytes: number | null;
|
|
244
|
-
totalHits: number;
|
|
245
|
-
totalMisses: number;
|
|
246
|
-
totalSets: number;
|
|
247
|
-
totalDeletes: number;
|
|
248
|
-
avgTimeBetweenSetsMs: number | null;
|
|
249
|
-
avgHitsBetweenSets: number | null;
|
|
250
|
-
avgMissesBetweenSets: number | null;
|
|
251
|
-
hitRate: number;
|
|
252
|
-
missRate: number;
|
|
253
|
-
}[] | undefined;
|
|
254
|
-
};
|
|
255
|
-
meta?: string | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
out: {
|
|
258
|
-
computedAt: number;
|
|
259
|
-
windowStart: number | null;
|
|
260
|
-
windowEnd: number | null;
|
|
261
|
-
groupBy: "key" | "tag" | "both";
|
|
262
|
-
keys?: {
|
|
263
|
-
key: string;
|
|
264
|
-
currentSizeBytes: number | null;
|
|
265
|
-
lastSetAt: number | null;
|
|
266
|
-
lastDeleteAt: number | null;
|
|
267
|
-
lastHitAt: number | null;
|
|
268
|
-
lastMissAt: number | null;
|
|
269
|
-
lastActivityAt: number | null;
|
|
270
|
-
totalHits: number;
|
|
271
|
-
totalMisses: number;
|
|
272
|
-
totalSets: number;
|
|
273
|
-
totalDeletes: number;
|
|
274
|
-
hitsSinceLastSet: number;
|
|
275
|
-
missesSinceLastSet: number;
|
|
276
|
-
deletesSinceLastSet: number;
|
|
277
|
-
avgTimeBetweenSetsMs: number | null;
|
|
278
|
-
avgHitsBetweenSets: number | null;
|
|
279
|
-
avgMissesBetweenSets: number | null;
|
|
280
|
-
hitRate: number;
|
|
281
|
-
missRate: number;
|
|
282
|
-
}[] | undefined;
|
|
283
|
-
tags?: {
|
|
284
|
-
tag: string;
|
|
285
|
-
approxCurrentSizeBytes: number | null;
|
|
286
|
-
totalHits: number;
|
|
287
|
-
totalMisses: number;
|
|
288
|
-
totalSets: number;
|
|
289
|
-
totalDeletes: number;
|
|
290
|
-
avgTimeBetweenSetsMs: number | null;
|
|
291
|
-
avgHitsBetweenSets: number | null;
|
|
292
|
-
avgMissesBetweenSets: number | null;
|
|
293
|
-
hitRate: number;
|
|
294
|
-
missRate: number;
|
|
295
|
-
}[] | undefined;
|
|
296
|
-
};
|
|
297
|
-
meta?: string | undefined;
|
|
298
|
-
}>;
|
|
299
|
-
outputMetaSchema: undefined;
|
|
300
|
-
queryExtensionSchema: undefined;
|
|
301
|
-
}>>>, "paramsSchema"> & {
|
|
302
|
-
paramsSchema: undefined;
|
|
303
|
-
}>>, "paramsSchema"> & {
|
|
304
|
-
paramsSchema: undefined;
|
|
305
|
-
}>>, "paramsSchema"> & {
|
|
306
|
-
paramsSchema: undefined;
|
|
307
|
-
}>>;
|
|
308
|
-
}>>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CacheKeyInsight, CacheTagInsight } from '../../types/types.cacheLog';
|
|
2
|
-
import type { CacheInsightDatum } from './cacheInsightsMetrics';
|
|
3
|
-
export declare function bytesToKilobytes(bytes: number | null | undefined): number;
|
|
4
|
-
export declare function computeTotalRequests(hits: number | null | undefined, misses: number | null | undefined): number;
|
|
5
|
-
export declare function mapKeyInsightsToChartData(keys: CacheKeyInsight[]): CacheInsightDatum[];
|
|
6
|
-
export declare function mapTagInsightsToChartData(tags: CacheTagInsight[]): CacheInsightDatum[];
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
export type MetricKey = 'sets' | 'totalSizeKB' | 'totalRequests' | 'hitRate' | 'missRate' | 'avgMissDurationMs' | 'hitsSinceLastSet' | 'missesSinceLastSet' | 'deletesSinceLastSet' | 'avgTimeBetweenSetsMs' | 'avgHitsBetweenSets' | 'avgMissesBetweenSets';
|
|
2
|
-
export declare const ALL_METRICS: MetricKey[];
|
|
3
|
-
export declare const METRIC_LABEL: Record<MetricKey, string>;
|
|
4
|
-
export type MetricPresentation = 'percent' | 'sizeKB' | 'durationMs' | 'count';
|
|
5
|
-
export declare function getMetricPresentation(metric: MetricKey): MetricPresentation;
|
|
6
|
-
export type CacheInsightDatum = {
|
|
7
|
-
id: string;
|
|
8
|
-
label: string;
|
|
9
|
-
sets: number;
|
|
10
|
-
totalSizeKB: number;
|
|
11
|
-
totalRequests: number;
|
|
12
|
-
hitRate: number;
|
|
13
|
-
missRate: number;
|
|
14
|
-
avgMissDurationMs: number | null;
|
|
15
|
-
hitsSinceLastSet?: number;
|
|
16
|
-
missesSinceLastSet?: number;
|
|
17
|
-
deletesSinceLastSet?: number;
|
|
18
|
-
avgTimeBetweenSetsMs?: number | null;
|
|
19
|
-
avgHitsBetweenSets?: number | null;
|
|
20
|
-
avgMissesBetweenSets?: number | null;
|
|
21
|
-
};
|
|
22
|
-
export declare function getMetricValue(stat: CacheInsightDatum, metric: MetricKey): number;
|
|
23
|
-
export declare function formatYAxisTickValue(value: number, presentation: MetricPresentation): string;
|
|
24
|
-
export declare function formatTooltipValue(value: number, metric: MetricKey, presentation: MetricPresentation): [string | number, string];
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { CacheTraceType } from '../../types/types.cacheLog';
|
|
2
|
-
export type TimelinePoint = {
|
|
3
|
-
timestamp: number;
|
|
4
|
-
hits: number;
|
|
5
|
-
misses: number;
|
|
6
|
-
sets: number;
|
|
7
|
-
totalRequests: number;
|
|
8
|
-
hitRate: number;
|
|
9
|
-
avgDurationMs: number | null;
|
|
10
|
-
};
|
|
11
|
-
export type SizeTimelinePoint = {
|
|
12
|
-
timestamp: number;
|
|
13
|
-
sizeBytes: number;
|
|
14
|
-
};
|
|
15
|
-
export type LatencySummary = {
|
|
16
|
-
avgDurationMs: number | null;
|
|
17
|
-
p50DurationMs: number | null;
|
|
18
|
-
p95DurationMs: number | null;
|
|
19
|
-
};
|
|
20
|
-
export type OperationLatencySummary = {
|
|
21
|
-
hits: LatencySummary;
|
|
22
|
-
misses: LatencySummary;
|
|
23
|
-
};
|
|
24
|
-
export declare function buildTimeline(traces: CacheTraceType[], bucketSizeMs: number): TimelinePoint[];
|
|
25
|
-
export declare function buildSizeTimeline(traces: CacheTraceType[]): SizeTimelinePoint[];
|
|
26
|
-
export declare function summarizeTraces(traces: CacheTraceType[]): {
|
|
27
|
-
totalHits: number;
|
|
28
|
-
totalMisses: number;
|
|
29
|
-
totalSets: number;
|
|
30
|
-
lastHitAt: number | null;
|
|
31
|
-
lastMissAt: number | null;
|
|
32
|
-
lastSetAt: number | null;
|
|
33
|
-
};
|
|
34
|
-
export declare function computeLatencyStats(traces: CacheTraceType[]): OperationLatencySummary;
|
|
35
|
-
export declare function formatTimeLabel(value: number | string): string;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function formatSize(bytes?: number | null): string;
|
|
2
|
-
export declare function formatTimestamp(value?: number | null): string;
|
|
3
|
-
export declare function formatIsoDate(value?: number | null): string;
|
|
4
|
-
export declare function formatDurationMs(value?: number | null): string;
|
|
5
|
-
export declare function summarizeJson(value: unknown, maxLen?: number): string;
|
|
6
|
-
export declare function formatJson(value: unknown): string;
|
|
7
|
-
export declare function formatRelative(value?: number | null): string;
|