예제 #1
0
 def notes(self, id):
     c.alert = model.Session.query(model.Alert).get(id)
     return render('/alerts/notes.mako')
예제 #2
0
 def up(self):
     etag_cache(get_last())
     c.up = get_up()
     return render('/alerts/up.mako')
예제 #3
0
 def addr(self, id):
     addr = id
     h = model.Host.get_by_addr(addr)
     c.host = h
     c.alerts = h.alerts.all()
     return render('/alerts/addr.mako')
예제 #4
0
 def index(self):
     return render('/alerts/index.mako')
예제 #5
0
 def down(self):
     c.clock = time.strftime("%H:%M:%S")
     c.down = get_down()
     return render('/alerts/down.mako')
예제 #6
0
 def notes(self, id):
     c.alert = model.Session.query(model.Alert).get(id)
     return render('/alerts/notes.mako')
예제 #7
0
 def addr(self, id):
     addr = id
     h = model.Host.get_by_addr(addr)
     c.host = h
     c.alerts = h.alerts.all()
     return render('/alerts/addr.mako')
예제 #8
0
 def up(self):
     etag_cache(get_last())
     c.up = get_up()
     return render('/alerts/up.mako')
예제 #9
0
 def down(self):
     c.clock = time.strftime("%H:%M:%S")
     c.down = get_down()
     return render('/alerts/down.mako')
예제 #10
0
 def index(self):
     return render('/alerts/index.mako')