1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

Add info api for #231

This commit is contained in:
RaidMax
2022-03-08 12:06:46 -06:00
parent 1f132d46f9
commit f9f3ff6af3
2 changed files with 74 additions and 0 deletions

View File

@ -0,0 +1,21 @@
using System;
namespace WebfrontCore.Controllers.API.Dtos;
public class InfoResponse
{
public int TotalConnectedClients { get; set; }
public int TotalClientSlots { get; set; }
public int TotalTrackedClients { get; set; }
public MetricSnapshot<int> TotalRecentClients { get; set; }
public MetricSnapshot<int?> MaxConcurrentClients { get; set; }
}
public class MetricSnapshot<T>
{
public T Value { get; set; }
public DateTime? Time { get; set; }
public DateTime? StartAt { get; set; }
public DateTime? EndAt { get; set; }
}