DD.WellWorkover.Cloud/AsbCloudApp/Data/RequestLogDto.cs

70 lines
1.9 KiB
C#
Raw Normal View History

using System;
namespace AsbCloudApp.Data
2022-04-11 18:00:34 +05:00
{
2022-06-02 12:35:51 +05:00
/// <summary>
/// DTO журнала запросов
/// </summary>
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>
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>
public long ElapsedMilliseconds { get; set; }
2022-06-02 12:35:51 +05:00
/// <summary>
/// http status [200 - Ok, ...]
/// </summary>
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!;
/// <summary>
/// Размер body
/// </summary>
public long? RequestContentLength { get; set; }
}
}