API-Referenz · Monitors
Subscribe to live probe results
Subscription
liveProbeResultsliveProbeResults streams probe results for a single monitor in real time as each per-region probe is persisted. Optionally filter to a subset of prober regions. When lastN is set (capped at 30), the stream is primed with the N most recent stored results (oldest first, de-duplicated against live events) before switching to live delivery — use the probeResults query for anything deeper than that.
liveProbeResults(
organizationId: ID!
monitorId: ID!
proberRegionScopes: [String!]
lastN: Int
): ProbeResult!Argumente
Feld
Typ
Rückgabe
Feld
Typ
Beispiel
subscription LiveProbeResults($organizationId: ID!, $monitorId: ID!, $proberRegionScopes: [String!], $lastN: Int) {
liveProbeResults(organizationId: $organizationId, monitorId: $monitorId, proberRegionScopes: $proberRegionScopes, lastN: $lastN) {
metadata {
id
timestamp
succeeded
error
proberRegionSlug
attempts
}
result {
__typename
... on ICMPProbeResult {
host
minRttMs
avgRttMs
maxRttMs
packetLossPercent
}
... on HTTPProbeResult {
address
durationMs
statusCode
httpVersion
httpContentLength
redirectCount
ipProtocolVersion
isSSL
}
}
}
}Beispielantwort
{
"data": {
"liveProbeResults": {
"metadata": {
"id": "01JB3X7T9QK2M4N6P8R0S2T4V6",
"timestamp": "2026-01-01T12:00:00Z",
"succeeded": true,
"error": "Example error",
"proberRegionSlug": "Example proberRegionSlug",
"attempts": 1
},
"result": {
"__typename": "ICMPProbeResult",
"host": "Example host",
"minRttMs": 1,
"avgRttMs": 1,
"maxRttMs": 1,
"packetLossPercent": 1
}
}
}
}