Interface QueriesClient
public interface QueriesClient
An instance of this class provides access to all the operations defined in QueriesClient.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deletes a specific Query defined within an Log Analytics QueryPack.com.azure.core.http.rest.Response<Void>
deleteWithResponse
(String resourceGroupName, String queryPackName, String id, com.azure.core.util.Context context) Deletes a specific Query defined within an Log Analytics QueryPack.Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.com.azure.core.http.rest.Response<LogAnalyticsQueryPackQueryInner>
getWithResponse
(String resourceGroupName, String queryPackName, String id, com.azure.core.util.Context context) Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQueryInner>
Gets a list of Queries defined within a Log Analytics QueryPack.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQueryInner>
list
(String resourceGroupName, String queryPackName, Long top, Boolean includeBody, String skipToken, com.azure.core.util.Context context) Gets a list of Queries defined within a Log Analytics QueryPack.put
(String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload) Adds or Updates a specific Query within a Log Analytics QueryPack.com.azure.core.http.rest.Response<LogAnalyticsQueryPackQueryInner>
putWithResponse
(String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload, com.azure.core.util.Context context) Adds or Updates a specific Query within a Log Analytics QueryPack.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQueryInner>
search
(String resourceGroupName, String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties) Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQueryInner>
search
(String resourceGroupName, String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody, String skipToken, com.azure.core.util.Context context) Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.update
(String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload) Adds or Updates a specific Query within a Log Analytics QueryPack.com.azure.core.http.rest.Response<LogAnalyticsQueryPackQueryInner>
updateWithResponse
(String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload, com.azure.core.util.Context context) Adds or Updates a specific Query within a Log Analytics QueryPack.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQueryInner> list(String resourceGroupName, String queryPackName) Gets a list of Queries defined within a Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.- Returns:
- a list of Queries defined within a Log Analytics QueryPack as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQueryInner> list(String resourceGroupName, String queryPackName, Long top, Boolean includeBody, String skipToken, com.azure.core.util.Context context) Gets a list of Queries defined within a Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.top
- Maximum items returned in page.includeBody
- Flag indicating whether or not to return the body of each applicable query. If false, only return the query information.skipToken
- Base64 encoded token used to fetch the next page of items. Default is null.context
- The context to associate with this operation.- Returns:
- a list of Queries defined within a Log Analytics QueryPack as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
search
com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQueryInner> search(String resourceGroupName, String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties) Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.querySearchProperties
- Properties by which to search queries in the given Log Analytics QueryPack.- Returns:
- describes the list of Log Analytics QueryPack-Query resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
search
com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQueryInner> search(String resourceGroupName, String queryPackName, LogAnalyticsQueryPackQuerySearchProperties querySearchProperties, Long top, Boolean includeBody, String skipToken, com.azure.core.util.Context context) Search a list of Queries defined within a Log Analytics QueryPack according to given search properties.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.querySearchProperties
- Properties by which to search queries in the given Log Analytics QueryPack.top
- Maximum items returned in page.includeBody
- Flag indicating whether or not to return the body of each applicable query. If false, only return the query information.skipToken
- Base64 encoded token used to fetch the next page of items. Default is null.context
- The context to associate with this operation.- Returns:
- describes the list of Log Analytics QueryPack-Query resources as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.id
- The id of a specific query defined in the Log Analytics QueryPack.- Returns:
- a specific Log Analytics Query defined within a Log Analytics QueryPack.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<LogAnalyticsQueryPackQueryInner> getWithResponse(String resourceGroupName, String queryPackName, String id, com.azure.core.util.Context context) Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.id
- The id of a specific query defined in the Log Analytics QueryPack.context
- The context to associate with this operation.- Returns:
- a specific Log Analytics Query defined within a Log Analytics QueryPack along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
put
LogAnalyticsQueryPackQueryInner put(String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload) Adds or Updates a specific Query within a Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.id
- The id of a specific query defined in the Log Analytics QueryPack.queryPayload
- Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.- Returns:
- a Log Analytics QueryPack-Query definition.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
putWithResponse
com.azure.core.http.rest.Response<LogAnalyticsQueryPackQueryInner> putWithResponse(String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload, com.azure.core.util.Context context) Adds or Updates a specific Query within a Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.id
- The id of a specific query defined in the Log Analytics QueryPack.queryPayload
- Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.context
- The context to associate with this operation.- Returns:
- a Log Analytics QueryPack-Query definition along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
update
LogAnalyticsQueryPackQueryInner update(String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload) Adds or Updates a specific Query within a Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.id
- The id of a specific query defined in the Log Analytics QueryPack.queryPayload
- Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.- Returns:
- a Log Analytics QueryPack-Query definition.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
updateWithResponse
com.azure.core.http.rest.Response<LogAnalyticsQueryPackQueryInner> updateWithResponse(String resourceGroupName, String queryPackName, String id, LogAnalyticsQueryPackQueryInner queryPayload, com.azure.core.util.Context context) Adds or Updates a specific Query within a Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.id
- The id of a specific query defined in the Log Analytics QueryPack.queryPayload
- Properties that need to be specified to create a new query and add it to a Log Analytics QueryPack.context
- The context to associate with this operation.- Returns:
- a Log Analytics QueryPack-Query definition along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a specific Query defined within an Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.id
- The id of a specific query defined in the Log Analytics QueryPack.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String queryPackName, String id, com.azure.core.util.Context context) Deletes a specific Query defined within an Log Analytics QueryPack.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.queryPackName
- The name of the Log Analytics QueryPack resource.id
- The id of a specific query defined in the Log Analytics QueryPack.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-