StateOccurrence

class StateOccurrence(state_name, host_timestamp, end_timestamp)[source]

Bases: BaseMessage

Store timestamps for a specific state occurrence of the state machine

Variables:
  • name (str) – name of the state

  • timestamps (list(StateDuration)) – a list of timestamps (start and end)

that corresponds to occurrences of this state

__init__(state_name, host_timestamp, end_timestamp)[source]
Parameters:

name (str) – name of the state

Methods

__init__(state_name, host_timestamp, ...)

check_type(typestr)

Returns True if the typestr represents the class

fromlist(row)

Returns True if the typestr represents the class

tolist()

Attributes

MESSAGE_COLOR

MESSAGE_TYPE_ALIAS

show_name

state_name

classmethod check_type(typestr)

Returns True if the typestr represents the class

classmethod fromlist(row)[source]

Returns True if the typestr represents the class