99package com .microsoft .azure .cognitiveservices .anomalydetector ;
1010
1111import com .microsoft .azure .AzureClient ;
12- import com .microsoft .azure .cognitiveservices .anomalydetector .models .APIErrorException ;
12+ import com .microsoft .azure .cognitiveservices .anomalydetector .models .AnomalyDetectorErrorException ;
1313import com .microsoft .azure .cognitiveservices .anomalydetector .models .ChangePointDetectRequest ;
1414import com .microsoft .azure .cognitiveservices .anomalydetector .models .ChangePointDetectResponse ;
15+ import com .microsoft .azure .cognitiveservices .anomalydetector .models .DetectRequest ;
1516import com .microsoft .azure .cognitiveservices .anomalydetector .models .EntireDetectResponse ;
1617import com .microsoft .azure .cognitiveservices .anomalydetector .models .LastDetectResponse ;
17- import com .microsoft .azure .cognitiveservices .anomalydetector .models .Request ;
1818import com .microsoft .rest .RestClient ;
1919import com .microsoft .rest .ServiceCallback ;
2020import com .microsoft .rest .ServiceFuture ;
@@ -112,11 +112,11 @@ public interface AnomalyDetectorClient {
112112 *
113113 * @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
114114 * @throws IllegalArgumentException thrown if parameters fail the validation
115- * @throws APIErrorException thrown if the request is rejected by server
115+ * @throws AnomalyDetectorErrorException thrown if the request is rejected by server
116116 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
117117 * @return the EntireDetectResponse object if successful.
118118 */
119- EntireDetectResponse entireDetect ( Request body );
119+ EntireDetectResponse detectEntireSeries ( DetectRequest body );
120120
121121 /**
122122 * Detect anomalies for the entire series in batch.
@@ -127,7 +127,7 @@ public interface AnomalyDetectorClient {
127127 * @throws IllegalArgumentException thrown if parameters fail the validation
128128 * @return the {@link ServiceFuture} object
129129 */
130- ServiceFuture <EntireDetectResponse > entireDetectAsync ( Request body , final ServiceCallback <EntireDetectResponse > serviceCallback );
130+ ServiceFuture <EntireDetectResponse > detectEntireSeriesAsync ( DetectRequest body , final ServiceCallback <EntireDetectResponse > serviceCallback );
131131
132132 /**
133133 * Detect anomalies for the entire series in batch.
@@ -137,7 +137,7 @@ public interface AnomalyDetectorClient {
137137 * @throws IllegalArgumentException thrown if parameters fail the validation
138138 * @return the observable to the EntireDetectResponse object
139139 */
140- Observable <EntireDetectResponse > entireDetectAsync ( Request body );
140+ Observable <EntireDetectResponse > detectEntireSeriesAsync ( DetectRequest body );
141141
142142 /**
143143 * Detect anomalies for the entire series in batch.
@@ -147,19 +147,19 @@ public interface AnomalyDetectorClient {
147147 * @throws IllegalArgumentException thrown if parameters fail the validation
148148 * @return the observable to the EntireDetectResponse object
149149 */
150- Observable <ServiceResponse <EntireDetectResponse >> entireDetectWithServiceResponseAsync ( Request body );
150+ Observable <ServiceResponse <EntireDetectResponse >> detectEntireSeriesWithServiceResponseAsync ( DetectRequest body );
151151
152152 /**
153153 * Detect anomaly status of the latest point in time series.
154154 * This operation generates a model using points before the latest one. With this method, only historical points are used to determine whether the target point is an anomaly. The latest point detecting operation matches the scenario of real-time monitoring of business metrics.
155155 *
156156 * @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
157157 * @throws IllegalArgumentException thrown if parameters fail the validation
158- * @throws APIErrorException thrown if the request is rejected by server
158+ * @throws AnomalyDetectorErrorException thrown if the request is rejected by server
159159 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
160160 * @return the LastDetectResponse object if successful.
161161 */
162- LastDetectResponse lastDetect ( Request body );
162+ LastDetectResponse detectLastPoint ( DetectRequest body );
163163
164164 /**
165165 * Detect anomaly status of the latest point in time series.
@@ -170,7 +170,7 @@ public interface AnomalyDetectorClient {
170170 * @throws IllegalArgumentException thrown if parameters fail the validation
171171 * @return the {@link ServiceFuture} object
172172 */
173- ServiceFuture <LastDetectResponse > lastDetectAsync ( Request body , final ServiceCallback <LastDetectResponse > serviceCallback );
173+ ServiceFuture <LastDetectResponse > detectLastPointAsync ( DetectRequest body , final ServiceCallback <LastDetectResponse > serviceCallback );
174174
175175 /**
176176 * Detect anomaly status of the latest point in time series.
@@ -180,7 +180,7 @@ public interface AnomalyDetectorClient {
180180 * @throws IllegalArgumentException thrown if parameters fail the validation
181181 * @return the observable to the LastDetectResponse object
182182 */
183- Observable <LastDetectResponse > lastDetectAsync ( Request body );
183+ Observable <LastDetectResponse > detectLastPointAsync ( DetectRequest body );
184184
185185 /**
186186 * Detect anomaly status of the latest point in time series.
@@ -190,19 +190,19 @@ public interface AnomalyDetectorClient {
190190 * @throws IllegalArgumentException thrown if parameters fail the validation
191191 * @return the observable to the LastDetectResponse object
192192 */
193- Observable <ServiceResponse <LastDetectResponse >> lastDetectWithServiceResponseAsync ( Request body );
193+ Observable <ServiceResponse <LastDetectResponse >> detectLastPointWithServiceResponseAsync ( DetectRequest body );
194194
195195 /**
196196 * Detect change point for the entire series.
197197 * Evaluate change point score of every series point.
198198 *
199199 * @param body Time series points and granularity is needed. Advanced model parameters can also be set in the request if needed.
200200 * @throws IllegalArgumentException thrown if parameters fail the validation
201- * @throws APIErrorException thrown if the request is rejected by server
201+ * @throws AnomalyDetectorErrorException thrown if the request is rejected by server
202202 * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
203203 * @return the ChangePointDetectResponse object if successful.
204204 */
205- ChangePointDetectResponse changePointDetect (ChangePointDetectRequest body );
205+ ChangePointDetectResponse detectChangePoint (ChangePointDetectRequest body );
206206
207207 /**
208208 * Detect change point for the entire series.
@@ -213,7 +213,7 @@ public interface AnomalyDetectorClient {
213213 * @throws IllegalArgumentException thrown if parameters fail the validation
214214 * @return the {@link ServiceFuture} object
215215 */
216- ServiceFuture <ChangePointDetectResponse > changePointDetectAsync (ChangePointDetectRequest body , final ServiceCallback <ChangePointDetectResponse > serviceCallback );
216+ ServiceFuture <ChangePointDetectResponse > detectChangePointAsync (ChangePointDetectRequest body , final ServiceCallback <ChangePointDetectResponse > serviceCallback );
217217
218218 /**
219219 * Detect change point for the entire series.
@@ -223,7 +223,7 @@ public interface AnomalyDetectorClient {
223223 * @throws IllegalArgumentException thrown if parameters fail the validation
224224 * @return the observable to the ChangePointDetectResponse object
225225 */
226- Observable <ChangePointDetectResponse > changePointDetectAsync (ChangePointDetectRequest body );
226+ Observable <ChangePointDetectResponse > detectChangePointAsync (ChangePointDetectRequest body );
227227
228228 /**
229229 * Detect change point for the entire series.
@@ -233,6 +233,6 @@ public interface AnomalyDetectorClient {
233233 * @throws IllegalArgumentException thrown if parameters fail the validation
234234 * @return the observable to the ChangePointDetectResponse object
235235 */
236- Observable <ServiceResponse <ChangePointDetectResponse >> changePointDetectWithServiceResponseAsync (ChangePointDetectRequest body );
236+ Observable <ServiceResponse <ChangePointDetectResponse >> detectChangePointWithServiceResponseAsync (ChangePointDetectRequest body );
237237
238238}
0 commit comments