mirror of
https://github.com/lzh-1625/go_process_manager.git
synced 2025-10-07 00:43:33 +08:00
support push choice
This commit is contained in:
@@ -56,6 +56,7 @@ type ProcessBase struct {
|
||||
statuPush bool
|
||||
logReport bool
|
||||
cgroupEnable bool
|
||||
PushIds []int
|
||||
memoryLimit *float32
|
||||
cpuLimit *float32
|
||||
}
|
||||
@@ -240,7 +241,7 @@ func (p *ProcessBase) push(message string) {
|
||||
"{$message}": message,
|
||||
"{$status}": strconv.Itoa(int(p.State.State)),
|
||||
}
|
||||
PushService.Push(messagePlaceholders)
|
||||
PushService.Push(p.Config.PushIds, messagePlaceholders)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user