feat(api,core,dal,domain): Сохранение снапшотов состояния роботов.
This commit is contained in:
@@ -256,6 +256,11 @@
|
||||
public const string GetStatusesLastDay = BaseStat + "/orders/statuses/last-day/{statusCode}";
|
||||
}
|
||||
|
||||
public static class StatRobotSnapshot
|
||||
{
|
||||
public const string Create = BaseStat + "/robot-snapshots/";
|
||||
}
|
||||
|
||||
public static class StatRabbitMq
|
||||
{
|
||||
public const string GetQueueStats = BaseStat + "/rabbitmq-queues/";
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace PARR.API.Contracts.V1.Requests
|
||||
{
|
||||
public record StatRobotSnapshotCreateRequest
|
||||
{
|
||||
public int TemplateRobotsCount { get; set; }
|
||||
|
||||
public int ScheduleRobotsCount { get; set; }
|
||||
|
||||
public int MaxRobots { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
namespace PARR.API.Contracts.V1.Responses.Statistics
|
||||
{
|
||||
public record StatRobotSnapshotItemResponse
|
||||
{
|
||||
public Guid Id { get; init; }
|
||||
|
||||
public DateTimeOffset DateCreated { get; init; }
|
||||
|
||||
public int TemplateRobotsCount { get; init; }
|
||||
|
||||
public int ScheduleRobotsCount { get; init; }
|
||||
|
||||
public int MaxRobots { get; init; }
|
||||
|
||||
public required string Ip { get; init; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user