Interface UsagesClient
public interface UsagesClient
An instance of this class provides access to all the operations defined in UsagesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.http.rest.PagedIterable<UsageInner> listByInstancePool(String resourceGroupName, String instancePoolName) Gets all instance pool usage metrics.com.azure.core.http.rest.PagedIterable<UsageInner> listByInstancePool(String resourceGroupName, String instancePoolName, Boolean expandChildren, com.azure.core.util.Context context) Gets all instance pool usage metrics.com.azure.core.http.rest.PagedFlux<UsageInner> listByInstancePoolAsync(String resourceGroupName, String instancePoolName) Gets all instance pool usage metrics.com.azure.core.http.rest.PagedFlux<UsageInner> listByInstancePoolAsync(String resourceGroupName, String instancePoolName, Boolean expandChildren) Gets all instance pool usage metrics.
-
Method Details
-
listByInstancePoolAsync
com.azure.core.http.rest.PagedFlux<UsageInner> listByInstancePoolAsync(String resourceGroupName, String instancePoolName, Boolean expandChildren) Gets all instance pool usage metrics.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be retrieved.expandChildren- Optional request parameter to include managed instance usages within the instance pool.- Returns:
- all instance pool usage metrics as paginated response with
PagedFlux. - 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.
-
listByInstancePoolAsync
com.azure.core.http.rest.PagedFlux<UsageInner> listByInstancePoolAsync(String resourceGroupName, String instancePoolName) Gets all instance pool usage metrics.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be retrieved.- Returns:
- all instance pool usage metrics as paginated response with
PagedFlux. - 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.
-
listByInstancePool
com.azure.core.http.rest.PagedIterable<UsageInner> listByInstancePool(String resourceGroupName, String instancePoolName) Gets all instance pool usage metrics.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be retrieved.- Returns:
- all instance pool usage metrics 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.
-
listByInstancePool
com.azure.core.http.rest.PagedIterable<UsageInner> listByInstancePool(String resourceGroupName, String instancePoolName, Boolean expandChildren, com.azure.core.util.Context context) Gets all instance pool usage metrics.- Parameters:
resourceGroupName- The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.instancePoolName- The name of the instance pool to be retrieved.expandChildren- Optional request parameter to include managed instance usages within the instance pool.context- The context to associate with this operation.- Returns:
- all instance pool usage metrics 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.
-