Skip to content

feat(PushPanel): add /healthz reporting adapter connection state - #76

Merged
m1ngsama merged 1 commit into
mainfrom
feat/healthz
Oct 26, 2026
Merged

m1ngsama merged 1 commit into
mainfrom
feat/healthz

Conversation

@m1ngsama

Copy link
Copy Markdown
Member

Adds GET /healthz to PushPanel (200 {"status":"ok"} when connected, 503 otherwise, no config exposed) so nbtca/heartbeat can monitor the bot.

  • BotService.IsConnected / IPluginService.IsConnected; OneBot uses the live WebSocket state, Telegram uses whether GetMe succeeded.
  • Test: Panel_HealthzReportsConnectionWithoutToken.

Note: Telegram state is startup-only; it does not detect polling failures later.

BotService gains IsConnected (OneBot reads the live WebSocket, others fall
back to having a robot account). The panel serves it unauthenticated so
status.nbtca.space can probe it.
@m1ngsama
m1ngsama merged commit 4e477fa into main Oct 26, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant