提交 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,6 +19,7 @@ from app.util.component.StructuredPrint import StructurePrint | ||
| 19 | from app.util.component.PGUtil import PGUtil | 19 | from app.util.component.PGUtil import PGUtil |
| 20 | import os | 20 | import os |
| 21 | from app.modules.data.io.data_entry_center import data_entry_center | 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 | class JSONEncoder(_JSONEncoder): | 24 | class JSONEncoder(_JSONEncoder): |
| 24 | """ | 25 | """ |
| @@ -102,5 +103,7 @@ def create_app(): | @@ -102,5 +103,7 @@ def create_app(): | ||
| 102 | 103 | ||
| 103 | # 不检测https | 104 | # 不检测https |
| 104 | os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' | 105 | os.environ['OAUTHLIB_INSECURE_TRANSPORT'] = '1' |
| 106 | + | ||
| 107 | + # start_schedule() | ||
| 105 | return app | 108 | return app |
| 106 | 109 |
app/modules/monitor.zip
0 → 100644
不能预览此文件类型
| @@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
| 7 | from flasgger import swag_from | 7 | from flasgger import swag_from |
| 8 | from flask import Blueprint | 8 | from flask import Blueprint |
| 9 | from app.util import BlueprintApi | 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 | user_socket_list = [] | 13 | user_socket_list = [] |
| @@ -18,14 +18,14 @@ class Monitor(BlueprintApi): | @@ -18,14 +18,14 @@ class Monitor(BlueprintApi): | ||
| 18 | 18 | ||
| 19 | bp = Blueprint("Monitor", __name__, url_prefix="/API/Monitor") | 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 | @staticmethod | 30 | @staticmethod |
| 31 | @bp.route('/baseMonitoring', methods=['GET']) | 31 | @bp.route('/baseMonitoring', methods=['GET']) |
| @@ -4,11 +4,8 @@ import logging | @@ -4,11 +4,8 @@ import logging | ||
| 4 | deploy_ip_host = "172.26.40.105:8840" | 4 | deploy_ip_host = "172.26.40.105:8840" |
| 5 | # 系统数据库 | 5 | # 系统数据库 |
| 6 | 6 | ||
| 7 | - | ||
| 8 | # SQLALCHEMY_DATABASE_URI = "postgresql://postgres:chinadci@172.26.60.100:5432/dmap_manager_test" | 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 | # 指定精华表所在位置(必须为空间库),设置为None则存放在各自的实体库中 | 10 | # 指定精华表所在位置(必须为空间库),设置为None则存放在各自的实体库中 |
| 14 | #VACUATE_DB_URI = None | 11 | #VACUATE_DB_URI = None |
请
注册
或
登录
后发表评论