Expand description
The JSON shapes of the REST API: what it returns and what it accepts.
They are the API’s own types, apart from the database’s and the model’s, so the API
changes only on purpose (within /api/v1, additively). Times are UTC, RFC 3339; kinds and
states are their model names (clients treat them as open: new values may appear).
Structs§
- AllRuns
Query - Which runs to list, over every DAG.
- Attempt
List - A task’s attempts.
- Attempt
Memory List - A task’s last ended attempts’ peak memory (decision 467): the task panel’s chart.
- Attempt
Memory View - An ended attempt’s peak memory.
- Attempt
View - An attempt of a task.
- Backfill
List - A DAG’s backfills, newest first.
- Backfill
Request - A backfill to create (
schedr runs backfill, decisions 363, 364, 400-404): a run per fire time of[from, to]with no successful, queued or running run, oldest first. - Backfill
RunCounts - A backfill’s runs by state.
- Backfill
View - A backfill (decision 403).
- Check
Connections Request - Connections to check on a worker (
schedr connections check). - Cleanup
View - An attempt’s cleanup.
- Command
List - The commands about a run.
- Command
View - A command: an action the master applies, then marks
appliedorrejected. - Connection
Info - A connection, as its root’s current parse records it.
- Connection
List - Each DAG root’s connections, in its current code (decision 211): what the UI lists, never a value.
- Connection
Use - The tasks of one DAG declaring a connection.
- Coverage
View - The minutes the deployment was sampled in a bucket.
- DagList
- The DAGs.
- DagMemory
List - Each task’s p95 peak memory over its recent attempts against its limit (decision 467): the DAG page’s table.
- DagView
- A DAG.
- Deployment
View - The deployment this webserver serves, as nodes (decisions 121-123): its own, its masters (leader and standbys) and its workers, each with its effective configuration, masked by the node itself before it left its process (no secret in clear).
- Error
Body - An error.
- Event
List - A trigger’s events.
- Event
View - An event a trigger found.
- Held
View - Why a DAG is held: its file’s import error. The error is the file’s, so every DAG of the file is held (decision 72.3).
- Import
Error List - The import errors of each DAG root’s current code.
- Import
Error View - A file of a DAG root’s current code that failed to import (decision 66).
- Instance
Query - Which instance of a mapped task (decisions 81, 82).
- Limit
View - A concurrency limit and how many of what it limits run now: open attempts (assigned, not yet started, running, cleaning up), as the master counts them.
- Location
View - Where a DAG is defined.
- LogChunk
- A part of an attempt’s log, read from the worker that ran it.
- LogQuery
- Which part of a log to read.
- Master
View - A master, leading or standing by.
- Memory
Point View - A bucket’s total memory.
- Memory
Totals - Every process’s memory together over a range (decision 462’s sparkline).
- Named
Event List - Posted events.
- Named
Event View - An event posted through the API.
- Node
Usage View - A schedr process’s memory and CPU, and its container’s (decision 463).
- Node
View - A process of the deployment.
- Output
View - A task’s stored output in a run.
- Param
Field View - One field of a DAG’s run parameters, as a form shows it.
- Parts
Point View - A worker’s memory by part in a bucket, on average.
- Pause
Request - Pausing a DAG.
- Post
Event Request - An event to post (
POST /api/v1/events, decision 354). - Problem
View - A problem a node has now (decision 129): shown on its node, yellow for a warning, red for an error.
- Process
Samples View - A process’s points over a range.
- Resource
List - A run’s resources.
- Resource
View - A resource of a run: its setup, its cleanup and its users.
- Root
Connections - One root’s connections.
- RunBackfill
View - A backfill run’s backfill and its place among the backfill’s runs, oldest first.
- RunDetail
- A run with its tasks.
- RunList
- Runs.
- RunView
- A run.
- Runs
Query - Which runs to list.
- Sample
Point View - A bucket of a process’s samples: averages and peaks.
- Sample
Series List - Samples of each process over a range (decisions 464, 465), in buckets: the Metrics page’s charts.
- Sensor
List - The wait steps switched off.
- Sensor
View - A wait step switched off for getting its host killed too many times in a row (decision 338).
- Task
Flow List - The attempts of a range in buckets (decision 494): how many ended, by how, and how long those started took from their assignment.
- Task
Flow View - One bucket’s attempts.
- Task
Memory View - A running task’s memory, named.
- Task
Peak View - A task’s peaks.
- Task
View - A task of a run.
- Test
Connection Request - A connection to test on a worker (
schedr connections test). - Trigger
List - The triggers.
- Trigger
Request - A manual run to start.
- Trigger
View - A DAG’s trigger.
- Usage
View - What an attempt’s process used.
- Warning
View - Something wrong with a worker.
- Watcher
Host View - A process running a worker’s wait steps, or a code set whose hosts were lost.
- Worker
List - The workers.
- Worker
Memory View - A worker’s memory, as it last said (at most a minute old while it heartbeats).
- Worker
Node View - A worker as a node of the deployment.
- Worker
Parts View - A worker’s memory by part and its largest tasks.
- Worker
Usage View - A worker’s memory by part (decision 463), as it last said (written at most once a minute).
- Worker
View - A worker in the registry (kept after it is gone, so its logs can be found).
Enums§
- Param
Kind - How a parameter is entered.
- Trigger
State - A DAG’s trigger’s switch (decision 459).