Interface AlertRulesClient
- All Superinterfaces:
InnerSupportsDelete<Void>
,InnerSupportsGet<AlertRuleResourceInner>
,InnerSupportsListing<AlertRuleResourceInner>
public interface AlertRulesClient
extends InnerSupportsGet<AlertRuleResourceInner>, InnerSupportsListing<AlertRuleResourceInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in AlertRulesClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters) Creates or updates a classic metric alert rule.createOrUpdateAsync
(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters) Creates or updates a classic metric alert rule.com.azure.core.http.rest.Response
<AlertRuleResourceInner> createOrUpdateWithResponse
(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters, com.azure.core.util.Context context) Creates or updates a classic metric alert rule.Mono
<com.azure.core.http.rest.Response<AlertRuleResourceInner>> createOrUpdateWithResponseAsync
(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters) Creates or updates a classic metric alert rule.void
Deletes a classic metric alert rule.deleteAsync
(String resourceGroupName, String ruleName) Deletes a classic metric alert rule.com.azure.core.http.rest.Response
<Void> deleteWithResponse
(String resourceGroupName, String ruleName, com.azure.core.util.Context context) Deletes a classic metric alert rule.deleteWithResponseAsync
(String resourceGroupName, String ruleName) Deletes a classic metric alert rule.getByResourceGroup
(String resourceGroupName, String ruleName) Gets a classic metric alert rule.getByResourceGroupAsync
(String resourceGroupName, String ruleName) Gets a classic metric alert rule.com.azure.core.http.rest.Response
<AlertRuleResourceInner> getByResourceGroupWithResponse
(String resourceGroupName, String ruleName, com.azure.core.util.Context context) Gets a classic metric alert rule.Mono
<com.azure.core.http.rest.Response<AlertRuleResourceInner>> getByResourceGroupWithResponseAsync
(String resourceGroupName, String ruleName) Gets a classic metric alert rule.com.azure.core.http.rest.PagedIterable
<AlertRuleResourceInner> list()
List the classic metric alert rules within a subscription.com.azure.core.http.rest.PagedIterable
<AlertRuleResourceInner> list
(com.azure.core.util.Context context) List the classic metric alert rules within a subscription.com.azure.core.http.rest.PagedFlux
<AlertRuleResourceInner> List the classic metric alert rules within a subscription.com.azure.core.http.rest.PagedIterable
<AlertRuleResourceInner> listByResourceGroup
(String resourceGroupName) List the classic metric alert rules within a resource group.com.azure.core.http.rest.PagedIterable
<AlertRuleResourceInner> listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List the classic metric alert rules within a resource group.com.azure.core.http.rest.PagedFlux
<AlertRuleResourceInner> listByResourceGroupAsync
(String resourceGroupName) List the classic metric alert rules within a resource group.update
(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource) Updates an existing classic metric AlertRuleResource.updateAsync
(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource) Updates an existing classic metric AlertRuleResource.com.azure.core.http.rest.Response
<AlertRuleResourceInner> updateWithResponse
(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource, com.azure.core.util.Context context) Updates an existing classic metric AlertRuleResource.Mono
<com.azure.core.http.rest.Response<AlertRuleResourceInner>> updateWithResponseAsync
(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource) Updates an existing classic metric AlertRuleResource.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<AlertRuleResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters) Creates or updates a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.parameters
- The parameters of the rule to create or update.- Returns:
- the alert rule resource along with
Response
on successful completion ofMono
. - 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.
-
createOrUpdateAsync
Mono<AlertRuleResourceInner> createOrUpdateAsync(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters) Creates or updates a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.parameters
- The parameters of the rule to create or update.- Returns:
- the alert rule resource on successful completion of
Mono
. - 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
com.azure.core.http.rest.Response<AlertRuleResourceInner> createOrUpdateWithResponse(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters, com.azure.core.util.Context context) Creates or updates a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.parameters
- The parameters of the rule to create or update.context
- The context to associate with this operation.- Returns:
- the alert rule 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.
-
createOrUpdate
AlertRuleResourceInner createOrUpdate(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters) Creates or updates a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.parameters
- The parameters of the rule to create or update.- Returns:
- the alert rule 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String ruleName) Deletes a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
deleteAsync
Deletes a classic metric alert rule.- Specified by:
deleteAsync
in interfaceInnerSupportsDelete<Void>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.- Returns:
- A
Mono
that completes when a successful response is received. - 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
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String ruleName, com.azure.core.util.Context context) Deletes a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.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.
-
delete
Deletes a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.- 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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<AlertRuleResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String ruleName) Gets a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.- Returns:
- a classic metric alert rule along with
Response
on successful completion ofMono
. - 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.
-
getByResourceGroupAsync
Gets a classic metric alert rule.- Specified by:
getByResourceGroupAsync
in interfaceInnerSupportsGet<AlertRuleResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.- Returns:
- a classic metric alert rule on successful completion of
Mono
. - 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<AlertRuleResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String ruleName, com.azure.core.util.Context context) Gets a classic metric alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.context
- The context to associate with this operation.- Returns:
- a classic metric alert rule 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
Gets a classic metric alert rule.- Specified by:
getByResourceGroup
in interfaceInnerSupportsGet<AlertRuleResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.- Returns:
- a classic metric alert rule.
- 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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<AlertRuleResourceInner>> updateWithResponseAsync(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource) Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.alertRulesResource
- Parameters supplied to the operation.- Returns:
- the alert rule resource along with
Response
on successful completion ofMono
. - 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.
-
updateAsync
Mono<AlertRuleResourceInner> updateAsync(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource) Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.alertRulesResource
- Parameters supplied to the operation.- Returns:
- the alert rule resource on successful completion of
Mono
. - 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<AlertRuleResourceInner> updateWithResponse(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource, com.azure.core.util.Context context) Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.alertRulesResource
- Parameters supplied to the operation.context
- The context to associate with this operation.- Returns:
- the alert rule 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.
-
update
AlertRuleResourceInner update(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource) Updates an existing classic metric AlertRuleResource. To update other fields use the CreateOrUpdate method.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.ruleName
- The name of the rule.alertRulesResource
- Parameters supplied to the operation.- Returns:
- the alert rule 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<AlertRuleResourceInner> listByResourceGroupAsync(String resourceGroupName) List the classic metric alert rules within a resource group.- Specified by:
listByResourceGroupAsync
in interfaceInnerSupportsListing<AlertRuleResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- represents a collection of alert rule resources as paginated response with
PagedFlux
. - 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<AlertRuleResourceInner> listByResourceGroup(String resourceGroupName) List the classic metric alert rules within a resource group.- Specified by:
listByResourceGroup
in interfaceInnerSupportsListing<AlertRuleResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- represents a collection of alert rule resources 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<AlertRuleResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List the classic metric alert rules within a resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- represents a collection of alert rule resources 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<AlertRuleResourceInner> listAsync()List the classic metric alert rules within a subscription.- Specified by:
listAsync
in interfaceInnerSupportsListing<AlertRuleResourceInner>
- Returns:
- represents a collection of alert rule resources as paginated response with
PagedFlux
. - 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<AlertRuleResourceInner> list()List the classic metric alert rules within a subscription.- Specified by:
list
in interfaceInnerSupportsListing<AlertRuleResourceInner>
- Returns:
- represents a collection of alert rule resources 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<AlertRuleResourceInner> list(com.azure.core.util.Context context) List the classic metric alert rules within a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- represents a collection of alert rule resources 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.
-