public OvhOperation serviceName_output_graylog_stream_streamId_alert_POST ( String serviceName , String streamId , Long backlog , OvhStreamAlertConditionConditionTypeEnum conditionType , OvhStreamAlertConditionConstraintTypeEnum constraintType , String field , Long grace , String queryFilter , Boolean repeatNotificationsEnabled , Long threshold , OvhStreamAlertConditionThresholdTypeEnum thresholdType , Long time , String title , String value ) throws IOException { String qPath = "/dbaas/logs/{serviceName}/output/graylog/stream/{streamId}/alert" ; StringBuilder sb = path ( qPath , serviceName , streamId ) ; HashMap < String , Object > o = new HashMap < String , Object > ( ) ; addBody ( o , "backlog" , backlog ) ; addBody ( o , "conditionType" , conditionType ) ; addBody ( o , "constraintType" , constraintType ) ; addBody ( o , "field" , field ) ; addBody ( o , "grace" , grace ) ; addBody ( o , "queryFilter" , queryFilter ) ; addBody ( o , "repeatNotificationsEnabled" , repeatNotificationsEnabled ) ; addBody ( o , "threshold" , threshold ) ; addBody ( o , "thresholdType" , thresholdType ) ; addBody ( o , "time" , time ) ; addBody ( o , "title" , title ) ; addBody ( o , "value" , value ) ; String resp = exec ( qPath , "POST" , sb . toString ( ) , o ) ; return convertTo ( resp , OvhOperation . class ) ; }
Register a new alert on specified graylog stream