Skip to main content

Module views

Module views 

Source
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§

AllRunsQuery
Which runs to list, over every DAG.
AttemptList
A task’s attempts.
AttemptMemoryList
A task’s last ended attempts’ peak memory (decision 467): the task panel’s chart.
AttemptMemoryView
An ended attempt’s peak memory.
AttemptView
An attempt of a task.
BackfillList
A DAG’s backfills, newest first.
BackfillRequest
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.
BackfillRunCounts
A backfill’s runs by state.
BackfillView
A backfill (decision 403).
CheckConnectionsRequest
Connections to check on a worker (schedr connections check).
CleanupView
An attempt’s cleanup.
CommandList
The commands about a run.
CommandView
A command: an action the master applies, then marks applied or rejected.
ConnectionInfo
A connection, as its root’s current parse records it.
ConnectionList
Each DAG root’s connections, in its current code (decision 211): what the UI lists, never a value.
ConnectionUse
The tasks of one DAG declaring a connection.
CoverageView
The minutes the deployment was sampled in a bucket.
DagList
The DAGs.
DagMemoryList
Each task’s p95 peak memory over its recent attempts against its limit (decision 467): the DAG page’s table.
DagView
A DAG.
DeploymentView
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).
ErrorBody
An error.
EventList
A trigger’s events.
EventView
An event a trigger found.
HeldView
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).
ImportErrorList
The import errors of each DAG root’s current code.
ImportErrorView
A file of a DAG root’s current code that failed to import (decision 66).
InstanceQuery
Which instance of a mapped task (decisions 81, 82).
LimitView
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.
LocationView
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.
MasterView
A master, leading or standing by.
MemoryPointView
A bucket’s total memory.
MemoryTotals
Every process’s memory together over a range (decision 462’s sparkline).
NamedEventList
Posted events.
NamedEventView
An event posted through the API.
NodeUsageView
A schedr process’s memory and CPU, and its container’s (decision 463).
NodeView
A process of the deployment.
OutputView
A task’s stored output in a run.
ParamFieldView
One field of a DAG’s run parameters, as a form shows it.
PartsPointView
A worker’s memory by part in a bucket, on average.
PauseRequest
Pausing a DAG.
PostEventRequest
An event to post (POST /api/v1/events, decision 354).
ProblemView
A problem a node has now (decision 129): shown on its node, yellow for a warning, red for an error.
ProcessSamplesView
A process’s points over a range.
ResourceList
A run’s resources.
ResourceView
A resource of a run: its setup, its cleanup and its users.
RootConnections
One root’s connections.
RunBackfillView
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.
RunsQuery
Which runs to list.
SamplePointView
A bucket of a process’s samples: averages and peaks.
SampleSeriesList
Samples of each process over a range (decisions 464, 465), in buckets: the Metrics page’s charts.
SensorList
The wait steps switched off.
SensorView
A wait step switched off for getting its host killed too many times in a row (decision 338).
TaskFlowList
The attempts of a range in buckets (decision 494): how many ended, by how, and how long those started took from their assignment.
TaskFlowView
One bucket’s attempts.
TaskMemoryView
A running task’s memory, named.
TaskPeakView
A task’s peaks.
TaskView
A task of a run.
TestConnectionRequest
A connection to test on a worker (schedr connections test).
TriggerList
The triggers.
TriggerRequest
A manual run to start.
TriggerView
A DAG’s trigger.
UsageView
What an attempt’s process used.
WarningView
Something wrong with a worker.
WatcherHostView
A process running a worker’s wait steps, or a code set whose hosts were lost.
WorkerList
The workers.
WorkerMemoryView
A worker’s memory, as it last said (at most a minute old while it heartbeats).
WorkerNodeView
A worker as a node of the deployment.
WorkerPartsView
A worker’s memory by part and its largest tasks.
WorkerUsageView
A worker’s memory by part (decision 463), as it last said (written at most once a minute).
WorkerView
A worker in the registry (kept after it is gone, so its logs can be found).

Enums§

ParamKind
How a parameter is entered.
TriggerState
A DAG’s trigger’s switch (decision 459).