2021-11-10 14:23:53 +05:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Data
|
|
|
|
|
{
|
2022-12-26 18:03:26 +05:00
|
|
|
|
#nullable enable
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// DTO статистики запросов по пользователю
|
|
|
|
|
/// </summary>
|
2021-11-10 14:23:53 +05:00
|
|
|
|
public class RequestLogUserDto
|
|
|
|
|
{
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id пользователя
|
|
|
|
|
/// </summary>
|
2021-12-17 16:24:54 +05:00
|
|
|
|
public int UserId { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// логин
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string Login { get; set; } = string.Empty;
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// IP адрес пользователя
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string? Ip { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// время выполнения запроса
|
|
|
|
|
/// </summary>
|
2021-11-10 14:23:53 +05:00
|
|
|
|
public long ElapsedMs { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// метка времени последнего запроса
|
|
|
|
|
/// </summary>
|
2021-11-10 14:23:53 +05:00
|
|
|
|
public DateTime LastDate { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// кол-во запросов
|
|
|
|
|
/// </summary>
|
2021-11-10 14:23:53 +05:00
|
|
|
|
public long Requests { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// кол-во ошибок
|
|
|
|
|
/// </summary>
|
2021-12-17 16:24:54 +05:00
|
|
|
|
public long Errors { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// DTO пользователя
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public UserDto User { get; set; } = null!;
|
2021-11-10 14:23:53 +05:00
|
|
|
|
}
|
2022-12-26 18:03:26 +05:00
|
|
|
|
#nullable disable
|
2021-11-10 14:23:53 +05:00
|
|
|
|
}
|