forked from ddrilling/AsbCloudServer
65 lines
1.7 KiB
C#
65 lines
1.7 KiB
C#
using System;
|
||
|
||
namespace AsbCloudApp.Data
|
||
{
|
||
/// <summary>
|
||
/// DTO журнала запросов
|
||
/// </summary>
|
||
public class RequestLogDto
|
||
{
|
||
/// <summary>
|
||
/// логин пользователя
|
||
/// </summary>
|
||
public string UserLogin { get; set; }
|
||
|
||
/// <summary>
|
||
/// Id пользователя
|
||
/// </summary>
|
||
public int UserId { get; set; }
|
||
|
||
/// <summary>
|
||
/// IP адрес пользователя
|
||
/// </summary>
|
||
public string UserIp { get; set; }
|
||
|
||
/// <summary>
|
||
/// метод запроса (GET, POST,..)
|
||
/// </summary>
|
||
public string RequestMethod { get; set; }
|
||
|
||
/// <summary>
|
||
/// url
|
||
/// </summary>
|
||
public string RequestPath { get; set; }
|
||
|
||
/// <summary>
|
||
/// Referer
|
||
/// </summary>
|
||
public string Referer { get; set; }
|
||
|
||
/// <summary>
|
||
/// продолжительность выполнения
|
||
/// </summary>
|
||
public long ElapsedMilliseconds { get; set; }
|
||
|
||
/// <summary>
|
||
/// http status [200 - Ok, ...]
|
||
/// </summary>
|
||
public int Status { get; set; }
|
||
|
||
/// <summary>
|
||
/// сообщение об ошибке, если она произошла
|
||
/// </summary>
|
||
public string ExceptionMessage { get; set; }
|
||
|
||
/// <summary>
|
||
/// метка времени запроса
|
||
/// </summary>
|
||
public DateTime Date { get; set; }
|
||
|
||
/// <summary>
|
||
/// стек вызовов
|
||
/// </summary>
|
||
public string ExceptionStack { get; set; }
|
||
}
|
||
} |