Issues

class pytm4srv.models.Issue

A record of an ongoing issue.

additional_value: [float]

Manually-entered value for this issue to be added to the value calculated from downtime.

description: [str]

Long description of the issue or notes about it.

end: [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: [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 or equipment_id may be set for a given issue.

id

Unique ID across all issues.

machine_id: [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 or equipment_id may be set for a given issue.

maintenance_item_id: [int | None]

The ID of the maintenance item that caused this issue by being neglected, if any.

name: [str]

Short name of the issue.

priority: [int]

The priority of this issue for sorting.

Allowed values are: - 1 = low - 2 = medium (default) - 3 = high

resolution: [str]

The action taken to resolve the issue. Can be entered when ending an issue for future documentation purposes.

solve_cost: [float | None]

Currency cost spent solving this issue.

tags: [List[str]]

List of tags that have been applied to this issue.

timestamp: [datetime]

When this issue was created.

user_id: [int]

The ID of the user who entered this issue.