Tool Life Record

class pytm4srv.models.tool.life_history.ToolLifeRecord

Represents one time a tool’s life was changed.

day_life: Mapped[int]

The new number of days this tool is expected to last between replacements.

Only meaningful when usage_mode is 2.

id: MappedColumn object at 0x7b55cc329c60>]]

Unique, numeric ID for this tool life record in OnTakt.

max_runtime: Mapped[timedelta]

The new expected runtime (in seconds) between replacements.

Only meaningful when usage_mode is 1.

notes: Mapped[str]

Notes supplied by the user at the time of the change.

part_life: Mapped[int]

The new expected number of parts between replacements.

Only meaningful when usage_mode is 0.

process_id: Mapped[int | None]

ID of the process this tool was in use by when this change was made.

Will be NULL if the tool was not in an assembly that was in a process or if the process has since been deleted.

timestamp: Mapped[datetime]

When the tool life was changed.

tool_id: Mapped[int]

The ID of the tool whose life was changed.

usage_mode: Mapped[int]

The tool’s usage mode. See Tool.usage_mode for values.

user_id: Mapped[int]

ID of the user who made the change.