mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-09-29 14:06:36 +08:00
f0e234df1f
Agent 仅上报 host_metrics/edge_health/access_logs;业务流量与 UV 由 Server 侧访问日志聚合。新增 of_node_edge_health 与 of_access_log_hourly, 删除 request_reports/openresty 吞吐路径;API 不再暴露 traffic_reports 与 openresty_rx|tx。心跳/离线默认阈值与回填迁移一并入库。
57 lines
2.3 KiB
Go
57 lines
2.3 KiB
Go
// Copyright 2026 Arctel.net
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package agent
|
|
|
|
import pkgprotocol "github.com/Rain-kl/Wavelet/pkg/protocol"
|
|
|
|
// NodePayload is the data sent by an agent on registration or heartbeat.
|
|
type NodePayload = pkgprotocol.NodePayload
|
|
|
|
// NodeSystemProfile carries static host information reported by an agent.
|
|
type NodeSystemProfile = pkgprotocol.NodeSystemProfile
|
|
|
|
// NodeMetricSnapshot holds a point-in-time resource-usage sample from an agent.
|
|
type NodeMetricSnapshot = pkgprotocol.NodeMetricSnapshot
|
|
|
|
// NodeEdgeHealth is L2 OpenResty health + connections.
|
|
type NodeEdgeHealth = pkgprotocol.NodeEdgeHealth
|
|
|
|
// NodeAccessLog is a single access-log record forwarded by an agent.
|
|
type NodeAccessLog = pkgprotocol.NodeAccessLog
|
|
|
|
// BufferedObservabilityRecord bundles multiple observability payloads into one upload.
|
|
type BufferedObservabilityRecord = pkgprotocol.BufferedObservabilityRecord
|
|
|
|
// NodeHealthEvent represents a discrete health-state change on an agent node.
|
|
type NodeHealthEvent = pkgprotocol.NodeHealthEvent
|
|
|
|
// ApplyLogPayload carries the result of a configuration-apply attempt reported by an agent.
|
|
type ApplyLogPayload = pkgprotocol.ApplyLogPayload
|
|
|
|
// Settings contains remote-control directives sent from the server to an agent.
|
|
type Settings = pkgprotocol.AgentSettings
|
|
|
|
// ActiveConfigMeta describes the currently active configuration version on the server.
|
|
type ActiveConfigMeta = pkgprotocol.ActiveConfigMeta
|
|
|
|
// SupportFile represents a supplementary file bundled with an agent configuration package.
|
|
type SupportFile = pkgprotocol.SupportFile
|
|
|
|
// WAFIPGroup is a named IP-address group used in WAF allow/block rules.
|
|
type WAFIPGroup = pkgprotocol.WAFIPGroup
|
|
|
|
// WAFIPGroupSyncRequest is sent by an agent to request an incremental WAF IP-group sync.
|
|
type WAFIPGroupSyncRequest = pkgprotocol.WAFIPGroupSyncRequest
|
|
|
|
// WAFIPGroupSyncResponse carries the server's reply to a WAF IP-group sync request.
|
|
type WAFIPGroupSyncResponse = pkgprotocol.WAFIPGroupSyncResponse
|
|
|
|
// Backward-compatible names used by server routers and handlers.
|
|
|
|
// WAFIPGroupSyncInput is an alias for WAFIPGroupSyncRequest kept for backward compatibility.
|
|
type WAFIPGroupSyncInput = WAFIPGroupSyncRequest
|
|
|
|
// WAFIPGroupSyncResult is an alias for WAFIPGroupSyncResponse kept for backward compatibility.
|
|
type WAFIPGroupSyncResult = WAFIPGroupSyncResponse
|