Interface Advisors


  • public interface Advisors
    Resource collection API of Advisors.
    • Method Detail

      • get

        Advisor get​(String resourceGroupName,
                    String serverName,
                    String advisorName)
        Get a recommendation action advisor.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        serverName - The name of the server.
        advisorName - The advisor name for recommendation action.
        Returns:
        a recommendation action advisor.
        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<Advisor> getWithResponse​(String resourceGroupName,
                                                                   String serverName,
                                                                   String advisorName,
                                                                   com.azure.core.util.Context context)
        Get a recommendation action advisor.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        serverName - The name of the server.
        advisorName - The advisor name for recommendation action.
        context - The context to associate with this operation.
        Returns:
        a recommendation action advisor 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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<Advisor> listByServer​(String resourceGroupName,
                                                                     String serverName)
        List recommendation action advisors.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        serverName - The name of the server.
        Returns:
        a list of query statistics.
        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.
      • listByServer

        com.azure.core.http.rest.PagedIterable<Advisor> listByServer​(String resourceGroupName,
                                                                     String serverName,
                                                                     com.azure.core.util.Context context)
        List recommendation action advisors.
        Parameters:
        resourceGroupName - The name of the resource group. The name is case insensitive.
        serverName - The name of the server.
        context - The context to associate with this operation.
        Returns:
        a list of query statistics.
        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.