style: 拼写错误Menory->Memory
This commit is contained in:
@@ -48,10 +48,10 @@ type NeAlarmStateCheckCMDProcessor struct {
|
||||
|
||||
// alarmParams 告警参数
|
||||
type alarmParams struct {
|
||||
AlarmTitle string `json:"alarmTitle"` // NE State Check Alarm CPU/Menory/Disk
|
||||
AlarmTitle string `json:"alarmTitle"` // NE State Check Alarm CPU/Memory/Disk
|
||||
AlarmType string `json:"alarmType"` // EquipmentAlarm=2
|
||||
OrigSeverity string `json:"origSeverity"` // Major=2
|
||||
SpecificProblem string `json:"specificProblem"` // Alarm Cause: CPU/Menory/Disk status received from target NE reaches the threshold
|
||||
SpecificProblem string `json:"specificProblem"` // Alarm Cause: CPU/Memory/Disk status received from target NE reaches the threshold
|
||||
SpecificProblemID string `json:"specificProblemId"` // AC10100
|
||||
AddInfo string `json:"addInfo"` // 告警补充信息
|
||||
CPUUseGt int64 `json:"cpuUseGt"` // CPU使用率大于, 范围0~100*CPU核心数
|
||||
@@ -226,7 +226,7 @@ func (s NeAlarmStateCheckCMDProcessor) serverState(state map[string]any, cpuUseG
|
||||
groupID := fmt.Sprintf("%s_%s_%s", wsService.GROUP_NE_STATE, neState.NeType, neState.NeId)
|
||||
s.wsSendService.ByGroupID(groupID, neState)
|
||||
|
||||
// 检查CPU/Menory/Disk使用率
|
||||
// 检查CPU/Memory/Disk使用率
|
||||
warnMsg := []string{}
|
||||
if int64(sysCpuUsage) >= cpuUseGt {
|
||||
warnMsg = append(warnMsg, fmt.Sprintf("cpu usage %.2f%%", sysCpuUsage))
|
||||
@@ -300,9 +300,9 @@ func (s NeAlarmStateCheckCMDProcessor) alarmNew(neInfo neModel.NeInfo, v alarmPa
|
||||
OrigSeverity: v.OrigSeverity,
|
||||
PerceivedSeverity: v.OrigSeverity,
|
||||
ObjectUid: neInfo.RmUID,
|
||||
ObjectName: "NE CPU/Menory/Disk",
|
||||
ObjectName: "NE CPU/Memory/Disk",
|
||||
ObjectType: "cmd",
|
||||
LocationInfo: "NE CPU/Menory/Disk: Heartbeat",
|
||||
LocationInfo: "NE CPU/Memory/Disk: Heartbeat",
|
||||
AlarmStatus: "1", // 活动告警
|
||||
SpecificProblem: v.SpecificProblem,
|
||||
SpecificProblemId: v.SpecificProblemID,
|
||||
|
||||
Reference in New Issue
Block a user