feat(api): статистика за период о выполнении заданий роботами

This commit is contained in:
Mikhail Trubnikov
2024-08-07 14:01:47 +10:00
parent 5bddcc0aca
commit 82407910e0
3 changed files with 120 additions and 0 deletions

View File

@@ -184,6 +184,7 @@
public static class StatRobotTask
{
public const string Get = BaseStat + "/robot-tasks/";
public const string GetPeriodStatistics = BaseStat + "/robot-tasks/{robot}/period/";
}
public static class StatRobotStatus

View File

@@ -0,0 +1,27 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatRobotTaskPeriodResponse
{
public DateTimeOffset Date { get; set; }
/// <summary>
/// Робот взял заданий на создание
/// </summary>
public int Creating { get; set; }
/// <summary>
/// Взял заданий на обновление
/// </summary>
public int Updating { get; set; }
/// <summary>
/// Робот успешно выполнил заданий
/// </summary>
public int Ok { get; set; }
/// <summary>
/// Ошибок
/// </summary>
public int Errors { get; set; }
}
}