model
Pydantic records for the configured_datasources cache table (v2).
Classes
ConfiguredDatasourceRecord
class ConfiguredDatasourceRecord(**data: Any):One datasource the pod has configured, or used to.
Attributes
task_hash: The datasource leaf hash, asfile_metadataandrunscarry it.pod_name: Pod the datasource belongs to.datasource_name: Name of the datasource within that pod.deconfigured_at: When the datasource stopped being in the pod config.Nonewhile it still is.last_seen_at: When the pod last took a snapshot covering this row.config_last_updated: SeeDatasourceMetadata.archived_only: SeeDatasourceMetadata.health_status: SeeDatasourceMetadata.tags: Arbitrary flat metadata.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Variables
- static
archived_only : bool | None
- static
config_last_updated : datetime.datetime | None
- static
datasource_name : str
- static
deconfigured_at : datetime.datetime | None
- static
health_status : str | None
- static
last_seen_at : datetime.datetime
- static
model_config
- static
pod_name : str
- static
tags : dict[str, typing.Any] | None
- static
task_hash : str
metadata : DatasourceMetadata- The indexing-order columns of this row.
DatasourceMetadata
class DatasourceMetadata(**data: Any):What the pod knew about a datasource when it last ordered indexing.
Every field is optional: None is "not known" (a Hub call failed, or no
health check has completed), which a reader must treat as "do not skip".
Attributes
config_last_updated: The Hub'sconfigurationLastUpdated.archived_only: Whether every project the datasource is linked to is archived.health_status: "healthy", "unknown" or "unhealthy" from the pod's last accessibility check.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Variables
- static
archived_only : bool | None
- static
config_last_updated : datetime.datetime | None
- static
health_status : str | None
- static
model_config