Files
Flypaper/src/Flypaper.Storage/Dashboard/DashboardData.cs
T
TomandClaude Opus 5.5 e86518cab1
Build and deploy / build (push) Successful in 1m32s
Build and deploy / deploy (push) Successful in 30s
Fix MCP schema mismatches and argument errors, highlight rejected connections and show average hold time
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 20:56:50 +01:00

20 lines
608 B
C#

using Flypaper.Storage.Entities;
namespace Flypaper.Storage.Dashboard;
public sealed record DashboardData(
int TotalCatches,
int CatchesLast24Hours,
int Rejected,
int RejectedLast24Hours,
int UniqueIps,
TimeSpan TotalHoldTime,
IReadOnlyList<TrapEventEntity> Recent,
IReadOnlyList<TopEntry> TopIps,
IReadOnlyList<TopEntry> TopTargets,
IReadOnlyList<TopEntry> TopCountries,
IReadOnlyList<TopEntry> TopProviders,
IReadOnlyDictionary<string, int> CatchesByCountry);
public sealed record TopEntry(string Key, int Count, TimeSpan HoldTime, string? Label = null);