@@ -22,55 +22,95 @@ import (
2222var (
2323 Event SNotifyEvent
2424
25- ActionCreate SAction = "create"
26- ActionDelete SAction = "delete"
27- ActionPendingDelete SAction = "pending_delete"
28- ActionUpdate SAction = "update"
29- ActionRebuildRoot SAction = "rebuild_root"
30- ActionResetPassword SAction = "reset_password"
31- ActionChangeConfig SAction = "change_config"
32- ActionResize SAction = "resize"
25+ // 创建
26+ ActionCreate SAction = "create"
27+ // 删除
28+ ActionDelete SAction = "delete"
29+ // 放入回收站
30+ ActionPendingDelete SAction = "pending_delete"
31+ // 更新
32+ ActionUpdate SAction = "update"
33+ // 重装系统
34+ ActionRebuildRoot SAction = "rebuild_root"
35+ // 重置密码
36+ ActionResetPassword SAction = "reset_password"
37+ // 配置变更
38+ ActionChangeConfig SAction = "change_config"
39+ // 扩容
40+ ActionResize SAction = "resize"
41+ // 到期释放
3342 ActionExpiredRelease SAction = "expired_release"
34- ActionExecute SAction = "execute"
35- ActionChangeIpaddr SAction = "change_ipaddr"
36- ActionSyncStatus SAction = "sync_status"
37- ActionCleanData SAction = "clean_data"
38- ActionMigrate SAction = "migrate"
39-
43+ // 执行,例如自动快照策略执行创建快照、弹性伸缩策略执行扩容、定时任务执行等
44+ ActionExecute SAction = "execute"
45+ // IP变更
46+ ActionChangeIpaddr SAction = "change_ipaddr"
47+ // 同步状态
48+ ActionSyncStatus SAction = "sync_status"
49+ // 清理数据
50+ ActionCleanData SAction = "clean_data"
51+ // 迁移
52+ ActionMigrate SAction = "migrate"
53+
54+ // 添加备份服务器
4055 ActionCreateBackupServer SAction = "add_backup_server"
41- ActionDelBackupServer SAction = "delete_backup_server"
42-
43- ActionSyncCreate SAction = "sync_create"
44- ActionSyncUpdate SAction = "sync_update"
45- ActionSyncDelete SAction = "sync_delete"
56+ // 删除备份服务器
57+ ActionDelBackupServer SAction = "delete_backup_server"
58+
59+ // 同步新建
60+ ActionSyncCreate SAction = "sync_create"
61+ // 同步更新
62+ ActionSyncUpdate SAction = "sync_update"
63+ // 同步删除
64+ ActionSyncDelete SAction = "sync_delete"
65+ // 同步账号状态
4666 ActionSyncAccountStatus SAction = "sync_account_status"
4767
48- ActionOffline SAction = "offline"
49- ActionSystemPanic SAction = "panic"
68+ // 下线
69+ ActionOffline SAction = "offline"
70+ // 系统崩溃
71+ ActionSystemPanic SAction = "panic"
72+ // 系统异常
5073 ActionSystemException SAction = "exception"
51-
52- ActionChecksumTest SAction = "checksum_test"
53-
74+ // 锁定,例如用户锁定
5475 ActionLock SAction = "lock"
55-
56- ActionExceedCount SAction = "exceed_count"
57- ActionPasswordExpireSoon SAction = "password_expire_soon"
58- ActionWorkerBlock SAction = "woker_block"
59- ActionNetOutOfSync SAction = "net_out_of_sync"
60- ActionMysqlOutOfSync SAction = "mysql_out_of_sync"
61- ActionServiceAbnormal SAction = "service_abnormal"
62- ActionServerPanicked SAction = "server_panicked"
63- ActionAttach SAction = "attach"
64- ActionDetach SAction = "detach"
76+ // 超出数量
77+ ActionExceedCount SAction = "exceed_count"
78+ // 密码即将过期
79+ ActionPasswordExpireSoon SAction = "password_expire_soon"
80+ // 一致性检查
81+ ActionChecksumTest SAction = "checksum_test"
82+ // 任务队列阻塞
83+ ActionWorkerBlock SAction = "woker_block"
84+ // 网络同步失败
85+ ActionNetOutOfSync SAction = "net_out_of_sync"
86+ // MySQL同步失败
87+ ActionMysqlOutOfSync SAction = "mysql_out_of_sync"
88+ // 服务异常
89+ ActionServiceAbnormal SAction = "service_abnormal"
90+ // 服务器崩溃
91+ ActionServerPanicked SAction = "server_panicked"
92+ // 挂载
93+ ActionAttach SAction = "attach"
94+ // 卸载
95+ ActionDetach SAction = "detach"
96+ // 透传设备创建
6597 ActionIsolatedDeviceCreate SAction = "isolated_device_create"
98+ // 透传设备更新
6699 ActionIsolatedDeviceUpdate SAction = "isolated_device_update"
100+ // 透传设备删除
67101 ActionIsolatedDeviceDelete SAction = "isolated_device_delete"
68- ActionStatusChanged SAction = "status_changed"
69- ActionStart SAction = "start"
70- ActionStop SAction = "stop"
71- ActionReset SAction = "reset"
72- ActionRestart SAction = "restart"
73- ActionRunTask SAction = "run_task"
102+ // 状态变更
103+ ActionStatusChanged SAction = "status_changed"
104+ // 启动
105+ ActionStart SAction = "start"
106+ // 停止
107+ ActionStop SAction = "stop"
108+ // 重置
109+ ActionReset SAction = "reset"
110+ // 重启
111+ ActionRestart SAction = "restart"
112+ // 运行任务
113+ ActionRunTask SAction = "run_task"
74114
75115 ResultFailed SResult = "failed"
76116 ResultSucceed SResult = "succeed"
0 commit comments