public OvhServiceMonitoring serviceName_serviceMonitoring_POST ( String serviceName , String challengeText , Boolean enabled , OvhMonitoringIntervalEnum interval , String ip , Long port , OvhMonitoringProtocolEnum protocol , String url ) throws IOException { String qPath = "/dedicated/server/{serviceName}/serviceMonitoring" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "challengeText" , challengeText ) ; addBody ( o , "enabled" , enabled ) ; addBody ( o , "interval" , interval ) ; addBody ( o , "ip" , ip ) ; addBody ( o , "port" , port ) ; addBody ( o , "protocol" , protocol ) ; addBody ( o , "url" , url ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhServiceMonitoring . class ) ; }
Add a new service monitoring