Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
115 changes: 115 additions & 0 deletions cognitiveservices/data-plane/anomalydetector/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
<!--
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-</artifactId>
<version>1.7.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for </name>
<description>This package contains Microsoft SDK.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>
<licenses>
<license>
<name>The MIT License (MIT)</name>
<url>http://opensource.org/licenses/MIT</url>
<distribution>repo</distribution>
</license>
</licenses>
<scm>
<url>scm:git:https://github.com/Azure/azure-sdk-for-java</url>
<connection>scm:git:git@github.com:Azure/azure-sdk-for-java.git</connection>
<tag>HEAD</tag>
</scm>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<legal><![CDATA[[INFO] Any downloads listed may be third party software. Microsoft grants you no rights for third party software.]]></legal>
</properties>
<developers>
<developer>
<id>microsoft</id>
<name>Microsoft</name>
</developer>
</developers>
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-runtime</artifactId>
<version>1.5.3</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-client-authentication</artifactId>
<version>1.5.3</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
</manifest>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<annotationProcessors>
<annotationProcessor>
com.microsoft.azure.management.apigeneration.LangDefinitionProcessor
</annotationProcessor>
</annotationProcessors>
<debug>true</debug>
<optimize>true</optimize>
<compilerArguments>
<AaddGeneratedAnnotation>true</AaddGeneratedAnnotation>
<Adebug>true</Adebug>
</compilerArguments>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<configuration>
<excludePackageNames>*.implementation.*;*.utils.*;com.microsoft.schemas._2003._10.serialization;*.blob.core.search</excludePackageNames>
<bottom>
<![CDATA[<code>
/**
<br />* Copyright (c) Microsoft Corporation. All rights reserved.
<br />* Licensed under the MIT License. See License.txt in the project root for
<br />* license information.
<br />*/
</code>]]>
</bottom>
</configuration>
</plugin>
</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,238 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.cognitiveservices.anomalydetector;

import com.microsoft.azure.AzureClient;
import com.microsoft.azure.cognitiveservices.anomalydetector.models.AnomalyDetectorErrorException;
import com.microsoft.azure.cognitiveservices.anomalydetector.models.ChangePointDetectRequest;
import com.microsoft.azure.cognitiveservices.anomalydetector.models.ChangePointDetectResponse;
import com.microsoft.azure.cognitiveservices.anomalydetector.models.DetectRequest;
import com.microsoft.azure.cognitiveservices.anomalydetector.models.EntireDetectResponse;
import com.microsoft.azure.cognitiveservices.anomalydetector.models.LastDetectResponse;
import com.microsoft.rest.RestClient;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.ServiceResponse;
import java.io.IOException;
import rx.Observable;

/**
* The interface for AnomalyDetectorClient class.
*/
public interface AnomalyDetectorClient {
/**
* Gets the REST client.
*
* @return the {@link RestClient} object.
*/
RestClient restClient();

/**
* Gets the {@link AzureClient} used for long running operations.
* @return the azure client;
*/
AzureClient getAzureClient();

/**
* Gets the User-Agent header for the client.
*
* @return the user agent string.
*/
String userAgent();

/**
* Gets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com)..
*
* @return the endpoint value.
*/
String endpoint();

/**
* Sets Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus2.api.cognitive.microsoft.com)..
*
* @param endpoint the endpoint value.
* @return the service client itself
*/
AnomalyDetectorClient withEndpoint(String endpoint);

/**
* Gets The preferred language for the response..
*
* @return the acceptLanguage value.
*/
String acceptLanguage();

/**
* Sets The preferred language for the response..
*
* @param acceptLanguage the acceptLanguage value.
* @return the service client itself
*/
AnomalyDetectorClient withAcceptLanguage(String acceptLanguage);

/**
* Gets The retry timeout in seconds for Long Running Operations. Default value is 30..
*
* @return the longRunningOperationRetryTimeout value.
*/
int longRunningOperationRetryTimeout();

/**
* Sets The retry timeout in seconds for Long Running Operations. Default value is 30..
*
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value.
* @return the service client itself
*/
AnomalyDetectorClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout);

