Skip to main content

model

Pydantic record for the ga_calculation cache table (v1).

Classes

GACalculationRecord

class GACalculationRecord(**data: Any):

Record of a single row from the ga_calculation table.

metrics_json holds the flattened GA (with-fovea) metrics for a successful calculation and is None when the metric could not be computed for the file. error carries the missing_data:* / calculation_error:* reason string for files the calculation skipped or failed.

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 error : str | None
  • static file_id : str
  • static metrics_json : dict[str, typing.Any] | None
  • static model_config
  • static project_id : str | None
  • static run_id : str | None
  • static task_hash : str