cloudendure.events
Define the CloudEndure events.
EventHandler
EventHandler(self, events: 'List[Any]' = None) -> 'None'
Define the handling of CloudEndure Event objects.
add_event
EventHandler.add_event(self, event_type: 'Tuple[str, str]', machine_name, **kwargs) -> 'bool'
Add an event.
Event
Event(self, event_type, machine_name: 'str' = 'NA', **kwargs) -> 'None'
Define the structure of a CloudEndure Event.
Usage: from cloudendure.event import Event some_event = Event(Event.EVENT_EXPIRED, somevar="some")
ERRORRED_EVENT_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
EVENT_ALREADY_LAUNCHED
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
EVENT_EXPIRED
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
EVENT_FAILED
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
EVENT_IGNORED
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
EVENT_IN_PROGRESS
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
EVENT_STRUCTURE
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2)
EVENT_SUCCESSFULLY_LAUNCHED
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable's items.
If the argument is a tuple, the return value is the same object.
EVENT_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
SUCCESSFUL_EVENT_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
WARNED_EVENT_TYPES
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.