An event is a record generated during engine execution. Such an event captures what has happened inside the senlin-engine. The senlin-engine service generates event records when it is performing some actions or checking policies.
To examine the list of events:
def list_events(conn):
print("List Events:")
for events in conn.clustering.events():
print(events.to_dict())
for events in conn.clustering.events(sort='name:asc'):
print(events.to_dict())
When listing events, you can specify the sorting option using the sort
parameter and you can do pagination using the limit
and marker
parameters.
Full example: manage event
To get a event based on its name or ID:
def get_event(conn):
print("Get Event:")
event = conn.clustering.get_event(EVENT_ID)
print(event.to_dict())
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.