public Optional < Script > updateScript ( String monitorId , Script script ) { HTTP . PUT ( String . format ( "/v3/monitors/%s/script" , monitorId ) , script ) ; return Optional . of ( script ) ; }
Updates the given monitor to add a script .