package cn.nianxx.thhotel.integrations.messaging.agentbus.adapter;

import java.time.OffsetDateTime;

/**
 * AgentBus 连接状态快照。只包含安全状态和计数器，不包含 Token 或原始 frame。
 */
public record AgentBusStatusSnapshot(
        boolean connected,
        boolean sessionReady,
        long receivedFrameCount,
        long capturedFrameCount,
        long ignoredFrameCount,
        long rejectedFrameCount,
        long failedFrameCount,
        String lastErrorCode,
        String lastErrorSummary,
        OffsetDateTime connectedAt,
        OffsetDateTime disconnectedAt,
        OffsetDateTime lastFrameReceivedAt
) {
}
