feat(api,core,domain): Получение снапшотов работы роботов
This commit is contained in:
@@ -258,6 +258,7 @@
|
||||
|
||||
public static class StatRobotSnapshot
|
||||
{
|
||||
public const string GetAll = BaseStat + "/robot-snapshots/";
|
||||
public const string Create = BaseStat + "/robot-snapshots/";
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user