Add info api for #231
This commit is contained in:
21
WebfrontCore/Controllers/API/Dtos/InfoResponse.cs
Normal file
21
WebfrontCore/Controllers/API/Dtos/InfoResponse.cs
Normal 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; }
|
||||
}
|
Reference in New Issue
Block a user