feat(api): статистика запросов на авторизацию не из КЭШа

This commit is contained in:
Mikhail Trubnikov
2024-06-03 11:52:24 +10:00
parent f4ec3448ae
commit faab4a6664
4 changed files with 95 additions and 0 deletions

View File

@@ -224,6 +224,12 @@
public const string Send = BaseStat + "/robot-states/";
}
public static class StatAuth
{
public const string Get = BaseStat + "/auth";
}
#endregion
#region Наряды

View File

@@ -0,0 +1,10 @@
namespace PARR.API.Contracts.V1.Requests.Queries
{
public class StatAuthGetQuery
{
/// <summary>
/// Начало данных (-3d, -2h, -15m). По умолчанию -2h
/// </summary>
public string? StartAt { get; set; }
}
}

View File

@@ -0,0 +1,9 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatAuthResponse
{
public DateTimeOffset Date { get; set; }
public int Count { get; set; }
}
}