-
Notifications
You must be signed in to change notification settings - Fork 0
reference data models
Douwe de Vries edited this page Jul 1, 2026
·
1 revision
Load Rift mirrors command and event models between TypeScript and Rust. TypeScript definitions live in src/lib/loadrift/types.ts; Rust definitions live in src-tauri/src/models.rs.
| Model | Key fields | Source |
|---|---|---|
K6Options |
VUs, duration, ramp-up, thresholds, auth token, base URL, variable overrides, advanced JSON, selected request IDs, traffic mode, request weights |
src/lib/loadrift/types.ts, src-tauri/src/models.rs
|
ThresholdConfig |
P95 response time and error-rate thresholds |
src/lib/loadrift/types.ts, src-tauri/src/models.rs
|
RampUpStrategy |
instant, gradual, staged
|
src/lib/loadrift/types.ts, src-tauri/src/models.rs
|
TrafficMode |
sequential, weighted
|
src/lib/loadrift/types.ts, src-tauri/src/models.rs
|
| Model | Purpose |
|---|---|
CollectionInfo |
Frontend summary of imported collection name, counts, requests, and runtime variables |
RequestInfo |
Request ID, name, method, URL, and folder path |
RuntimeVariable |
Variable key and optional default value |
RuntimeCollection |
Backend-only variables and requests used for validation and execution |
RuntimeRequest |
Backend request data embedded into generated k6 JavaScript |
| Model | Purpose |
|---|---|
TestStatus |
idle, running, completed, failed, or stopped
|
LiveMetrics |
Active VUs, request counts, error rate, latency values, and throughput |
TestResult |
Final status, final metrics, and thresholds |
ThresholdResult |
Threshold name, pass/fail, actual value, and configured threshold |
TestCompletion |
Terminal event payload for a run |
GetTestStatusResponse |
Current or latest run state snapshot |
SmokeTestResponse contains SmokeTestResult entries with request identity, HTTP status, duration, success flag, content type, response headers, body preview, and error message. The backend implementation is in src-tauri/src/commands/testing/smoke.rs.
For API usage, see Tauri commands.