refactor: rename EZOps → AIOps globally (brand unification)
This commit is contained in:
1 parent
24fa17c2a8
commit
94dbc89b9b
21 files changed
+270
-32
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
# EZOps 后端服务
|
||||
# AIOps 后端服务
|
||||
|
||||
EZOps 是一个专业的 AIOps 智能运维平台后端服务,基于 Go + Gin 框架开发。
|
||||
AIOps 是一个专业的 AIOps 智能运维平台后端服务,基于 Go + Gin 框架开发。
|
||||
|
||||
## 功能特性
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
# EZOps 配置文件示例
|
||||
# AIOps 配置文件示例
|
||||
# 复制此文件为 config.yaml 并根据实际情况修改
|
||||
|
||||
# 应用配置
|
||||
app:
|
||||
name: "EZOps"
|
||||
name: "AIOps"
|
||||
version: "1.0.0"
|
||||
port: 8080
|
||||
mode: "debug" # debug, release, test
|
||||
|
||||
@@ -39,7 +39,7 @@ services:
|
||||
timeout: 5s
|
||||
retries: 5
|
||||
|
||||
# EZOps 后端服务
|
||||
# AIOps 后端服务
|
||||
backend:
|
||||
build:
|
||||
context: .
|
||||
|
||||
@@ -159,7 +159,7 @@ func resolveEndpoint(provider, endpoint string) string {
|
||||
}
|
||||
|
||||
// defaultSystemPrompt AIOps 运维助手默认系统提示词 // Logan.Li
|
||||
const defaultSystemPrompt = `你是 EZOps AIOps 智能运维助手,专注于企业级运维场景。你可以:
|
||||
const defaultSystemPrompt = `你是 AIOps 智能运维助手,专注于企业级运维场景。你可以:
|
||||
1. 分析服务器、容器、K8s 集群的性能瓶颈与异常
|
||||
2. 解读告警事件并给出根因分析与处置建议
|
||||
3. 生成 Shell / Ansible / Python 运维脚本
|
||||
|
||||
@@ -236,7 +236,7 @@ func (h *WebShellHandler) Terminal(c *gin.Context) {
|
||||
}
|
||||
|
||||
// 发送欢迎消息
|
||||
welcome := "\r\n\x1b[32mEZOps WebShell\x1b[0m — 已连接 " + server.Hostname + " (" + server.IP + ")\r\n\r\n"
|
||||
welcome := "\r\n\x1b[32mAIOps WebShell\x1b[0m — 已连接 " + server.Hostname + " (" + server.IP + ")\r\n\r\n"
|
||||
conn.WriteJSON(WSMessage{
|
||||
Status: 0,
|
||||
Data: welcome,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
-- EZOps 数据库初始化脚本
|
||||
-- AIOps 数据库初始化脚本
|
||||
-- 创建数据库
|
||||
CREATE DATABASE IF NOT EXISTS ezops CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
||||
|
||||
|
||||
@@ -376,7 +376,7 @@ func generateAlertRules(db *gorm.DB) error {
|
||||
|
||||
func generateNotifyChannels(db *gorm.DB) error {
|
||||
channels := []models.NotifyChannel{
|
||||
{Name: "运维邮件通知", Type: "email", Config: `{"recipients":["ops@ezops.com","admin@ezops.com"],"subject":"[EZOps告警]"}`, Enabled: true, TestStatus: "success"},
|
||||
{Name: "运维邮件通知", Type: "email", Config: `{"recipients":["ops@ezops.com","admin@ezops.com"],"subject":"[AIOps告警]"}`, Enabled: true, TestStatus: "success"},
|
||||
{Name: "短信通知", Type: "sms", Config: `{"phones":["13800138000","13900139000"],"template":"告警:{{alert_name}}"}`, Enabled: true, TestStatus: "success"},
|
||||
{Name: "钉钉机器人", Type: "dingtalk", Config: `{"webhook":"https://oapi.dingtalk.com/robot/send?access_token=eZOps***","secret":"SEC***","at_all":false}`, Enabled: true, TestStatus: "success"},
|
||||
{Name: "企业微信机器人", Type: "wechat", Config: `{"webhook":"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=eZOps***"}`, Enabled: true, TestStatus: "success"},
|
||||
@@ -426,7 +426,7 @@ func generatePipelines(db *gorm.DB) error {
|
||||
}
|
||||
|
||||
func generateAppReleases(db *gorm.DB) error {
|
||||
apps := []string{"EZOps 前端", "EZOps 后端", "用户中心", "支付网关", "数据分析平台"}
|
||||
apps := []string{"AIOps 前端", "AIOps 后端", "用户中心", "支付网关", "数据分析平台"}
|
||||
environments := []string{"dev", "test", "staging", "prod"}
|
||||
statuses := []string{"pending", "building", "deploying", "success", "success", "success", "failed", "rolled_back"}
|
||||
authors := []string{"admin", "ops01", "dev01"}
|
||||
|
||||
Reference in new issue
Block a user