test(ops): 提升日志链路覆盖率并修复lint阻塞
This commit is contained in:
@@ -68,6 +68,20 @@ type OpsMetricThresholds struct {
|
||||
UpstreamErrorRatePercentMax *float64 `json:"upstream_error_rate_percent_max,omitempty"` // 上游错误率高于此值变红
|
||||
}
|
||||
|
||||
type OpsRuntimeLogConfig struct {
|
||||
Level string `json:"level"`
|
||||
EnableSampling bool `json:"enable_sampling"`
|
||||
SamplingInitial int `json:"sampling_initial"`
|
||||
SamplingNext int `json:"sampling_thereafter"`
|
||||
Caller bool `json:"caller"`
|
||||
StacktraceLevel string `json:"stacktrace_level"`
|
||||
RetentionDays int `json:"retention_days"`
|
||||
Source string `json:"source,omitempty"`
|
||||
UpdatedAt string `json:"updated_at,omitempty"`
|
||||
UpdatedByUserID int64 `json:"updated_by_user_id,omitempty"`
|
||||
Extra map[string]any `json:"extra,omitempty"`
|
||||
}
|
||||
|
||||
type OpsAlertRuntimeSettings struct {
|
||||
EvaluationIntervalSeconds int `json:"evaluation_interval_seconds"`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user