Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
amp_api.py
amp_api.pyc
amp_event_stream.py
debug.log
example_queue.rb
parameters.json

README.md

Summary

This tool starts an AMQP event stream using the AMP4e API and prints event data live to a screen

Files

parameters.json
amp_api.py
amp_event_stream.py

Dependencies

import requests
import json
import pika

Usage Enter the api credentials for your amp for endpoints account and the group for which you would like to start a stream in the parameters.json file

{
	"debug" : true,
	"client_id": "",
	"api_key" : "",
	"endpoint" : "",
	"group_name" : "",
	"event_type" : "",
	"event_ids" : [],
	"id_or_name" : ""
}

An example of the parameters.json file is below

{
	"debug" : true,
	"client_id": "2cee1c2632a2e9d63f53",
	"api_key" : "beff74fee-7b9b-4f4b-887b-1db8af937ceb",
	"endpoint" : "api.amp.cisco.com",
	"group_name" : "",
	"event_type" : "",
	"event_ids" : [553648130, 554696714, 554696715],
	"id_or_name" : "id"
}

To execute the script from the OS shell run either:

./amp_event_stream.py or python amp_event_stream.py

You can’t perform that action at this time.