Interface Queries
public interface Queries
Resource collection API of Queries.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new LogAnalyticsQueryPackQuery resource.voidDeletes a specific Query defined within an Log Analytics QueryPack.voiddeleteById(String id) Deletes a specific Query defined within an Log Analytics QueryPack.com.azure.core.http.rest.Response<Void>deleteByIdWithResponse(String id, com.azure.core.util.Context context) 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.Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.com.azure.core.http.rest.Response<LogAnalyticsQueryPackQuery>getByIdWithResponse(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.Response<LogAnalyticsQueryPackQuery>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<LogAnalyticsQueryPackQuery>Gets a list of Queries defined within a Log Analytics QueryPack.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQuery>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.com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQuery>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<LogAnalyticsQueryPackQuery>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.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<LogAnalyticsQueryPackQuery> 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<LogAnalyticsQueryPackQuery> 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<LogAnalyticsQueryPackQuery> 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<LogAnalyticsQueryPackQuery> 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<LogAnalyticsQueryPackQuery> 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.
-
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.
-
getById
Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.- Parameters:
id- the resource ID.- 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<LogAnalyticsQueryPackQuery> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a specific Log Analytics Query defined within a Log Analytics QueryPack.- Parameters:
id- the resource ID.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.
-
deleteById
Deletes a specific Query defined within an Log Analytics QueryPack.- Parameters:
id- the resource ID.- 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.
-
deleteByIdWithResponse
com.azure.core.http.rest.Response<Void> deleteByIdWithResponse(String id, com.azure.core.util.Context context) Deletes a specific Query defined within an Log Analytics QueryPack.- Parameters:
id- the resource ID.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.
-
define
Begins definition for a new LogAnalyticsQueryPackQuery resource.- Parameters:
name- resource name.- Returns:
- the first stage of the new LogAnalyticsQueryPackQuery definition.
-