|
|
@@ -1003,20 +1003,21 @@ func (c *Container) BuildActiveApps(runtimeApps map[uint32]AppStatusInfo, pid ui
|
|
|
}
|
|
|
klog.WithField("pid", pid).WithField("appname", c.AppInfo.AppName).Infof("[BuildActiveApps] container %s is running.", c.AppInfo.AppName)
|
|
|
detail := AppStatusInfo{
|
|
|
- Pid: pid,
|
|
|
- ProcName: c.containerName,
|
|
|
- AppName: c.AppInfo.AppName,
|
|
|
- Language: c.AppInfo.CodeType.String(),
|
|
|
- AppID: c.AppInfo.AppIdHash.IntVal,
|
|
|
- AgentID: c.AppInfo.AgentId,
|
|
|
- InstanceID: c.AppInfo.InstanceIdHash.IntVal,
|
|
|
- Sn: c.AppInfo.Sn,
|
|
|
- Sport: c.AppInfo.Sport,
|
|
|
- RegisterAt: time.Unix(c.AppInfo.RegisterAt, 0).Format("060102 15:04:05"),
|
|
|
- PreStatus: c.AppInfo.PreStatus,
|
|
|
- Status: c.AppInfo.Status,
|
|
|
- Rule: c.WhiteSettingInfo.Filters,
|
|
|
- Container: string(c.id),
|
|
|
+ Pid: pid,
|
|
|
+ ProcName: c.containerName,
|
|
|
+ AppName: c.AppInfo.AppName,
|
|
|
+ Language: c.AppInfo.CodeType.String(),
|
|
|
+ LanguageVersion: c.AppInfo.Version,
|
|
|
+ AppID: c.AppInfo.AppIdHash.IntVal,
|
|
|
+ AgentID: c.AppInfo.AgentId,
|
|
|
+ InstanceID: c.AppInfo.InstanceIdHash.IntVal,
|
|
|
+ Sn: c.AppInfo.Sn,
|
|
|
+ Sport: c.AppInfo.Sport,
|
|
|
+ RegisterAt: time.Unix(c.AppInfo.RegisterAt, 0).Format("060102 15:04:05"),
|
|
|
+ PreStatus: c.AppInfo.PreStatus,
|
|
|
+ Status: c.AppInfo.Status,
|
|
|
+ Rule: c.WhiteSettingInfo.Filters,
|
|
|
+ Container: string(c.id),
|
|
|
}
|
|
|
detail.Rule = fmt.Sprintf("%s|%d", c.WhiteSettingInfo.Filters, c.WhiteSettingInfo.WhiteStackSettingInfo.OpenStack)
|
|
|
if c.AppInfo.UpdateAt != 0 {
|