feat(api): StatRobotStateController обновлен респонс статистики доступности роботов. Учтена возможность нескольких роботов на разных серверах.

This commit is contained in:
Mikhail Trubnikov
2024-07-22 16:59:15 +10:00
parent ec5038cdf0
commit 0b6bfdfbc6
3 changed files with 55 additions and 12 deletions

View File

@@ -1,11 +1,18 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatRobotStateResponse
{
public string? RobotIp { get; set; }
public UserBaseResponse? User { get; set; }
public List<StatRobotStateData>? Data { get; set; }
}
public class StatRobotStateData
{
public DateTimeOffset Date { get; set; }
public int IsUp { get; set; }
public string? Ip { get; set; }
}
}