-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5586323
commit 2ccc962
Showing
15 changed files
with
1,280 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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-loganalytics</artifactId> | ||
<version>0.0.1-beta</version> | ||
<packaging>jar</packaging> | ||
<name>Microsoft Azure SDK for Log Analytics</name> | ||
<description>This package contains Microsoft Log Analytics 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.0</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.0</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> |
138 changes: 138 additions & 0 deletions
138
...ics/data-plane/src/main/java/com/microsoft/azure/loganalytics/LogAnalyticsDataClient.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,138 @@ | ||
/** | ||
* 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.loganalytics; | ||
|
||
import com.microsoft.azure.AzureClient; | ||
import com.microsoft.azure.loganalytics.models.ErrorResponseException; | ||
import com.microsoft.azure.loganalytics.models.QueryBody; | ||
import com.microsoft.azure.loganalytics.models.QueryResults; | ||
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 LogAnalyticsDataClient class. | ||
*/ | ||
public interface LogAnalyticsDataClient { | ||
/** | ||
* 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 Gets or sets the preferred language for the response.. | ||
* | ||
* @return the acceptLanguage value. | ||
*/ | ||
String acceptLanguage(); | ||
|
||
/** | ||
* Sets Gets or sets the preferred language for the response.. | ||
* | ||
* @param acceptLanguage the acceptLanguage value. | ||
* @return the service client itself | ||
*/ | ||
LogAnalyticsDataClient withAcceptLanguage(String acceptLanguage); | ||
|
||
/** | ||
* Gets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. | ||
* | ||
* @return the longRunningOperationRetryTimeout value. | ||
*/ | ||
int longRunningOperationRetryTimeout(); | ||
|
||
/** | ||
* Sets Gets or sets the retry timeout in seconds for Long Running Operations. Default value is 30.. | ||
* | ||
* @param longRunningOperationRetryTimeout the longRunningOperationRetryTimeout value. | ||
* @return the service client itself | ||
*/ | ||
LogAnalyticsDataClient withLongRunningOperationRetryTimeout(int longRunningOperationRetryTimeout); | ||
|
||
/** | ||
* Gets 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 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 | ||
*/ | ||
LogAnalyticsDataClient withGenerateClientRequestId(boolean generateClientRequestId); | ||
|
||
/** | ||
* Execute an Analytics query. | ||
* Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. | ||
* | ||
* @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. | ||
* @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @throws ErrorResponseException thrown if the request is rejected by server | ||
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent | ||
* @return the QueryResults object if successful. | ||
*/ | ||
QueryResults query(String workspaceId, QueryBody body); | ||
|
||
/** | ||
* Execute an Analytics query. | ||
* Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. | ||
* | ||
* @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. | ||
* @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) | ||
* @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<QueryResults> queryAsync(String workspaceId, QueryBody body, final ServiceCallback<QueryResults> serviceCallback); | ||
|
||
/** | ||
* Execute an Analytics query. | ||
* Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. | ||
* | ||
* @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. | ||
* @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable to the QueryResults object | ||
*/ | ||
Observable<QueryResults> queryAsync(String workspaceId, QueryBody body); | ||
|
||
/** | ||
* Execute an Analytics query. | ||
* Executes an Analytics query for data. [Here](https://dev.loganalytics.io/documentation/Using-the-API) is an example for using POST with an Analytics query. | ||
* | ||
* @param workspaceId ID of the workspace. This is Workspace ID from the Properties blade in the Azure portal. | ||
* @param body The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/) | ||
* @throws IllegalArgumentException thrown if parameters fail the validation | ||
* @return the observable to the QueryResults object | ||
*/ | ||
Observable<ServiceResponse<QueryResults>> queryWithServiceResponseAsync(String workspaceId, QueryBody body); | ||
|
||
} |
Oops, something went wrong.