1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 06:08:20 -05:00
Ayymoss 0a8bbf2997 Add instance uptime to API info response
This update includes the instance uptime in the API info response.
2024-09-06 19:19:40 -05:00

23 lines
606 B
C#

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 TimeSpan Uptime { 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; }
}