summaryrefslogtreecommitdiff
path: root/cpp/bindings/qmf2/examples/python
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/bindings/qmf2/examples/python')
-rw-r--r--cpp/bindings/qmf2/examples/python/find_agents.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cpp/bindings/qmf2/examples/python/find_agents.py b/cpp/bindings/qmf2/examples/python/find_agents.py
index 15cc83649c..5fd71b3f1c 100644
--- a/cpp/bindings/qmf2/examples/python/find_agents.py
+++ b/cpp/bindings/qmf2/examples/python/find_agents.py
@@ -37,6 +37,9 @@ class FindAgents(qmf2.ConsoleHandler):
def agentSchemaUpdated(self, agent):
print "Agent Schema Updated: %r" % agent
+ def eventRaised(self, agent, data, timestamp, severity):
+ print "Event: data=%r time=%d sev=%d" % (data.getProperties(), timestamp, severity)
+
url = "localhost"