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