Models
dve.core_engine.models
¶
Models used by core_engine
Models for parametersied pipeline execution - also used by API service
AuditRecord
¶
Bases: BaseModel
Record to add to audit table
Source code in src/dve/core_engine/models.py
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | |
date_updated = None
class-attribute
instance-attribute
¶
The date the record was added to the table
submission_id
instance-attribute
¶
Unique id of the submission
time_updated = Field(default_factory=(dt.datetime.now))
class-attribute
instance-attribute
¶
The timestamp the record was added to the table
populate_date_updated(values)
¶
Add date_updated from time_updated value
Source code in src/dve/core_engine/models.py
34 35 36 37 38 | |
ConcreteDatasetSpecification
¶
Bases: DatasetSpecification
A dataset with concrete entities.
Source code in src/dve/core_engine/models.py
192 193 194 195 196 | |
datasets
instance-attribute
¶
Datasets which can be read from the input files.
ConcreteEntity
¶
Bases: EntitySpecification
An entity which has a configured reader and (possibly) a key field.
Source code in src/dve/core_engine/models.py
175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 | |
EngineRun
¶
Bases: BaseModel
The parameters needed to execute a core engine pipeline run Basic level of validation
Source code in src/dve/core_engine/models.py
148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | |
EngineRunValidation
¶
Bases: EngineRun
The parameters needed to execute a core engine pipeline run Additional validation for paths which point to valid files or directories
Source code in src/dve/core_engine/models.py
167 168 169 170 171 172 | |
ProcessingStatusRecord
¶
Bases: AuditRecord
A record detailing what phase of processing a submission is
Source code in src/dve/core_engine/models.py
137 138 139 140 141 142 143 144 145 | |
SubmissionInfo
¶
Bases: AuditRecord
Submission metadata
Source code in src/dve/core_engine/models.py
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | |
dataset_id
instance-attribute
¶
The dataset that the submission relates to.
datetime_received = None
class-attribute
instance-attribute
¶
The datetime the file was received.
file_extension
instance-attribute
¶
The extension of the file received.
file_name
instance-attribute
¶
The name of the submitted file.
file_name_with_ext
property
¶
Return file name with extension.
file_size = None
class-attribute
instance-attribute
¶
The size (in bytes) of the file received.
reporting_period_end = None
class-attribute
instance-attribute
¶
The end of the reporting period the submission relates to.
reporting_period_start = None
class-attribute
instance-attribute
¶
The start of the reporting period the submission relates to.
submission_method = None
class-attribute
instance-attribute
¶
The method that the file was submitted
submitting_org = None
class-attribute
instance-attribute
¶
The organisation who submitted the file.
from_metadata_file(submission_id, metadata_uri)
classmethod
¶
Create a submission metadata instance from DVE metadata file.
Source code in src/dve/core_engine/models.py
76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 | |
SubmissionInfoMismatchWarning
¶
Bases: UserWarning
Emitted when the submission info does not match the filename.
Source code in src/dve/core_engine/models.py
41 42 | |
SubmissionStatisticsRecord
¶
Bases: AuditRecord
Record detailing key metrics from dve processing
Source code in src/dve/core_engine/models.py
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | |
TransferRecord
¶
Bases: AuditRecord
A record detailing extracts sent following dve processing
Source code in src/dve/core_engine/models.py
124 125 126 127 128 129 130 131 132 133 134 | |
recipient = None
class-attribute
instance-attribute
¶
The recipient of the extract
report_name
instance-attribute
¶
The type of extract sent
transfer_id
instance-attribute
¶
The DPS transfer id for the extract sent
transfer_method = None
class-attribute
instance-attribute
¶
What transfer mechanism was used to send the extract