1 Star 0 Fork 0

zhangjungang/beats

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
data.go 432 Bytes
Copy Edit Raw Blame History
package info
import (
"github.com/elastic/beats/libbeat/common"
dc "github.com/fsouza/go-dockerclient"
)
func eventMapping(info *dc.DockerInfo) common.MapStr {
event := common.MapStr{
"id": info.ID,
"containers": common.MapStr{
"total": info.Containers,
"running": info.ContainersRunning,
"paused": info.ContainersPaused,
"stopped": info.ContainersStopped,
},
"images": info.Images,
}
return event
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangjungang/beats.git
git@gitee.com:zhangjungang/beats.git
zhangjungang
beats
beats
v5.6.15

Search

0d507c66 1850385 C8b1a773 1850385