def notes(self, id): c.alert = model.Session.query(model.Alert).get(id) return render('/alerts/notes.mako')
def up(self): etag_cache(get_last()) c.up = get_up() return render('/alerts/up.mako')
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')
def index(self): return render('/alerts/index.mako')
def down(self): c.clock = time.strftime("%H:%M:%S") c.down = get_down() return render('/alerts/down.mako')