-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from alex-smile/update_system_doc_category
update system/doc-category manage
- Loading branch information
Showing
10 changed files
with
172 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
# -*- coding: utf-8 -*- | ||
""" | ||
Tencent is pleased to support the open source community by making 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available. | ||
Copyright (C) 2017-2018 THL A29 Limited, a Tencent company. All rights reserved. | ||
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at | ||
http://opensource.org/licenses/MIT | ||
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. | ||
""" # noqa | ||
from enum import Enum | ||
from django.utils.translation import ugettext_lazy as _ | ||
|
||
|
||
class SystemDocCategoryEnum(Enum): | ||
DEFAULT = u'默认分类' | ||
USER_BASE_SERVICE = u'基础用户服务' | ||
CONFIG_SERVICE = u'配置管理' | ||
HOST_MANAGEMENT = u'主机管控' | ||
MANAGEMENT_TOOLS = u'管理工具' | ||
|
||
|
||
SYSTEM_DOC_CATEGORY = [ | ||
{ | ||
'name': 'default', | ||
'label': SystemDocCategoryEnum.DEFAULT.value, | ||
'priority': 1, | ||
'systems': [], | ||
}, | ||
{ | ||
'name': 'user_base_service', | ||
'label': SystemDocCategoryEnum.USER_BASE_SERVICE.value, | ||
'priority': 10, | ||
'systems': [], | ||
}, | ||
{ | ||
'name': 'config_service', | ||
'label': SystemDocCategoryEnum.CONFIG_SERVICE.value, | ||
'priority': 20, | ||
'systems': [], | ||
}, | ||
{ | ||
'name': 'host_management', | ||
'label': SystemDocCategoryEnum.HOST_MANAGEMENT.value, | ||
'priority': 30, | ||
'systems': [], | ||
}, | ||
{ | ||
'name': 'management_tools', | ||
'label': SystemDocCategoryEnum.MANAGEMENT_TOOLS.value, | ||
'priority': 50, | ||
'systems': [], | ||
}, | ||
] | ||
|
||
|
||
BK_SYSTEMS = { | ||
'BK_LOGIN': { | ||
'name': 'BK_LOGIN', | ||
'label': _(u'蓝鲸统一登录'), | ||
'remark': _(u'蓝鲸统一登录,管理用户登录验证,及用户信息'), | ||
'doc_category': SystemDocCategoryEnum.USER_BASE_SERVICE.value, | ||
}, | ||
'BK_PAAS': { | ||
'name': 'BK_PAAS', | ||
'label': _(u'蓝鲸开发者中心'), | ||
'remark': _(u'蓝鲸开发者中心'), | ||
'doc_category': SystemDocCategoryEnum.USER_BASE_SERVICE.value, | ||
}, | ||
'CC': { | ||
'name': 'CC', | ||
'label': _(u'蓝鲸配置平台'), | ||
'remark': _(u'蓝鲸配置平台是一款面向应用的CMDB,在ITIL体系里,CMDB是构建其它流程的基石,而在蓝鲸智云体系里,配置平台就扮演着基石的角色,为应用提供了各种运维场景的配置数据服务。'), | ||
'doc_category': SystemDocCategoryEnum.CONFIG_SERVICE.value, | ||
}, | ||
'GSE': { | ||
'name': 'GSE', | ||
'label': _(u'蓝鲸管控平台'), | ||
'remark': _(u'蓝鲸管控平台'), | ||
'doc_category': SystemDocCategoryEnum.HOST_MANAGEMENT.value, | ||
}, | ||
'JOB': { | ||
'name': 'JOB', | ||
'label': _(u'蓝鲸作业平台'), | ||
'remark': _(u'作业平台(Job)是一套基于蓝鲸智云管控平台Agent管道之上的基础操作平台,具备大并发处理能力;除了支持脚本执行、文件拉取/分发、定时任务等一系列可实现的基础运维场景以外,还运用流程化的理念很好的将零碎的单个任务组装成一个作业流程;而每个任务都可做为一个原子节点,提供给其它系统和平台调度,实现调度自动化。'), # noqa | ||
'doc_category': SystemDocCategoryEnum.HOST_MANAGEMENT.value, | ||
}, | ||
'CMSI': { | ||
'name': 'CMSI', | ||
'label': _(u'蓝鲸消息管理'), | ||
'remark': _(u'蓝鲸消息管理,用于支持向用户发送多种类型的消息,包括邮件、短信、语音通知等'), | ||
'doc_category': SystemDocCategoryEnum.USER_BASE_SERVICE.value, | ||
}, | ||
'SOPS': { | ||
'name': 'SOPS', | ||
'label': _(u'标准运维'), | ||
'remark': _(u'标准运维'), | ||
'doc_category': SystemDocCategoryEnum.MANAGEMENT_TOOLS.value, | ||
}, | ||
'MONITOR': { | ||
'name': 'MONITOR', | ||
'label': _(u'蓝鲸监控'), | ||
'remark': _(u'蓝鲸监控'), | ||
'doc_category': SystemDocCategoryEnum.MANAGEMENT_TOOLS.value, | ||
}, | ||
'ESB': { | ||
'name': 'ESB', | ||
'label': _(u'API网关'), | ||
'remark': _(u'API网关'), | ||
'doc_category': SystemDocCategoryEnum.MANAGEMENT_TOOLS.value, | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.