Class DockerClient.EventsParam

java.lang.Object
com.spotify.docker.client.DockerClient.Param
com.spotify.docker.client.DockerClient.EventsParam
Direct Known Subclasses:
DockerClient.EventsFilterParam
Enclosing interface:
DockerClient

public static class DockerClient.EventsParam extends DockerClient.Param
  • Constructor Details

    • EventsParam

      private EventsParam(String name, String value)
  • Method Details

    • until

      public static DockerClient.EventsParam until(Long until)
      Filter events until the given timestamp
      Parameters:
      until - Return events up until this Unix timestamp.
      Returns:
      DockerClient.EventsParam
      Since:
      API 1.18
    • since

      public static DockerClient.EventsParam since(Long since)
      Filter events since the given timestamp
      Parameters:
      since - Return events since this Unix timestamp.
      Returns:
      DockerClient.EventsParam
      Since:
      API 1.18
    • filter

      private static DockerClient.EventsParam filter(String name, String value)
      Apply filters to the returned events.
      Parameters:
      name - Name
      value - Value
      Returns:
      DockerClient.EventsParam
      Since:
      API 1.18
    • event

      public static DockerClient.EventsParam event(String event)
      Show only certain events. For example, "event=pull" for image pull events.
      Parameters:
      event - Type of event to show
      Returns:
      EventsParam
      Since:
      API 1.18
    • image

      public static DockerClient.EventsParam image(String image)
      Show events for an image.
      Parameters:
      image - An image tag or id
      Returns:
      EventsParam
      Since:
      API 1.18
    • container

      public static DockerClient.EventsParam container(String container)
      Show events for a container.
      Parameters:
      container - A container name or id
      Returns:
      EventsParam
      Since:
      API 1.18
    • volume

      public static DockerClient.EventsParam volume(String volume)
      Show events for a volume.
      Parameters:
      volume - A volume name or id
      Returns:
      EventsParam
      Since:
      API 1.22
    • network

      public static DockerClient.EventsParam network(String network)
      Show events for a network.
      Parameters:
      network - A network name or id
      Returns:
      EventsParam
      Since:
      API 1.22
    • daemon

      public static DockerClient.EventsParam daemon(String daemon)
      Show events for a daemon.
      Parameters:
      daemon - A daemon name or id
      Returns:
      EventsParam
      Since:
      API 1.24
    • type

      @Deprecated public static DockerClient.EventsParam type(String type)
      Deprecated.
      Show events of a given type. For instance, "type=image" for all image events.
      Parameters:
      type - A type of event. Possible values: container, image, volume, network, or daemon
      Returns:
      EventsParam
      Since:
      API 1.22
    • type

      public static DockerClient.EventsParam type(Event.Type type)
      Show events of a given type. For instance, "type=image" for all image events.
      Parameters:
      type - A type of event. Possible values: container, image, volume, network, or daemon
      Returns:
      EventsParam
      Since:
      API 1.22
    • label

      public static DockerClient.EventsParam label(String label, String value)
      Show events with a label value.
      Parameters:
      label - The label to filter on
      value - The value of the label
      Returns:
      EventsParam
      Since:
      API 1.21
    • label

      public static DockerClient.EventsParam label(String label)
      Show events with a label value.
      Parameters:
      label - The label to filter on
      Returns:
      EventsParam
      Since:
      API 1.21
    • plugin

      public static DockerClient.EventsParam plugin(String plugin)
      Show events for a plugin.
      Parameters:
      plugin - A plugin name or id
      Returns:
      EventsParam
      Since:
      API 1.30
    • scope

      public static DockerClient.EventsParam scope(String scope)
      Show events for a scope: "local" or "swarm"
      Parameters:
      scope - "local" or "swarm"
      Returns:
      EventsParam
      Since:
      API 1.30