DD.WellWorkover.Cloud/AsbCloudApp/Data/RequestLogDto.cs
2022-12-26 18:03:26 +05:00

67 lines
1.8 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
namespace AsbCloudApp.Data
{
#nullable enable
/// <summary>
/// DTO журнала запросов
/// </summary>
public class RequestLogDto
{
/// <summary>
/// логин пользователя
/// </summary>
public string UserLogin { get; set; } = string.Empty;
/// <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; } = null!;
/// <summary>
/// url
/// </summary>
public string? RequestPath { get; set; }
/// <summary>
/// Referer
/// </summary>
public string Referer { get; set; } = string.Empty;
/// <summary>
/// продолжительность выполнения
/// </summary>
public long ElapsedMilliseconds { get; set; }
/// <summary>
/// http status [200 - Ok, ...]
/// </summary>
public int Status { get; set; }
/// <summary>
/// метка времени запроса
/// </summary>
public DateTime Date { get; set; }
/// <summary>
/// сообщение об ошибке, если она произошла
/// </summary>
public string? ExceptionMessage { get; set; } = null!;
/// <summary>
/// стек вызовов
/// </summary>
public string? ExceptionStack { get; set; } = null!;
}
#nullable disable
}