Coder Social home page Coder Social logo

amp-04-create-event-stream's Introduction

Gitter chat

AMP for Endpoints Create Event Stream:

Script for creating an event stream using the /v1/event_streams endpoint documented here. This script will automatically determine which AMP clound to create the event stream on based on the credentials. It also queries the /event_types API endpoint to get a current list of ALL event_type IDs at time of creation. By default, event streams created by this script will collect all events for all groups in an organization.

Before using you must update the following:

  • client_id
  • api_key

Usage:

python create_event_stream.py

Example script output:

Sucesfully authenticated to: North America
Enter a name for the event stream you would like to create: All Groups All Events
Stream Created Sucesfully!

Stream Name:... All Groups All Events
Stream ID:..... 1474

AMQP Credentials:
User Name:..... 1474-92a4d13197b6bbeb40f0
Password:...... 0c02fc2fa59c6460833ad7e1c55c864802e9fbda
Host:.......... export-streaming.amp.cisco.com
Port:.......... 443
Queue Name:.... event_stream_1474

amqps://1474-92a4d13197b6bbeb40f0:0c02fc2fa59c6460833ad7e1c55c864802e9fbda@export-streaming.amp.cisco.com:443

NOTE: If you are writing your own client make sure to set the 'passive' and 'durable' bits True

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.