Check Types & Execution Model
Overview
Quismon supports several check types, each with different execution characteristics. Understanding these differences is crucial for designing effective monitoring strategies.
Available Check Types
| Type | Description | Use Case |
|---|---|---|
http / https | HTTP/HTTPS requests | Web endpoints, APIs |
http3 | HTTP/3 over QUIC | Modern APIs, CDNs |
ping | ICMP echo requests | Host availability |
tcp | TCP port connectivity | Database, cache servers |
dns | DNS record queries | DNS configuration, resolution |
dnssec | Full chain-of-trust validation (DNSKEY + DS + RRSIG against the root trust anchor) | DNS security verification, registrar/DNS-host misconfiguration detection |
udp | UDP service probes | DNS servers, game/VoIP services |
ssl | SSL/TLS certificate checks | Certificate expiry, validity |
multistep | Sequential workflow checks | User journeys, API chains |
throughput | Download speed tests | Bandwidth monitoring |
smtp-imap | End-to-end email round-trip (send via SMTP, verify via IMAP, optional SPF/DKIM/DMARC assertions) | Mail pipeline health |
traceroute | Network path tracing | Routing diagnosis, path changes |
dom | Validates JavaScript functionality: the page loads, its JS executes, and the resulting DOM matches your assertions (CSS selector, text, or a truthy JS expression). expected_text may be a single string or an array of strings; every entry must match. The scripted variant performs real form logins and reads the logged-in DOM (no custom request headers; engine is not Chromium - no pixel fidelity). Typical run: 200-700ms, ~50-120MB transient, ~8 concurrent per node | Blank-page detection (HTTP 200 but the SPA rendered nothing), JS-rendered content (prices, search results, dashboards), login flows, client-side feature verification |
playwright | Full browser fidelity at ~15x the execution time of a dom check: real Chromium, pixel-faithful screenshots of the logged-in state, complex interactions (drag, hover, canvas), exact behavior for sites where lighter engines diverge. Inline scripts are the body of an async function (page, context, browser, step, and endStep are in scope); function wrappers, CommonJS/ESM, and this are rejected at write time. config.secrets (UPPER_SNAKE_CASE keys) is exposed as a secrets object and masked on API reads. Typical run: 2-5s CPU, ~450MB, ~2 concurrent per node | Logged-in journeys needing full browser fidelity; visual regression; JS-heavy apps |
DNS Check Configuration
DNS checks can optionally specify custom nameservers to query instead of using system defaults:
{
"type": "dns",
"config": {
"domain": "example.com",
"record_type": "A",
"nameservers": ["8.8.8.8", "1.1.1.1"]
}
}
Multiple nameservers are tried in order with automatic fallback on failure.
DNSSEC Check Configuration
DNSSEC checks validate the full chain of trust from the domain's DNSKEY up to the IANA root trust anchors: RRSIG signatures are verified and the DS/DNSKEY delegation chain is walked. A zone with a broken chain (bad signature, mismatched or missing DS at the parent) fails the check even when records resolve.
{
"type": "dnssec",
"config": {
"domain": "example.com",
"record_type": "A",
"require_signed": true,
"validate_chain": true
}
}
Fields: record_type (A, AAAA, MX, TXT, NS, SOA, DNSKEY; default A), require_signed (fail if the zone has no DNSKEY/DS; default true), validate_chain (verify signatures and the chain of trust to the root; default true — set to false for presence-only semantics), nameservers (optional custom resolvers).
Results carry validation_status metadata: secure (chain validated), insecure (zone unsigned or nonexistent), bogus (broken chain — check fails), or not_validated (presence-only mode). A typical setup pairs a passing check on your own domain with one on dnssec-failed.org to alert you if validation breaks.
Dom Checks in Practice
An HTTP check tells you the server answered. A dom check tells you the page actually works: its JavaScript executed and the DOM it built matches your assertions. The failure class it catches is the most common SPA outage - the server returns 200, but users see a white screen.
- Blank-page detection - assert the root container and a key element exist after hydration; catch the white-screen-of-death that HTTP checks report as healthy
- JS-rendered content - product prices, search results, availability, cart counts: anything the server doesn't send in the HTML
- SaaS dashboards - verify charts, tables, and widgets actually render with data, not just that the app shell loads
- Login flows - the scripted variant fills the real form and verifies the logged-in dashboard (credentials via write-only secrets)
- Feature verification - confirm a client-side feature flag produced its UI, or that an A/B variant renders the expected elements
- Mixed journeys - as a step type inside multi-step checks: extract a CSRF token from the page, POST it to an API, then assert the resulting DOM
When you need pixel-faithful screenshots, complex interactions, or exact Chromium behavior, use Playwright checks instead - full fidelity at roughly 15x the execution time.
Playwright Check Grammar (body-v1)
script_inline is the body of an async function, versioned as body-v1. The names page, context, browser, step, endStep, secrets, and console are already in scope. await and return are legal; use throw for assertions. The body must contain at least one observable call rooted at page, context, browser, or page.request.
await page.goto('https://app.example.com/console');
const title = await page.title();
if (!title.includes('Console')) throw new Error('bad title: ' + title);
if (!secrets.APP_TOKEN) throw new Error('missing APP_TOKEN');
config.secrets is an object of UPPER_SNAKE_CASE keys to non-empty strings. Values are exposed as secrets.KEY, masked on API reads, and never logged by the wrapper. Do not inline credentials in the script.
Rejected at write time
| Shape | Code |
|---|---|
function/arrow wrapper (async ({ page }) => {...}) | function_form_unsupported |
CommonJS/ESM/this (require, module.exports, import, export, this) | forbidden_construct |
| syntax error | script_syntax_error |
no observable call (for example const x = 1;) | no_operation_body |
| over the tier script-size limit | oversized_script |
script and script_inline together | conflicting_sources |
The old callback shape was never executed by the executor and produced a false green (final_url: about:blank); it is not a supported grammar. GET /v1/check-types exposes data.playwright_script_grammar (body-v1).
Authenticated SPA recipe
For apps that keep the session in sessionStorage, seed it before the app scripts run, wait for a post-auth selector, then verify the authenticated path with an in-page fetch. Put the token in config.secrets; never inline it.
await context.addInitScript(({ key, value }) => {
try { window.sessionStorage.setItem(key, value) } catch {}
}, { key: 'session_token', value: secrets.CONSOLE_TOKEN });
await page.goto('https://app.example.com/console', { waitUntil: 'domcontentloaded' });
// Wait for a selector that only renders after auth; networkidle alone is not enough.
await page.waitForSelector('[data-testid="console-ready"]', { timeout: 15000 });
// Verify the authenticated app using its own session/cookies.
const me = await page.evaluate(async () => {
const res = await fetch('/api/me', { credentials: 'include' });
if (!res.ok) throw new Error('auth fetch failed: ' + res.status);
return await res.json();
});
if (!me || !me.org) throw new Error('authenticated console did not render');
context.addInitScriptis context-scoped and runs before page scripts;sessionStorageis origin-scoped, so seed it before navigating.- Wait for a post-auth selector, not just
networkidle. - The in-page
fetchuses the app's session/cookies and verifies the authenticated path end to end. - Set
config.secretsto{ "CONSOLE_TOKEN": "..." }(UPPER_SNAKE_CASE); values are masked on API reads and never logged.
Multi-Step Checks vs Dependent Checks
Multi-Step Checks
Execution Model: All steps execute sequentially on a single checker node within the same session.
┌──────────────────────────────────────────────────┐ │ Single Checker Node │ │ │ │ ┌──────────┐ ┌──────────┐ ┌──────────┐ │ │ │ Step 1 │───▶│ Step 2 │───▶│ Step 3 │ │ │ │ Login │ │ Get Data │ │ Verify │ │ │ └──────────┘ └──────────┘ └──────────┘ │ │ │ │ │ │ │ └───────────────┴───────────────┘ │ │ │ │ │ Variables flow between steps │ │ (auth tokens, session cookies, etc.) │ └──────────────────────────────────────────────────┘
Characteristics
- Steps share context (cookies, extracted variables)
- Each step can pass data to the next step
- All steps must complete on the same checker
- If one step fails, subsequent steps may not run (configurable)
Use Cases
- Login flows (authenticate → access protected resource)
- API chains (get ID → fetch related data)
- Shopping carts (add item → verify cart → checkout)
- Any workflow requiring session state
Example
{
"type": "multistep",
"config": {
"steps": [
{
"name": "Login",
"type": "https",
"config": { "url": "https://api.example.com/login", "method": "POST" },
"extracts": { "token": { "jsonpath": "$.access_token" } }
},
{
"name": "Get Profile",
"type": "https",
"config": {
"url": "https://api.example.com/profile",
"headers": { "Authorization": "Bearer {{token}}" }
}
}
],
"fail_fast": true
}
}
Dependent Checks
Execution Model: Independent checks that can be distributed across multiple checker nodes and regions. One check's failure can trigger another check to run.
┌──────────────────┐ ┌──────────────────┐
│ Checker Node A │ │ Checker Node B │
│ (na-east-ewr) │ │ (eu-central-fra)│
│ │ │ │
│ ┌────────────┐ │ │ ┌────────────┐ │
│ │ Check 1 │ │ │ │ Check 2 │ │
│ │ API Health│ │ │ │ Database │ │
│ └────────────┘ │ │ └────────────┘ │
│ │ │ │ │ │
└────────│─────────┘ └────────│─────────┘
│ │
│ Check 1 FAILS │
│ │ │
│ ▼ │
│ ┌────────────────┐ │
└─▶│ Trigger Check 3│◀───────┘
│ (Dependent) │
│ Investigate │
└────────────────┘
│
Runs from ITS regions,
not Check 1's regions
Characteristics
- Each check runs independently
- Checks can have different region configurations
depends_oncreates execution dependencies- Dependent checks run from their own regions, not the parent's
Use Cases
- Staged monitoring (check API → if down, check database)
- Root cause analysis chains
- Regional failover detection
Regional Execution
Simultaneous Regions
When simultaneous_regions is true:
Time: 0s ┌────────────┐ ┌────────────┐ ┌────────────┐
│ na-east-ewr│ │eu-central- │ │ap-southeast│
│ Checker │ │ fra │ │ -sin │
└────────────┘ └────────────┘ └────────────┘
│ │ │
▼ ▼ ▼
All regions check simultaneously
Staggered Regions
When simultaneous_regions is false:
Time: 0s ┌────────────┐
│ na-east-ewr│
└────────────┘
│
Time: 10s │ ┌────────────┐
└────────▶│eu-central- │
│ fra │
└────────────┘
│
Time: 20s │ ┌────────────┐
└────────▶│ap-southeast│
│ -sin │
└────────────┘
Staggered execution spreads load over time and can detect transient issues.
Check Budget Calculation
Each regional check execution counts toward the hourly budget:
| Regions | Interval | Checks/Hour |
|---|---|---|
| 1 | 60s | 60 |
| 3 | 60s | 180 |
| 5 | 60s | 300 |
| 3 | 300s | 36 |
Formula: (3600 / interval_seconds) × number_of_regions = checks_per_hour
Best Practices
When to Use Multi-Step
- ✅ Workflow requires session state
- ✅ Steps must share cookies/tokens
- ✅ Sequential user journey simulation
- ❌ Independent endpoint monitoring
When to Use Dependent Checks
- ✅ Root cause analysis chains
- ✅ Different regions for different checks
- ✅ Staged alerting (warning → critical)
- ❌ Need to pass variables between checks
When to Use Simultaneous Regions
- ✅ Detect regional outages quickly
- ✅ Global availability monitoring
- ❌ Trying to conserve check budget
When to Use Staggered Regions
- ✅ Spread load over time
- ✅ Reduce budget usage impact
- ✅ Detect transient issues over time