Updated Time Conditions (autotransform.step.condition.updated)
The implementation for all conditions handling when a Change was updated.
- class autotransform.step.condition.updated.UpdatedAgoCondition(*, comparison: ComparisonType, value: int | List[int])
Bases:
SortableComparisonCondition[int]A condition which checks how long ago a Change was updated against the supplied time, all in seconds, using the supplied comparison.
- comparison
The type of comparison to perform.
- Type:
- value
The number of seconds to compare against.
- Type:
Union[int, List[int]]
- name
The name of the Component.
- Type:
ClassVar[ConditionName]
- comparison: ComparisonType
- get_val_from_change(change: Change) int
Gets how long ago the Change was updated.
- Parameters:
change (Change) – The Change the Condition is checking.
- Returns:
How long ago the Change was updated.
- Return type:
int
- model_config: ClassVar[ConfigDict] = {}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- name: ClassVar[ConditionName] = 'updated_ago'
- value: int | List[int]