feat(api,core,domain): Получение снапшотов работы роботов

This commit is contained in:
Mikhail Trubnikov
2026-06-11 11:40:12 +10:00
parent d736208a46
commit 7d26f1cf55
13 changed files with 187 additions and 25 deletions

View File

@@ -258,6 +258,7 @@
public static class StatRobotSnapshot
{
public const string GetAll = BaseStat + "/robot-snapshots/";
public const string Create = BaseStat + "/robot-snapshots/";
}

View File

@@ -0,0 +1,15 @@
namespace PARR.API.Contracts.V1.Requests.Queries
{
public record StatRobotSnapshotQuery
{
/// <summary>
/// IP робота
/// </summary>
public string? Ip { get; init; }
/// <summary>
/// Кол-во минут от текущего времени, по умолчнию 12 часов.
/// </summary>
public int Minutes { get; init; } = 12 * 60;
}
}

View File

@@ -1,6 +1,13 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public record StatRobotSnapshotItemResponse
{
public required UserBaseResponse Robot { get; init; }
public List<StatRobotSnapshotResponse> Snapshots { get; init; } = new();
}
public record StatRobotSnapshotResponse
{
public Guid Id { get; init; }
@@ -11,7 +18,5 @@
public int ScheduleRobotsCount { get; init; }
public int MaxRobots { get; init; }
public required string Ip { get; init; }
}
}