models.task_event module¶
-
class
models.task_event.
TaskEvent
(event_message=None, percent_finished=None, remaining_work_count=None, timestamp_seconds=None)[source]¶ Bases:
object
Implementation of the ‘TaskEvent’ model.
Specifies events that clients can attach to a task.
- Attributes:
- event_message (string): Specifies the message associated with an
event.
- percent_finished (float): Specifies the completion percentage of the
task attached to this event.
- remaining_work_count (long|int): Specifies the amount of work
remaining for the task attached to this event.
- timestamp_seconds (long|int): Specifies the Unix timestamp that the
event occurred.
-
classmethod
from_dictionary
(dictionary)[source]¶ Creates an instance of this model from a dictionary
- Args:
dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.
- Returns:
object: An instance of this structure class.