You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Custom external events can be posted directly to Observer for monitoring. The following is an example using python and the AMQP python client to create a method that will post a flag for external events to Observer:

#!/usr/bin/env python

import pika
credentials = pika.PlainCredentials('username','password')
connection = pika.BlockingConnection(pika.ConnectionParameters('instance-amqp.perspectium.net',5672,'/',credentials))
channel = connection.channel()
channel.queue_declare()
channel.basic_publish(exchange='',routing_key='psp.in.servicenow',body='{ topic:"monitor", type:"statsx", key:"demo005", name:"transaction_sec", value: "1423"}')
connection.close()



Similar topics


There is no content with the specified labels




Contact Perspectium Support


US: 1 888 620 8880

UK: 44 208 068 5953

support@perspectium.com