common_dagster.monitoring.schemas
Validated row and input shapes for the common monitoring ledger.
Classes
FindingInput
Bases: _MonitoringRecord
One grouped finding supplied to record_finding_summaries.
Fields and properties declared here; inherited members belong to the bases above.
finding_count
finding_count: Positivefinding_type
finding_type: NonBlankseverity
severity: FindingSeverityFindingSummaryRecord
Bases: FindingInput
The complete persisted shape of one finding summary.
Fields and properties declared here; inherited members belong to the bases above.
finding_id
finding_id: NonBlankreceipt_id
receipt_id: NonBlank | None = Nonerecorded_at
recorded_at: datetimerun_id
run_id: NonBlankstage_id
stage_id: NonBlankRunRecord
Bases: _MonitoringRecord
The complete persisted shape of one run row.
Fields and properties declared here; inherited members belong to the bases above.
error
error: NonBlank | None = Nonefinished_at
finished_at: datetime | None = Noneflow_name
flow_name: NonBlankjob_name
job_name: NonBlankjob_type
job_type: JobTyperun_date
run_date: date | None = Nonerun_id
run_id: NonBlankstarted_at
started_at: datetimestatus
status: RunStatusStageRecord
Bases: _MonitoringRecord
The complete persisted shape of one stage-attempt row.
Fields and properties declared here; inherited members belong to the bases above.
attempt
attempt: Positivefinished_at
finished_at: datetime | None = Nonemessage
message: NonBlank | None = Nonerun_id
run_id: NonBlankstage_id
stage_id: NonBlankstage_name
stage_name: NonBlankstarted_at
started_at: datetimestatus
status: StageStatusTargetReceiptRecord
Bases: _MonitoringRecord
The complete persisted shape of one target receipt.
Fields and properties declared here; inherited members belong to the bases above.
checks_failed
checks_failed: NonNegative | None = Nonechecks_total
checks_total: NonNegative | None = Nonemessage
message: NonBlank | None = Nonereceipt_id
receipt_id: NonBlankrecorded_at
recorded_at: datetimerows_rejected
rows_rejected: NonNegative | None = Nonerows_total_after
rows_total_after: NonNegative | None = Nonerows_written
rows_written: NonNegative | None = Nonerun_id
run_id: NonBlankstage_id
stage_id: NonBlankstatus
status: TargetStatustarget_key
target_key: NonBlank | None = Nonetarget_name
target_name: NonBlanktarget_type
target_type: NonBlankTypes and values
FindingSeverity
FindingSeverity = Literal['warning', 'error']JOB_TYPES
JOB_TYPES: frozenset[str] = frozenset(get_args(JobType))JobType
JobType = Literal['update', 'build', 'maintenance', 'dbt']NonBlank
NonBlank = Annotated[str, StringConstraints(strip_whitespace=True, min_length=1)]NonNegative
NonNegative = Annotated[int, Field(strict=True, ge=0)]Positive
Positive = Annotated[int, Field(strict=True, ge=1)]RunStatus
RunStatus = Literal['running', 'success', 'failed', 'canceled']RunTerminalStatus
RunTerminalStatus = Literal['success', 'failed', 'canceled']StageStatus
StageStatus = Literal['running', 'success', 'failed', 'skipped', 'canceled']StageTerminalStatus
StageTerminalStatus = Literal['success', 'failed', 'skipped', 'canceled']TargetStatus
TargetStatus = Literal['complete', 'partial', 'failed']