Interface AlertProcessingRulesClient
public interface AlertProcessingRulesClient
An instance of this class provides access to all the operations defined in AlertProcessingRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String alertProcessingRuleName, AlertProcessingRuleInner alertProcessingRule) Create or update an alert processing rule.createOrUpdateWithResponse
(String resourceGroupName, String alertProcessingRuleName, AlertProcessingRuleInner alertProcessingRule, com.azure.core.util.Context context) Create or update an alert processing rule.void
Delete an alert processing rule.deleteWithResponse
(String resourceGroupName, String alertProcessingRuleName, com.azure.core.util.Context context) Delete an alert processing rule.getByResourceGroup
(String resourceGroupName, String alertProcessingRuleName) Get an alert processing rule by name.getByResourceGroupWithResponse
(String resourceGroupName, String alertProcessingRuleName, com.azure.core.util.Context context) Get an alert processing rule by name.com.azure.core.http.rest.PagedIterable<AlertProcessingRuleInner>
list()
List all alert processing rules in a subscription.com.azure.core.http.rest.PagedIterable<AlertProcessingRuleInner>
list
(com.azure.core.util.Context context) List all alert processing rules in a subscription.com.azure.core.http.rest.PagedIterable<AlertProcessingRuleInner>
listByResourceGroup
(String resourceGroupName) List all alert processing rules in a resource group.com.azure.core.http.rest.PagedIterable<AlertProcessingRuleInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List all alert processing rules in a resource group.update
(String resourceGroupName, String alertProcessingRuleName, PatchObject alertProcessingRulePatch) Enable, disable, or update tags for an alert processing rule.updateWithResponse
(String resourceGroupName, String alertProcessingRuleName, PatchObject alertProcessingRulePatch, com.azure.core.util.Context context) Enable, disable, or update tags for an alert processing rule.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<AlertProcessingRuleInner> list()List all alert processing rules in a subscription.- Returns:
- list of alert processing rules 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<AlertProcessingRuleInner> list(com.azure.core.util.Context context) List all alert processing rules in a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- list of alert processing rules 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<AlertProcessingRuleInner> listByResourceGroup(String resourceGroupName) List all alert processing rules in a resource group.- Parameters:
resourceGroupName
- Resource group name where the resource is created.- Returns:
- list of alert processing rules 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<AlertProcessingRuleInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List all alert processing rules in a resource group.- Parameters:
resourceGroupName
- Resource group name where the resource is created.context
- The context to associate with this operation.- Returns:
- list of alert processing rules 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.
-
getByResourceGroup
AlertProcessingRuleInner getByResourceGroup(String resourceGroupName, String alertProcessingRuleName) Get an alert processing rule by name.- Parameters:
resourceGroupName
- Resource group name where the resource is created.alertProcessingRuleName
- The name of the alert processing rule that needs to be fetched.- Returns:
- an alert processing rule by 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.
-
getByResourceGroupWithResponse
AlertProcessingRulesGetByResourceGroupResponse getByResourceGroupWithResponse(String resourceGroupName, String alertProcessingRuleName, com.azure.core.util.Context context) Get an alert processing rule by name.- Parameters:
resourceGroupName
- Resource group name where the resource is created.alertProcessingRuleName
- The name of the alert processing rule that needs to be fetched.context
- The context to associate with this operation.- Returns:
- an alert processing rule by 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.
-
createOrUpdate
AlertProcessingRuleInner createOrUpdate(String resourceGroupName, String alertProcessingRuleName, AlertProcessingRuleInner alertProcessingRule) Create or update an alert processing rule.- Parameters:
resourceGroupName
- Resource group name where the resource is created.alertProcessingRuleName
- The name of the alert processing rule that needs to be created/updated.alertProcessingRule
- Alert processing rule to be created/updated.- Returns:
- alert processing rule object containing target scopes, conditions and scheduling logic.
- 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.
-
createOrUpdateWithResponse
AlertProcessingRulesCreateOrUpdateResponse createOrUpdateWithResponse(String resourceGroupName, String alertProcessingRuleName, AlertProcessingRuleInner alertProcessingRule, com.azure.core.util.Context context) Create or update an alert processing rule.- Parameters:
resourceGroupName
- Resource group name where the resource is created.alertProcessingRuleName
- The name of the alert processing rule that needs to be created/updated.alertProcessingRule
- Alert processing rule to be created/updated.context
- The context to associate with this operation.- Returns:
- alert processing rule object containing target scopes, conditions and scheduling logic.
- 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
Delete an alert processing rule.- Parameters:
resourceGroupName
- Resource group name where the resource is created.alertProcessingRuleName
- The name of the alert processing rule that needs to be deleted.- 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.
-
deleteWithResponse
AlertProcessingRulesDeleteResponse deleteWithResponse(String resourceGroupName, String alertProcessingRuleName, com.azure.core.util.Context context) Delete an alert processing rule.- Parameters:
resourceGroupName
- Resource group name where the resource is created.alertProcessingRuleName
- The name of the alert processing rule that needs to be deleted.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.
-
update
AlertProcessingRuleInner update(String resourceGroupName, String alertProcessingRuleName, PatchObject alertProcessingRulePatch) Enable, disable, or update tags for an alert processing rule.- Parameters:
resourceGroupName
- Resource group name where the resource is created.alertProcessingRuleName
- The name that needs to be updated.alertProcessingRulePatch
- Parameters supplied to the operation.- Returns:
- alert processing rule object containing target scopes, conditions and scheduling logic.
- 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
AlertProcessingRulesUpdateResponse updateWithResponse(String resourceGroupName, String alertProcessingRuleName, PatchObject alertProcessingRulePatch, com.azure.core.util.Context context) Enable, disable, or update tags for an alert processing rule.- Parameters:
resourceGroupName
- Resource group name where the resource is created.alertProcessingRuleName
- The name that needs to be updated.alertProcessingRulePatch
- Parameters supplied to the operation.context
- The context to associate with this operation.- Returns:
- alert processing rule object containing target scopes, conditions and scheduling logic.
- 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.
-