code: public Optional<Monitor> update(Monitor monitor)
      {
          HTTP.PUT(String.format("/v3/monitors/%s", monitor.getId()), monitor);
          return Optional.of(monitor);
      }
docs: Updates the given monitor.
  @param monitor The monitor to update
  @return The monitor that was updated