public OvhAlerting project_serviceName_alerting_POST ( String serviceName , OvhAlertingDelayEnum delay , String email , Long monthlyThreshold ) throws IOException { String qPath = "/cloud/project/{serviceName}/alerting" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "delay" , delay ) ; addBody ( o , "email" , email ) ; addBody ( o , "monthlyThreshold" , monthlyThreshold ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhAlerting . class ) ; }
Add new alert