You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.3 KiB

using Newtonsoft.Json;
using System;
using System.Text.Json.Serialization;
namespace CoreAgent.Domain.Models.Protocol;
/// <summary>
/// 基础网络日志实体类
/// 提供网络日志的通用属性和配置
/// </summary>
/// <typeparam name="T">日志层类型(如ImsLayerLog或RanLayerLog)</typeparam>
public class BaseNetworkLog<T>
{
/// <summary>
/// 超时时间(毫秒)
/// </summary>
[JsonProperty("timeout")]
public int Timeout { get; set; }
/// <summary>
/// 最小日志数量
/// </summary>
[JsonProperty("min")]
public int MinLogCount { get; set; }
/// <summary>
/// 最大日志数量
/// </summary>
[JsonProperty("max")]
public int MaxLogCount { get; set; }
/// <summary>
/// 日志层配置
/// </summary>
[JsonProperty("layers")]
public T LayerConfig { get; set; }
/// <summary>
/// 日志消息
/// </summary>
[JsonProperty("message")]
public string Message { get; set; }
/// <summary>
/// 是否包含消息头
/// </summary>
[JsonProperty("headers")]
public bool IncludeHeaders { get; set; }
/// <summary>
/// 消息ID
/// </summary>
[JsonProperty("message_id")]
public int MessageId { get; set; }
}