Align runtime profiles with plugin-owned records

This commit is contained in:
npc0-hue
2026-09-02 10:22:14 +08:00
parent 6018d8f0fc
commit a027ca70eb
36 changed files with 234 additions and 1590 deletions
-7
View File
@@ -12,7 +12,6 @@ import (
const (
MaxLogBatchEntries = 512
MaxLogLineLength = 8192
MaxLogQueryLimit = 10000
)
@@ -63,12 +62,6 @@ func ValidateLogBatchIngest(batch domain.LogBatchIngest) error {
if entry.Seq != batch.FirstSeq+uint64(i) {
violations = append(violations, fmt.Sprintf("entries[%d].seq must be contiguous", i))
}
if strings.TrimSpace(entry.Line) == "" {
violations = append(violations, fmt.Sprintf("entries[%d].line is required", i))
}
if len(entry.Line) > MaxLogLineLength {
violations = append(violations, fmt.Sprintf("entries[%d].line is too long", i))
}
for key := range entry.Fields {
if strings.TrimSpace(key) == "" {
violations = append(violations, fmt.Sprintf("entries[%d].fields key is required", i))