Skip to main content

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, as file_metadata and runs carry 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. None while it still is.
  • last_seen_at: When the pod last took a snapshot covering this row.
  • config_last_updated: See DatasourceMetadata.
  • archived_only: See DatasourceMetadata.
  • health_status: See DatasourceMetadata.
  • 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 datasource_name : str
  • static health_status : str | None
  • static model_config
  • static pod_name : str
  • static task_hash : str

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's configurationLastUpdated.
  • 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 health_status : str | None
  • static model_config