Interface MonitorsClient


public interface MonitorsClient
An instance of this class provides access to all the operations defined in MonitorsClient.
  • Method Details

    • listMonitoredResources

      com.azure.core.http.rest.PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName)
      List the resources currently being monitored by the Logz monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      Returns:
      response of a list operation 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.
    • listMonitoredResources

      com.azure.core.http.rest.PagedIterable<MonitoredResourceInner> listMonitoredResources(String resourceGroupName, String monitorName, com.azure.core.util.Context context)
      List the resources currently being monitored by the Logz monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      response of a list operation 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<LogzMonitorResourceInner> list()
      List all monitors under the specified subscription.
      Returns:
      response of a list operation as paginated response with PagedIterable.
      Throws:
      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<LogzMonitorResourceInner> list(com.azure.core.util.Context context)
      List all monitors under the specified subscription.
      Parameters:
      context - The context to associate with this operation.
      Returns:
      response of a list operation 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<LogzMonitorResourceInner> listByResourceGroup(String resourceGroupName)
      List all monitors under the specified resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      Returns:
      response of a list operation 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.
    • listByResourceGroup

      com.azure.core.http.rest.PagedIterable<LogzMonitorResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
      List all monitors under the specified resource group.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      context - The context to associate with this operation.
      Returns:
      response of a list operation 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.
    • getByResourceGroupWithResponse

      com.azure.core.http.rest.Response<LogzMonitorResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String monitorName, com.azure.core.util.Context context)
      Get the properties of a specific monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      the properties of a specific monitor resource 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.
    • getByResourceGroup

      LogzMonitorResourceInner getByResourceGroup(String resourceGroupName, String monitorName)
      Get the properties of a specific monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      Returns:
      the properties of a specific monitor resource.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LogzMonitorResourceInner>,LogzMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName)
      Create a monitor resource. This create operation can take upto 10 minutes to complete.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginCreate

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<LogzMonitorResourceInner>,LogzMonitorResourceInner> beginCreate(String resourceGroupName, String monitorName, LogzMonitorResourceInner body, com.azure.core.util.Context context)
      Create a monitor resource. This create operation can take upto 10 minutes to complete.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      body - The body parameter.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • create

      LogzMonitorResourceInner create(String resourceGroupName, String monitorName)
      Create a monitor resource. This create operation can take upto 10 minutes to complete.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      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.
    • create

      LogzMonitorResourceInner create(String resourceGroupName, String monitorName, LogzMonitorResourceInner body, com.azure.core.util.Context context)
      Create a monitor resource. This create operation can take upto 10 minutes to complete.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      body - The body parameter.
      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.
    • updateWithResponse

      com.azure.core.http.rest.Response<LogzMonitorResourceInner> updateWithResponse(String resourceGroupName, String monitorName, LogzMonitorResourceUpdateParameters body, com.azure.core.util.Context context)
      Update a monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      body - The parameters for a PATCH request to a monitor resource.
      context - The context to associate with this operation.
      Returns:
      the response body 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

      LogzMonitorResourceInner update(String resourceGroupName, String monitorName)
      Update a monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName)
      Delete a monitor resource. This delete operation can take upto 10 minutes to complete.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      Returns:
      the SyncPoller for polling of long-running operation.
      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.
    • beginDelete

      com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, com.azure.core.util.Context context)
      Delete a monitor resource. This delete operation can take upto 10 minutes to complete.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      context - The context to associate with this operation.
      Returns:
      the SyncPoller for polling of long-running operation.
      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

      void delete(String resourceGroupName, String monitorName)
      Delete a monitor resource. This delete operation can take upto 10 minutes to complete.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      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

      void delete(String resourceGroupName, String monitorName, com.azure.core.util.Context context)
      Delete a monitor resource. This delete operation can take upto 10 minutes to complete.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      context - The context to associate with this operation.
      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.
    • listUserRoles

      com.azure.core.http.rest.PagedIterable<UserRoleResponseInner> listUserRoles(String resourceGroupName, String monitorName)
      List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      Returns:
      response for list of user's role for Logz.io account 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.
    • listUserRoles

      com.azure.core.http.rest.PagedIterable<UserRoleResponseInner> listUserRoles(String resourceGroupName, String monitorName, UserRoleRequest body, com.azure.core.util.Context context)
      List the user's roles configured on Logz.io side for the account corresponding to the monitor resource.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      monitorName - Monitor resource name.
      body - Request for checking user's role for Logz.io account.
      context - The context to associate with this operation.
      Returns:
      response for list of user's role for Logz.io account 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.