次の方法で共有


Querys Interface

public interface Querys

An instance of this class provides access to all the operations defined in Querys.

Method Summary

Modifier and Type Method and Description
QueryResults execute(String appId, QueryBody body)

Execute an Analytics query. Executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query.

Observable<QueryResults> executeAsync(String appId, QueryBody body)

Execute an Analytics query. Executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query.

ServiceFuture<QueryResults> executeAsync(String appId, QueryBody body, final ServiceCallback<QueryResults> serviceCallback)

Execute an Analytics query. Executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query.

Observable<ServiceResponse<QueryResults>> executeWithServiceResponseAsync(String appId, QueryBody body)

Execute an Analytics query. Executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query.

Method Details

execute

public QueryResults execute(String appId, QueryBody body)

Execute an Analytics query. Executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query.

Parameters:

appId - ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
body - The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)

Returns:

the QueryResults object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

executeAsync

public Observable executeAsync(String appId, QueryBody body)

Execute an Analytics query. Executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query.

Parameters:

appId - ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
body - The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)

Returns:

the observable to the QueryResults object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

executeAsync

public ServiceFuture executeAsync(String appId, QueryBody body, final ServiceCallback serviceCallback)

Execute an Analytics query. Executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query.

Parameters:

appId - ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
body - The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

executeWithServiceResponseAsync

public Observable> executeWithServiceResponseAsync(String appId, QueryBody body)

Execute an Analytics query. Executes an Analytics query for data. [Here](https://dev.applicationinsights.io/documentation/Using-the-API/Query) is an example for using POST with an Analytics query.

Parameters:

appId - ID of the application. This is Application ID from the API Access settings blade in the Azure portal.
body - The Analytics query. Learn more about the [Analytics query syntax](https://azure.microsoft.com/documentation/articles/app-insights-analytics-reference/)

Returns:

the observable to the QueryResults object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to