Interface AlertRuleTemplatesClient
public interface AlertRuleTemplatesClient
An instance of this class provides access to all the operations defined in AlertRuleTemplatesClient.
-
Method Summary
Modifier and TypeMethodDescriptionGets the alert rule template.com.azure.core.http.rest.Response<AlertRuleTemplateInner>
getWithResponse
(String resourceGroupName, String workspaceName, String alertRuleTemplateId, com.azure.core.util.Context context) Gets the alert rule template.com.azure.core.http.rest.PagedIterable<AlertRuleTemplateInner>
Gets all alert rule templates.com.azure.core.http.rest.PagedIterable<AlertRuleTemplateInner>
Gets all alert rule templates.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<AlertRuleTemplateInner> 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<AlertRuleTemplateInner> 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
AlertRuleTemplateInner 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<AlertRuleTemplateInner> 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.
-