feat(api): статистика за период о выполнении заданий роботами
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user