+ + Operation Result +
+ + + +// Click 'Fetch' to see results... +// Rapp will automatically serialize/deserialize the response.+
// Click 'Fetch' to see results... +// Rapp will automatically serialize/deserialize the response.+
Last updated: {DateTime.UtcNow:yyyy-MM-dd HH:mm:ss} UTC
+Updates every 1s
"; diff --git a/src/Rapp.Dashboard/DashboardStats.cs b/src/Rapp.Dashboard/DashboardStats.cs new file mode 100644 index 0000000..1bb4372 --- /dev/null +++ b/src/Rapp.Dashboard/DashboardStats.cs @@ -0,0 +1,18 @@ +using System.Text.Json.Serialization; + +namespace Rapp.Dashboard; + +public record RappDashboardStats( + long Hits, + long Misses, + long RappBytes, + long JsonBytes, + long TotalRequests, + double HitRate, + string Version +); + +[JsonSerializable(typeof(RappDashboardStats))] +internal sealed partial class DashboardJsonContext : JsonSerializerContext +{ +} diff --git a/src/Rapp.Dashboard/Rapp.Dashboard.csproj b/src/Rapp.Dashboard/Rapp.Dashboard.csproj index 8d0ef65..8ba88cf 100644 --- a/src/Rapp.Dashboard/Rapp.Dashboard.csproj +++ b/src/Rapp.Dashboard/Rapp.Dashboard.csproj @@ -1,11 +1,13 @@ ο»Ώ