public OvhMonitoringNotification serviceName_monitoringNotifications_POST ( String serviceName , Boolean allowIncident , Long downThreshold , String email , OvhFrequencyEnum frequency , String phone , String smsAccount , OvhTypeEnum type ) throws IOException { String qPath = "/xdsl/{serviceName}/monitoringNotifications" ; StringBuilder sb = path ( qPath , serviceName ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "allowIncident" , allowIncident ) ; addBody ( o , "downThreshold" , downThreshold ) ; addBody ( o , "email" , email ) ; addBody ( o , "frequency" , frequency ) ; addBody ( o , "phone" , phone ) ; addBody ( o , "smsAccount" , smsAccount ) ; addBody ( o , "type" , type ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhMonitoringNotification . class ) ; }
Add a notification