chore: prettier

This commit is contained in:
ryan
2026-07-19 13:00:01 +08:00
parent 64e40a7c18
commit 39473cb370
3 changed files with 15 additions and 17 deletions
@@ -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' ? '立即执行' : '立即同步'
}
@@ -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.
@@ -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"`