mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-09 00:56:37 +08:00
chore: prettier
This commit is contained in:
@@ -115,9 +115,7 @@ export function IPGroupsTable({
|
|||||||
variant='ghost'
|
variant='ghost'
|
||||||
size='icon'
|
size='icon'
|
||||||
className='size-8'
|
className='size-8'
|
||||||
title={
|
title={group.type === 'automatic' ? '立即执行' : '立即同步'}
|
||||||
group.type === 'automatic' ? '立即执行' : '立即同步'
|
|
||||||
}
|
|
||||||
aria-label={
|
aria-label={
|
||||||
group.type === 'automatic' ? '立即执行' : '立即同步'
|
group.type === 'automatic' ? '立即执行' : '立即同步'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,15 +18,15 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
healthEventStatusActive = "active"
|
healthEventStatusActive = "active"
|
||||||
healthEventStatusResolved = "resolved"
|
healthEventStatusResolved = "resolved"
|
||||||
healthSeverityInfo = "info"
|
healthSeverityInfo = "info"
|
||||||
healthSeverityWarning = "warning"
|
healthSeverityWarning = "warning"
|
||||||
healthSeverityCritical = "critical"
|
healthSeverityCritical = "critical"
|
||||||
accessLogPathMaxLength = 100
|
accessLogPathMaxLength = 100
|
||||||
accessLogUserAgentMaxLength = 512
|
accessLogUserAgentMaxLength = 512
|
||||||
accessLogCacheStatusMaxLength = 32
|
accessLogCacheStatusMaxLength = 32
|
||||||
healthEventMessageMaxLength = 4096
|
healthEventMessageMaxLength = 4096
|
||||||
)
|
)
|
||||||
|
|
||||||
// PersistHeartbeatObservability stores profile, host metrics, edge health, and access logs.
|
// PersistHeartbeatObservability stores profile, host metrics, edge health, and access logs.
|
||||||
|
|||||||
@@ -149,13 +149,13 @@ type AccessLogIPSummaryQuery struct {
|
|||||||
|
|
||||||
// AccessLogIPSummaryView is an IP summary row.
|
// AccessLogIPSummaryView is an IP summary row.
|
||||||
type AccessLogIPSummaryView struct {
|
type AccessLogIPSummaryView struct {
|
||||||
RemoteAddr string `json:"remote_addr"`
|
RemoteAddr string `json:"remote_addr"`
|
||||||
Region string `json:"region"`
|
Region string `json:"region"`
|
||||||
TotalRequests int64 `json:"total_requests"`
|
TotalRequests int64 `json:"total_requests"`
|
||||||
Success2xxCount int64 `json:"success_2xx_count"`
|
Success2xxCount int64 `json:"success_2xx_count"`
|
||||||
SuccessRatio float64 `json:"success_ratio"`
|
SuccessRatio float64 `json:"success_ratio"`
|
||||||
BytesReceived int64 `json:"bytes_received"`
|
BytesReceived int64 `json:"bytes_received"`
|
||||||
BytesSent int64 `json:"bytes_sent"`
|
BytesSent int64 `json:"bytes_sent"`
|
||||||
// RecentRequests is deprecated and always 0.
|
// RecentRequests is deprecated and always 0.
|
||||||
RecentRequests int64 `json:"recent_requests"`
|
RecentRequests int64 `json:"recent_requests"`
|
||||||
LastSeenAt time.Time `json:"last_seen_at"`
|
LastSeenAt time.Time `json:"last_seen_at"`
|
||||||
|
|||||||
Reference in New Issue
Block a user