20 lines
608 B
C#
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);
|