diff options
Diffstat (limited to 'cpp/bindings/qmf2/examples')
| -rw-r--r-- | cpp/bindings/qmf2/examples/python/find_agents.py | 3 | ||||
| -rw-r--r-- | cpp/bindings/qmf2/examples/ruby/find_agents.rb | 4 |
2 files changed, 7 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" diff --git a/cpp/bindings/qmf2/examples/ruby/find_agents.rb b/cpp/bindings/qmf2/examples/ruby/find_agents.rb index deefd5491a..712e5007be 100644 --- a/cpp/bindings/qmf2/examples/ruby/find_agents.rb +++ b/cpp/bindings/qmf2/examples/ruby/find_agents.rb @@ -41,6 +41,10 @@ class FindAgents < Qmf2::ConsoleHandler def agent_schema_updated(agent) puts "Agent with new Schemata: #{agent.to_s}" end + + def event_raised(agent, data, timestamp, severity) + puts "Event Raised time=#{timestamp} sev=#{severity} data=#{data.properties}" + end end |
