| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- using Newtonsoft.Json;
- namespace Aivfo.OperationLog
- {
- /// <summary>
- /// 操作日志消息 —— 字段对齐 Kafka topic tl-oplog 的 JSON schema(camelCase),
- /// 与 Java OperationLogMessage / aivfo-oplog 消费端一致。
- /// </summary>
- public sealed class OperationLogMessage
- {
- /// <summary>全链路串联 ID</summary>
- [JsonProperty("traceId")]
- public string TraceId { get; set; }
- /// <summary>父子调用链 ID</summary>
- [JsonProperty("parentId")]
- public string ParentId { get; set; }
- /// <summary>操作时间(epoch 毫秒)</summary>
- [JsonProperty("time")]
- public long Time { get; set; }
- /// <summary>端/服务(operate / front …)</summary>
- [JsonProperty("project")]
- public string Project { get; set; }
- /// <summary>功能模块(可读:对焦 / 串口 …)</summary>
- [JsonProperty("module")]
- public string Module { get; set; }
- /// <summary>操作(可读:一键标定 / 打开端口 …)</summary>
- [JsonProperty("operation")]
- public string Operation { get; set; }
- /// <summary>操作者(登录用户 / 系统 / 设备 SN)</summary>
- [JsonProperty("operator")]
- public string Operator { get; set; }
- /// <summary>输入(JSON 串;大对象只记关键信息)</summary>
- [JsonProperty("input")]
- public string Input { get; set; }
- /// <summary>输出(JSON 串;同上)</summary>
- [JsonProperty("output")]
- public string Output { get; set; }
- /// <summary>结果(成功 / 失败)</summary>
- [JsonProperty("result")]
- public string Result { get; set; }
- /// <summary>报错(消息 + 堆栈摘要)</summary>
- [JsonProperty("error")]
- public string Error { get; set; }
- /// <summary>耗时(毫秒)</summary>
- [JsonProperty("elapsedMs")]
- public long? ElapsedMs { get; set; }
- /// <summary>级别(INFO 操作级 / DEBUG 调试级)</summary>
- [JsonProperty("level")]
- public string Level { get; set; }
- /// <summary>舱号(消费端为 Integer)</summary>
- [JsonProperty("houseSn")]
- public int? HouseSn { get; set; }
- /// <summary>well 号</summary>
- [JsonProperty("wellSn")]
- public int? WellSn { get; set; }
- /// <summary>培养箱 SN</summary>
- [JsonProperty("tlSn")]
- public string TlSn { get; set; }
- /// <summary>来源主机</summary>
- [JsonProperty("host")]
- public string Host { get; set; }
- }
- }
|