/**
* Gets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..
*
* @return the generateClientRequestId value.
*/
boolean generateClientRequestId();

/**
* Sets Whether a unique x-ms-client-request-id should be generated. When set to true a unique x-ms-client-request-id value is generated and included in each request. Default is true..
*
* @param generateClientRequestId the generateClientRequestId value.
* @return the service client itself
*/
AnomalyDetectorClient withGenerateClientRequestId(boolean generateClientRequestId);

/**
* Detect anomalies for the entire series in batch.
* This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.
*
* @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws AnomalyDetectorErrorException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the EntireDetectResponse object if successful.
*/
EntireDetectResponse detectEntireSeries(DetectRequest body);

/**
* Detect anomalies for the entire series in batch.
* This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.
*
* @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<EntireDetectResponse> detectEntireSeriesAsync(DetectRequest body, final ServiceCallback<EntireDetectResponse> serviceCallback);

/**
* Detect anomalies for the entire series in batch.
* This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.
*
* @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EntireDetectResponse object
*/
Observable<EntireDetectResponse> detectEntireSeriesAsync(DetectRequest body);

/**
* Detect anomalies for the entire series in batch.
* This operation generates a model using an entire series, each point is detected with the same model. With this method, points before and after a certain point are used to determine whether it is an anomaly. The entire detection can give user an overall status of the time series.
*
* @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the EntireDetectResponse object
*/
Observable<ServiceResponse<EntireDetectResponse>> detectEntireSeriesWithServiceResponseAsync(DetectRequest body);

/**
* Detect anomaly status of the latest point in time series.
* 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.
*
* @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws AnomalyDetectorErrorException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the LastDetectResponse object if successful.
*/
LastDetectResponse detectLastPoint(DetectRequest body);

/**
* Detect anomaly status of the latest point in time series.
* 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.
*
* @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<LastDetectResponse> detectLastPointAsync(DetectRequest body, final ServiceCallback<LastDetectResponse> serviceCallback);

/**
* Detect anomaly status of the latest point in time series.
* 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.
*
* @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the LastDetectResponse object
*/
Observable<LastDetectResponse> detectLastPointAsync(DetectRequest body);

/**
* Detect anomaly status of the latest point in time series.
* 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.
*
* @param body Time series points and period if needed. Advanced model parameters can also be set in the request.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the LastDetectResponse object
*/
Observable<ServiceResponse<LastDetectResponse>> detectLastPointWithServiceResponseAsync(DetectRequest body);

/**
* Detect change point for the entire series.
* Evaluate change point score of every series point.
*
* @param body Time series points and granularity is needed. Advanced model parameters can also be set in the request if needed.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws AnomalyDetectorErrorException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
* @return the ChangePointDetectResponse object if successful.
*/
ChangePointDetectResponse detectChangePoint(ChangePointDetectRequest body);

/**
* Detect change point for the entire series.
* Evaluate change point score of every series point.
*
* @param body Time series points and granularity is needed. Advanced model parameters can also be set in the request if needed.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
*/
ServiceFuture<ChangePointDetectResponse> detectChangePointAsync(ChangePointDetectRequest body, final ServiceCallback<ChangePointDetectResponse> serviceCallback);

/**
* Detect change point for the entire series.
* Evaluate change point score of every series point.
*
* @param body Time series points and granularity is needed. Advanced model parameters can also be set in the request if needed.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the ChangePointDetectResponse object
*/
Observable<ChangePointDetectResponse> detectChangePointAsync(ChangePointDetectRequest body);

/**
* Detect change point for the entire series.
* Evaluate change point score of every series point.
*
* @param body Time series points and granularity is needed. Advanced model parameters can also be set in the request if needed.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the ChangePointDetectResponse object
*/
Observable<ServiceResponse<ChangePointDetectResponse>> detectChangePointWithServiceResponseAsync(ChangePointDetectRequest body);

}
Loading