View Table Counts


In [1]:
import matplotlib.pyplot as plt
import matplotlib.animation as animation

In [2]:
import medareda_lib

In [3]:
import medareda_lib
    
def get_conn():
    return medareda_lib.get_conn()

get_conn()


Out[3]:
<connection object at 0x107b8a2b0; dsn: 'host='95.138.170.160' dbname='mrdb' user='postgres' password=xxxxxxxx', closed: 0>

get waiting queues


In [ ]:
def getW1():
    return 1

def getW2():
    return 2

get error queues


In [4]:
def getE1():
    return 1

get processed


In [9]:
def getP1():
    return 1

def getP2():
    return 2

def getP3():
    return 1

In [5]:
fig1 = plt.figure(figsize=(11,4) )
fig1.suptitle('MedaReda table monitoring')


Out[5]:
<matplotlib.text.Text at 0x107fc3110>

In [11]:
def animate1(i):
    pass

    
ani1 = animation.FuncAnimation(fig1,animate1, interval=2000)
plt.show()

In [ ]:


In [ ]: