2021-11-10 14:23:53 +05:00
|
|
|
|
using System;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Data
|
2022-04-11 18:00:34 +05:00
|
|
|
|
{
|
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 RequestLogDto
|
|
|
|
|
{
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// логин пользователя
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string UserLogin { get; set; } = string.Empty;
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Id пользователя
|
|
|
|
|
/// </summary>
|
2021-11-10 14:23:53 +05:00
|
|
|
|
public int UserId { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// IP адрес пользователя
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string? UserIp { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// метод запроса (GET, POST,..)
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string RequestMethod { get; set; } = null!;
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// url
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string? RequestPath { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Referer
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string Referer { get; set; } = string.Empty;
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// продолжительность выполнения
|
|
|
|
|
/// </summary>
|
2021-11-10 14:23:53 +05:00
|
|
|
|
public long ElapsedMilliseconds { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// http status [200 - Ok, ...]
|
|
|
|
|
/// </summary>
|
2021-11-10 14:23:53 +05:00
|
|
|
|
public int Status { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
/// метка времени запроса
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public DateTime Date { get; set; }
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
/// сообщение об ошибке, если она произошла
|
2022-06-02 12:35:51 +05:00
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string? ExceptionMessage { get; set; } = null!;
|
2022-06-02 12:35:51 +05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// стек вызовов
|
|
|
|
|
/// </summary>
|
2022-12-26 18:03:26 +05:00
|
|
|
|
public string? ExceptionStack { 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
|
|
|
|
}
|