Skip to content

Add type of Events #650

@Paritosh-Anand

Description

@Paritosh-Anand

Is it possible to make a small change to add type of event param in Event class ?

This will be possible to capture type of event from information already available in Docker event.

"{
    "status": "stop",
    "id": "ec464df2afe4953bb998871dc833277705632cc5f89234546864382f3b92a93c",
    "from": "google/cadvisor:latest node:SwarmNode1",
    "Type": "container",
    "Action": "stop",
    "Actor": {
        "ID": "ec464df2afe4953bb998871dc833277705632cc5f89234546864382f3b92a93c",
        "Attributes": {
            "com.docker.swarm.id": "557b60d0beb9d4e80274a725de18b6493a4801f3749411d60d3d10ce73155ddd",
            "image": "google/cadvisor:latest",
            "name": "cadvisor",
            "node.addr": "192.168.99.103:2376",
            "node.id": "SJX5:LOZF:CSRG:NL7Y:BXLG:77PM:3D5Z:DTI2:GXNM:L3ID:BAHQ:XFS7",
            "node.ip": "192.168.99.103",
            "node.name": "SwarmNode1"
        }
    },
    "time": 1469902776,
    "timeNano": 1469902776842048973,
    "node": {
        "Name": "SwarmNode1",
        "Id": "SJX5:LOZF:CSRG:NL7Y:BXLG:77PM:3D5Z:DTI2:GXNM:L3ID:BAHQ:XFS7",
        "Addr": "192.168.99.103:2376",
        "Ip": "192.168.99.103"
    }
}[
    \r
][
    \n
]"

As of now it is not available:

com.github.dockerjava.api.model.Event@bdb2605[status=stop,id=ec464df2afe4953bb998871dc833277705632cc5f89234546864382f3b92a93c,from=google/cadvisor:latest node:SwarmNode1,time=1469902776,node=com.github.dockerjava.api.model.Node@46c9a384]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions