Skip to Content
Xeonr Developer Docs

Ship hub logs

POST
/xmb.api.v1.HubAgentService/ShipHubLogs

Takes a batch of the hub's own log lines for the owner surfaces. Authenticated by the hub token.

Authorization

BearerAuth
AuthorizationBearer <token>

An access token issued by the xeonr identity provider.

In: header

Header Parameters

Connect-Protocol-Version?number

Define the version of the Connect protocol

Connect-Timeout-Ms?number

Define the timeout, in ms

Request Body

application/json

hubToken?string

The hub token from the hub binary's configuration.

Length20 <= length <= 128
bootId?string

Identifies one process lifetime, so the surfaces can group lines by boot and say "previous boot" about a crash. Random per boot, never reused.

Lengthlength <= 64
entries?array<>

Oldest first. A batch may replay lines a crashed process spooled but never acknowledged, so the platform should tolerate the occasional duplicate rather than demand exactly-once from a node built to lose its state.

Itemsitems <= 1000
dropped?integer

Lines the node dropped since the last successful ship — ring overflow during an outage. Zero almost always; the count is the honest record that a gap is a gap.

[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://xmb.gg/xmb.api.v1.HubAgentService/ShipHubLogs" \  -H "Connect-Protocol-Version: 1" \  -H "Connect-Timeout-Ms: 1000" \  -H "Content-Type: application/json" \  -d '{}'
{}