itfx/src/InterfaceForward.Repositories/Log/Entitys/LogIndex.cs
2025-11-05 18:04:05 +08:00

86 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 InterfaceForward.Domain.Shared;
using InterfaceForward.Repositories.Log.ES;
using Nest;
using Newtonsoft.Json;
namespace InterfaceForward.Repositories.Log.Entitys;
[ElasticsearchType(RelationName = "interface_forward")]
public class LogIndex : IdBaseIndex
{
/// <summary>
/// 请求Id
/// </summary>
public Guid RequestId { get; set; }
///<summary>
/// 请求时间
///</summary>
[JsonConverter(typeof(DateTimeJsonConverter), "yyyy-MM-dd HH:mm:ss fff")]
public DateTime RequestTime { get; set; }
///<summary>
/// false服务商 true应用
///</summary>
public bool IsApp { get; set; }
///<summary>
/// 应用/服务商名称
///</summary>
public string Name { get; set; }
///<summary>
/// 发起请求IP
///</summary>
public string ClientIP { get; set; }
///<summary>
/// 接口代码
///</summary>
public string InterfaceCode { get; set; }
///<summary>
/// 请求接口名称
///</summary>
public string InterfaceName { get; set; }
///<summary>
/// 请求地址
///</summary>
public string Address { get; set; }
///<summary>
/// 请求头
///</summary>
public string Headers { get; set; }
///<summary>
/// 请求体
///</summary>
public string Content { get; set; }
///<summary>
/// 响应耗时ms
///</summary>
public int Cost { get; set; }
///<summary>
/// 响应结果
///</summary>
public string Response { get; set; }
///<summary>
/// 响应结果映射后
///</summary>
public string Response2 { get; set; }
///<summary>
/// 是否成功调用
///</summary>
public bool IsSuccess { get; set; }
/// <summary>
/// 异常
/// </summary>
public string Exception { get; set; }
}