APISonar


com.spotify.docker.client.messages.Event.time

> com > spotify > docker > client > messages > Event > time
com APIs spotify APIs docker APIs client APIs messages APIs Event APIs time APIs

Example 1
private void imageEventAssertions(final Event event,
                                    final String imageName,
                                    final String action) throws Exception {
    assertThat(event.time(), notNullValue());
    if (dockerApiVersionAtLeast("1.22")) {
      assertEquals(IMAGE, event.type());
      assertEquals(action, event.action());
      assertEquals(imageName, event.actor().id());

      assertNotNull(event.timeNano());
    } else {
      assertEquals(action, event.status());
      assertThat(event.id(), equalTo(imageName));
    }
  }