Event event = eventService.createEvent(EventId.ACTIVITY,
inventoryItem,
eventContext);
PingdomEntryDetails details = new PingdomEntryDetails.Builder()
.lastErrorTime(jsonInventory.containsKey("lasterrortime") ? jsonInventory.getInt("lasterrortime") : 0)
.lastResponseTime(jsonInventory.containsKey("lastresponsetime") ? jsonInventory.getInt("lastresponsetime") : 0)
.lastTestTime(jsonInventory.getInt("lasttesttime"))
.checkCreated(jsonInventory.getInt("created"))
.resolution(jsonInventory.getInt("resolution"))