Interface AlertRuleTemplates


public interface AlertRuleTemplates
Resource collection API of AlertRuleTemplates.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String resourceGroupName, String workspaceName, String alertRuleTemplateId)
    Gets the alert rule template.
    com.azure.core.http.rest.Response<AlertRuleTemplate>
    getWithResponse(String resourceGroupName, String workspaceName, String alertRuleTemplateId, com.azure.core.util.Context context)
    Gets the alert rule template.
    com.azure.core.http.rest.PagedIterable<AlertRuleTemplate>
    list(String resourceGroupName, String workspaceName)
    Gets all alert rule templates.
    com.azure.core.http.rest.PagedIterable<AlertRuleTemplate>
    list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
    Gets all alert rule templates.
  • Method Details

    • list

      com.azure.core.http.rest.PagedIterable<AlertRuleTemplate> list(String resourceGroupName, String workspaceName)
      Gets all alert rule templates.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      Returns:
      all alert rule templates 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<AlertRuleTemplate> list(String resourceGroupName, String workspaceName, com.azure.core.util.Context context)
      Gets all alert rule templates.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      context - The context to associate with this operation.
      Returns:
      all alert rule templates 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

      AlertRuleTemplate get(String resourceGroupName, String workspaceName, String alertRuleTemplateId)
      Gets the alert rule template.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      alertRuleTemplateId - Alert rule template ID.
      Returns:
      the alert rule template.
      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<AlertRuleTemplate> getWithResponse(String resourceGroupName, String workspaceName, String alertRuleTemplateId, com.azure.core.util.Context context)
      Gets the alert rule template.
      Parameters:
      resourceGroupName - The name of the resource group. The name is case insensitive.
      workspaceName - The name of the workspace.
      alertRuleTemplateId - Alert rule template ID.
      context - The context to associate with this operation.
      Returns:
      the alert rule template 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.