Issues
- class pytm4srv.models.Issue
A record of an ongoing issue.
- additional_value: Mapped[float]
Manually-entered value for this issue to be added to the value calculated from downtime.
- description: Mapped[str]
Long description of the issue or notes about it.
- end: Mapped[datetime | None]
When the issue ended, or
NULL
if the issue is still happening.The
timestamp
field is used for the start timestamp.
- equipment_id: Mapped[int | None]
The ID of the equipment this issue is for.
Set to
NULL
for issues that apply to a machine or the shop as a whole instead of a particular piece of equipment.Only one of
machine_id
orequipment_id
may be set for a given issue.
- id: MappedColumn object at 0x7b55cc329c60>]]
Unique ID across all issues.
- machine_id: Mapped[int | None]
The ID of the machine this issue is for.
Set to
NULL
for issues that apply to the shop as a whole instead of a particular machine.Only one of
machine_id
orequipment_id
may be set for a given issue.
- maintenance_item_id: Mapped[int | None]
The ID of the maintenance item that caused this issue by being neglected, if any.
- name: Mapped[str]
Short name of the issue.
- priority: Mapped[int]
The priority of this issue for sorting.
Allowed values are: -
1
= low -2
= medium (default) -3
= high
- resolution: Mapped[str]
The action taken to resolve the issue. Can be entered when ending an issue for future documentation purposes.
- solve_cost: Mapped[float | None]
Currency cost spent solving this issue.
- tags: Mapped[List[str]]
List of tags that have been applied to this issue.
- timestamp: Mapped[datetime]
When this issue was created.
- user_id: Mapped[int]
The ID of the user who entered this issue.