Machine States
- class pytm4srv.models.MachineStateDef
Represents a user-defined machine state.
- color: Mapped[str]
User-specified color (#RRGGBB) of the state.
- id: MappedColumn object at 0x7b55cc329c60>]]
Unique, numeric ID for the state.
- is_active: Mapped[bool]
Whether this state should be treated as an active state.
- is_feed_hold: Mapped[bool]
Whether this state should be treated as a feed hold state.
- is_optional_stop: Mapped[bool]
Whether this state should be treated as an optional stop state.
- is_utilized: Mapped[bool]
Whether this state should count towards utilization.
- machine_states: Mapped[List[str]]
Which machine-reported states should trigger this defined state.
- name: Mapped[str]
User-specified name of the state.
- class pytm4srv.models.MachineStateRecord
An execution state on a single machine for a range of time.
- end: Mapped[datetime]
The timestamp of when this state ended.
- id: Mapped[int]
Unique, numeric ID of this machine state record.
- machine_id: Mapped[int]
The ID of the machine this record belongs to.
- start: Mapped[datetime]
The timestamp of when this state started.
- state: Mapped[str]
The state string that was reported by the machine.
- state_def_id: Mapped[int]
The ID of the state definition that was found for the state reported by the machine.