Tool Life Record
- class pytm4srv.models.tool.life_history.ToolLifeRecord
Represents one time a tool’s life was changed.
- day_life: [int]
The new number of days this tool is expected to last between replacements.
Only meaningful when usage_mode is 2.
- id
Unique, numeric ID for this tool life record in OnTakt.
- max_runtime: [timedelta]
The new expected runtime (in seconds) between replacements.
Only meaningful when usage_mode is 1.
- notes: [str]
Notes supplied by the user at the time of the change.
- part_life: [int]
The new expected number of parts between replacements.
Only meaningful when usage_mode is 0.
- process_id: [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: [datetime]
When the tool life was changed.
- tool_id: [int]
The ID of the tool whose life was changed.
- usage_mode: [int]
The tool’s usage mode. See
Tool.usage_mode
for values.
- user_id: [int]
ID of the user who made the change.