提交 0d6f564dd9d96d6323fcae06bc9907cd5a756991
Merge branch 'master' of http://gitlab.ctune.cn/weijunh/DMapManager
正在显示
4 个修改的文件
包含
13 行增加
和
13 行删除
... | ... | @@ -19,6 +19,7 @@ from app.util.component.StructuredPrint import StructurePrint |
19 | 19 | from app.util.component.PGUtil import PGUtil |
20 | 20 | import os |
21 | 21 | from app.modules.data.io.data_entry_center import data_entry_center |
22 | +from app.modules.monitor.schedule import start_schedule | |
22 | 23 | |
23 | 24 | class JSONEncoder(_JSONEncoder): |
24 | 25 | """ |
... | ... | @@ -102,5 +103,7 @@ def create_app(): |
102 | 103 | |
103 | 104 | # 不检测https |
104 | 105 | os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' |
106 | + | |
107 | + # start_schedule() | |
105 | 108 | return app |
106 | 109 | ... | ... |
app/modules/monitor.zip
0 → 100644
不能预览此文件类型
... | ... | @@ -7,7 +7,7 @@ |
7 | 7 | from flasgger import swag_from |
8 | 8 | from flask import Blueprint |
9 | 9 | from app.util import BlueprintApi |
10 | -from . import monitor_info, monitoring, metrics, monitor_host_create, monitor_host_list, monitor_host_delete, monitor_host_edit | |
10 | +from . import monitoring, metrics, monitor_host_create, monitor_host_list, monitor_host_delete, monitor_host_edit | |
11 | 11 | |
12 | 12 | |
13 | 13 | user_socket_list = [] |
... | ... | @@ -18,14 +18,14 @@ class Monitor(BlueprintApi): |
18 | 18 | |
19 | 19 | bp = Blueprint("Monitor", __name__, url_prefix="/API/Monitor") |
20 | 20 | |
21 | - @staticmethod | |
22 | - @bp.route('/Info', methods=['GET']) | |
23 | - @swag_from(monitor_info.Api.api_doc) | |
24 | - def monitor_info(): | |
25 | - """ | |
26 | - 性能监控 | |
27 | - """ | |
28 | - return monitor_info.Api().result | |
21 | + # @staticmethod | |
22 | + # @bp.route('/Info', methods=['GET']) | |
23 | + # @swag_from(monitor_info.Api.api_doc) | |
24 | + # def monitor_info(): | |
25 | + # """ | |
26 | + # 性能监控 | |
27 | + # """ | |
28 | + # return monitor_info.Api().result | |
29 | 29 | |
30 | 30 | @staticmethod |
31 | 31 | @bp.route('/baseMonitoring', methods=['GET']) | ... | ... |
... | ... | @@ -4,11 +4,8 @@ import logging |
4 | 4 | deploy_ip_host = "172.26.40.105:8840" |
5 | 5 | # 系统数据库 |
6 | 6 | |
7 | - | |
8 | 7 | # SQLALCHEMY_DATABASE_URI = "postgresql://postgres:chinadci@172.26.60.100:5432/dmap_manager_test" |
9 | -SQLALCHEMY_DATABASE_URI = "postgresql://postgres:chinadci@172.26.60.100:5432/dmap_manager" | |
10 | -# SQLALCHEMY_DATABASE_URI = "postgresql://postgres:postgres@localhost:5433/dmap_dms_test" | |
11 | - | |
8 | +SQLALCHEMY_DATABASE_URI = "postgresql://postgres:postgres@localhost:5433/dmap_dms_test" | |
12 | 9 | |
13 | 10 | # 指定精华表所在位置(必须为空间库),设置为None则存放在各自的实体库中 |
14 | 11 | #VACUATE_DB_URI = None | ... | ... |
请
注册
或
登录
后发表评论