feat(dal, api): в таблицу Units добавлено поле LastLogon. Переделана авторизация для хостов (ЭК), теперь берется ip из связанных Units. Переделаны запросы авторизации в кеш. Переделан запрос и модель в influxdb. Обновлена статистика по юнитам и полям.
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
namespace PARR.API.Contracts.V1.Responses.Statistics
|
||||
{
|
||||
public class StatHostResponse
|
||||
public class StatUnitResponse
|
||||
{
|
||||
public int AllHosts { get; set; }
|
||||
|
||||
@@ -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; }
|
||||
}
|
||||
}
|
||||
@@ -5,12 +5,13 @@
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public required string Name { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class UnitResponse : UnitBaseResponse
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -19,6 +20,8 @@
|
||||
/// </summary>
|
||||
public class UnitWithAttributesResponse : UnitBaseResponse
|
||||
{
|
||||
public DateTimeOffset? LastLogon { get; set; }
|
||||
|
||||
public List<AttributeResponse>? Attributes { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user