Commit da791f2
committed
feat: surface max mode usage in dashboard and cost alerts
Add max_mode_reqs and avg_cache_read_tokens to user cost breakdown
queries. Show max mode % column in user detail Cost Breakdown table
with amber highlighting and cache token tooltip. Enrich cost/req spike
alert messages with max mode percentage so recipients understand WHY
the cost per request is high, not just that it spiked.
Made-with: Cursor1 parent d7d223a commit da791f2
File tree
3 files changed
+36
-4
lines changed- src
- app/users/[email]
- lib
- anomaly
- data
3 files changed
+36
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
| |||
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
| 322 | + | |
320 | 323 | | |
321 | 324 | | |
322 | 325 | | |
| |||
370 | 373 | | |
371 | 374 | | |
372 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
373 | 388 | | |
374 | 389 | | |
375 | 390 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
139 | 142 | | |
140 | 143 | | |
141 | 144 | | |
| |||
144 | 147 | | |
145 | 148 | | |
146 | 149 | | |
147 | | - | |
| 150 | + | |
148 | 151 | | |
149 | 152 | | |
150 | 153 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2235 | 2235 | | |
2236 | 2236 | | |
2237 | 2237 | | |
| 2238 | + | |
| 2239 | + | |
2238 | 2240 | | |
2239 | 2241 | | |
2240 | 2242 | | |
| |||
2248 | 2250 | | |
2249 | 2251 | | |
2250 | 2252 | | |
2251 | | - | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
2252 | 2256 | | |
2253 | 2257 | | |
2254 | 2258 | | |
| |||
2266 | 2270 | | |
2267 | 2271 | | |
2268 | 2272 | | |
| 2273 | + | |
| 2274 | + | |
2269 | 2275 | | |
2270 | 2276 | | |
2271 | 2277 | | |
| |||
2945 | 2951 | | |
2946 | 2952 | | |
2947 | 2953 | | |
| 2954 | + | |
| 2955 | + | |
2948 | 2956 | | |
2949 | 2957 | | |
2950 | 2958 | | |
| |||
2954 | 2962 | | |
2955 | 2963 | | |
2956 | 2964 | | |
2957 | | - | |
| 2965 | + | |
| 2966 | + | |
| 2967 | + | |
2958 | 2968 | | |
2959 | 2969 | | |
2960 | 2970 | | |
| |||
2990 | 3000 | | |
2991 | 3001 | | |
2992 | 3002 | | |
2993 | | - | |
| 3003 | + | |
| 3004 | + | |
| 3005 | + | |
2994 | 3006 | | |
2995 | 3007 | | |
2996 | 3008 | | |
| |||
3004 | 3016 | | |
3005 | 3017 | | |
3006 | 3018 | | |
| 3019 | + | |
| 3020 | + | |
3007 | 3021 | | |
3008 | 3022 | | |
3009 | 3023 | | |
| |||
0 commit comments