80 lines
1.9 KiB
C#
80 lines
1.9 KiB
C#
namespace Flypaper.Web.Mcp;
|
|
|
|
public sealed record CatchItem(
|
|
long Id,
|
|
DateTime StartedAt,
|
|
DateTime EndedAt,
|
|
double DurationSeconds,
|
|
long BytesSent,
|
|
string Outcome,
|
|
string Strategy,
|
|
string Ip,
|
|
string? CountryCode,
|
|
string? Country,
|
|
string? City,
|
|
string? Asn,
|
|
string? Provider,
|
|
string? Target,
|
|
string? UserAgent);
|
|
|
|
public sealed record StatsResult(
|
|
string Period,
|
|
DateTime? Since,
|
|
int Catches,
|
|
int Rejected,
|
|
int UniqueIps,
|
|
double TotalHoldSeconds,
|
|
double AverageHoldSeconds,
|
|
int ActiveTraps,
|
|
CatchItem? LongestCatch);
|
|
|
|
public sealed record CatchListResult(int Count, IReadOnlyList<CatchItem> Catches);
|
|
|
|
public sealed record TopResultItem(string Key, string? Label, int Catches, double TotalHoldSeconds);
|
|
|
|
public sealed record TopResult(string Dimension, string Period, IReadOnlyList<TopResultItem> Items);
|
|
|
|
public sealed record IpLookupResult(
|
|
string Ip,
|
|
bool Known,
|
|
string? CountryCode,
|
|
string? Country,
|
|
string? City,
|
|
string? Asn,
|
|
string? Provider,
|
|
int Catches,
|
|
int Rejected,
|
|
double TotalHoldSeconds,
|
|
long TotalBytesSent,
|
|
DateTime? FirstSeen,
|
|
DateTime? LastSeen,
|
|
IReadOnlyList<CatchItem> Events,
|
|
int EventsOmitted);
|
|
|
|
public sealed record EntryItem(
|
|
int Id,
|
|
DateOnly Date,
|
|
string Title,
|
|
string Kind,
|
|
string Text,
|
|
string? Commit,
|
|
IReadOnlyList<string> Strategies,
|
|
DateTime CreatedAt,
|
|
DateTime UpdatedAt);
|
|
|
|
public sealed record EntryListResult(int Count, IReadOnlyList<EntryItem> Entries);
|
|
|
|
public sealed record IdeaItem(
|
|
int Id,
|
|
string Title,
|
|
string Effort,
|
|
string Efficiency,
|
|
string Rationale,
|
|
string Status,
|
|
DateOnly? ImplementedOn,
|
|
string? Commit,
|
|
DateTime CreatedAt,
|
|
DateTime UpdatedAt);
|
|
|
|
public sealed record IdeaListResult(int Count, IReadOnlyList<IdeaItem> Ideas);
|