Skip to main content

model

Pydantic record for the gcc_calculation cache table (v1).

Classes

GCCCalculationRecord

class GCCCalculationRecord(**data: Any):

Record of a single row from the gcc_calculation table.

metrics_json holds the GCC metrics for a successfully computed file and is None when the file could not be computed; in that case error carries the reason (a missing_data:<fields> or calculation_error:<detail> string). The two are mutually exclusive: a file is either a full result or a reason, never a partial object.

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