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
@@ -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