fix: 初验针对修改

This commit is contained in:
zxr
2026-09-09 16:45:01 +08:00
parent 38a86e1fd8
commit b0ffde3100
25 changed files with 1531 additions and 158 deletions

View File

@@ -30,6 +30,11 @@ type LogEvent struct {
ResourceID string `gorm:"size:128;index" json:"resource_id"`
// ResourceName 表示关联到的资源名称。
ResourceName string `gorm:"size:256" json:"resource_name"`
// BusinessSystemID 关联业务系统。
BusinessSystemID *uint `gorm:"index" json:"business_system_id,omitempty"`
// TraceID 和 SpanID 用于从日志定位调用链。
TraceID string `gorm:"size:32;index" json:"trace_id,omitempty"`
SpanID string `gorm:"size:16;index" json:"span_id,omitempty"`
// MatchMethod 表示资源命中方式(ip/hostname/none)。
MatchMethod string `gorm:"size:32" json:"match_method"`
// DispatchStatus 表示告警分发状态(not_applicable/pending/retrying/sent/dead)。