feat(dal, api): в таблицу Units добавлено поле LastLogon. Переделана авторизация для хостов (ЭК), теперь берется ip из связанных Units. Переделаны запросы авторизации в кеш. Переделан запрос и модель в influxdb. Обновлена статистика по юнитам и полям.

This commit is contained in:
Mikhail Trubnikov
2025-08-26 14:04:49 +10:00
parent a6385ea39a
commit c7bc8f60ef
19 changed files with 3994 additions and 137 deletions

View File

@@ -1,11 +0,0 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatApplicationResponse
{
public int AllApplications { get; set; }
public int CreatedLastDay { get; set; }
public int UpdatedLastDay { get; set; }
}
}

View File

@@ -0,0 +1,11 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatUnitFieldValuesResponse
{
public int AllValues { get; set; }
public int CreatedLastDay { get; set; }
//public int UpdatedLastDay { get; set; }
}
}

View File

@@ -1,9 +1,9 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatHostPeriodResponse
public class StatUnitPeriodResponse
{
public DateOnly Date { get; set; }
public int CreatedHostsCount { get; set; }
public int CreatedUnitsCount { get; set; }
}
}

View File

@@ -1,6 +1,6 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatHostResponse
public class StatUnitResponse
{
public int AllHosts { get; set; }

View File

@@ -1,8 +1,8 @@
namespace PARR.API.Contracts.V1.Responses.Statistics
{
public class StatHostTemplateResponse
public class StatUnitTemplateResponse
{
public int AllUnits { get; set; }
public int HostsInTemplates { get; set; }
public int UnitsInTemplates { get; set; }
}
}