diff --git a/frontend/app/(main)/waf/components/ip-groups-table.tsx b/frontend/app/(main)/waf/components/ip-groups-table.tsx index 6e079723..9923c749 100644 --- a/frontend/app/(main)/waf/components/ip-groups-table.tsx +++ b/frontend/app/(main)/waf/components/ip-groups-table.tsx @@ -115,9 +115,7 @@ export function IPGroupsTable({ variant='ghost' size='icon' className='size-8' - title={ - group.type === 'automatic' ? '立即执行' : '立即同步' - } + title={group.type === 'automatic' ? '立即执行' : '立即同步'} aria-label={ group.type === 'automatic' ? '立即执行' : '立即同步' } diff --git a/internal/apps/openflare/agent/observability.go b/internal/apps/openflare/agent/observability.go index 066da8c9..4ea87180 100644 --- a/internal/apps/openflare/agent/observability.go +++ b/internal/apps/openflare/agent/observability.go @@ -18,15 +18,15 @@ import ( ) const ( - healthEventStatusActive = "active" - healthEventStatusResolved = "resolved" - healthSeverityInfo = "info" - healthSeverityWarning = "warning" - healthSeverityCritical = "critical" - accessLogPathMaxLength = 100 + healthEventStatusActive = "active" + healthEventStatusResolved = "resolved" + healthSeverityInfo = "info" + healthSeverityWarning = "warning" + healthSeverityCritical = "critical" + accessLogPathMaxLength = 100 accessLogUserAgentMaxLength = 512 accessLogCacheStatusMaxLength = 32 - healthEventMessageMaxLength = 4096 + healthEventMessageMaxLength = 4096 ) // PersistHeartbeatObservability stores profile, host metrics, edge health, and access logs. diff --git a/internal/apps/openflare/observability/access_log_logics.go b/internal/apps/openflare/observability/access_log_logics.go index c347310e..29bb5d0c 100644 --- a/internal/apps/openflare/observability/access_log_logics.go +++ b/internal/apps/openflare/observability/access_log_logics.go @@ -149,13 +149,13 @@ type AccessLogIPSummaryQuery struct { // AccessLogIPSummaryView is an IP summary row. type AccessLogIPSummaryView struct { - RemoteAddr string `json:"remote_addr"` - Region string `json:"region"` - TotalRequests int64 `json:"total_requests"` - Success2xxCount int64 `json:"success_2xx_count"` - SuccessRatio float64 `json:"success_ratio"` - BytesReceived int64 `json:"bytes_received"` - BytesSent int64 `json:"bytes_sent"` + RemoteAddr string `json:"remote_addr"` + Region string `json:"region"` + TotalRequests int64 `json:"total_requests"` + Success2xxCount int64 `json:"success_2xx_count"` + SuccessRatio float64 `json:"success_ratio"` + BytesReceived int64 `json:"bytes_received"` + BytesSent int64 `json:"bytes_sent"` // RecentRequests is deprecated and always 0. RecentRequests int64 `json:"recent_requests"` LastSeenAt time.Time `json:"last_seen_at"`