Revision aed0c054
- Amélioration des menus de choix dans VigiGraph * Présentation légèrement différente de la barre d'outils
git-svn-id: https://vigilo-dev.si.c-s.fr/svn@5628 b22e2e97-25c9-44ff-b637-2e5ceca36478
vigigraph/controllers/rpc.py | ||
---|---|---|
31 | 31 |
from vigilo.models.tables import PerfDataSource |
32 | 32 |
from vigilo.models.tables import Graph, GraphGroup |
33 | 33 |
from vigilo.models.tables.grouphierarchy import GroupHierarchy |
34 |
from vigilo.models.tables import Change |
|
34 | 35 |
|
35 | 36 |
from vigilo.models.tables.secondary_tables import SUPITEM_GROUP_TABLE |
36 | 37 |
from vigilo.models.tables.secondary_tables import GRAPH_GROUP_TABLE |
... | ... | |
724 | 725 |
).filter(Host.name == host |
725 | 726 |
).all() |
726 | 727 |
return indicators |
728 |
|
|
729 |
@expose('json') |
|
730 |
def dbmtime(self): |
|
731 |
change = Change.by_table_name(u"Graph") |
|
732 |
if change is None: |
|
733 |
return {"mtime": None} |
|
734 |
mtime = change.last_modified.replace(microsecond=0) |
|
735 |
return {"mtime": mtime} |
|
736 |
|
Also available in: Unified diff