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