public interface AlertRulesClient extends InnerSupportsGet<AlertRuleResourceInner>, InnerSupportsListing<AlertRuleResourceInner>, InnerSupportsDelete<Void>
| Modifier and Type | Method and Description |
|---|---|
AlertRuleResourceInner |
createOrUpdate(String resourceGroupName,
String ruleName,
AlertRuleResourceInner parameters)
Creates or updates a classic metric alert rule.
|
Mono<AlertRuleResourceInner> |
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 |
delete(String resourceGroupName,
String ruleName)
Deletes a classic metric alert rule.
|
Mono<Void> |
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.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteWithResponseAsync(String resourceGroupName,
String ruleName)
Deletes a classic metric alert rule.
|
AlertRuleResourceInner |
getByResourceGroup(String resourceGroupName,
String ruleName)
Gets a classic metric alert rule.
|
Mono<AlertRuleResourceInner> |
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> |
listAsync()
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.
|
AlertRuleResourceInner |
update(String resourceGroupName,
String ruleName,
AlertRuleResourcePatch alertRulesResource)
Updates an existing classic metric AlertRuleResource.
|
Mono<AlertRuleResourceInner> |
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.
|
Mono<com.azure.core.http.rest.Response<AlertRuleResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The alert rule resource.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.Mono<AlertRuleResourceInner> createOrUpdateAsync(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The alert rule resource.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.AlertRuleResourceInner createOrUpdate(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The alert rule resource.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.com.azure.core.http.rest.Response<AlertRuleResourceInner> createOrUpdateWithResponse(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The alert rule resource.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String ruleName)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.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.Mono<Void> deleteAsync(String resourceGroupName, String ruleName)
deleteAsync in interface InnerSupportsDelete<Void>resourceGroupName - The name of the resource group.ruleName - The name of the rule.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.void delete(String resourceGroupName, String ruleName)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.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.com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String ruleName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<AlertRuleResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String ruleName)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.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.Mono<AlertRuleResourceInner> getByResourceGroupAsync(String resourceGroupName, String ruleName)
getByResourceGroupAsync in interface InnerSupportsGet<AlertRuleResourceInner>resourceGroupName - The name of the resource group.ruleName - The name of the rule.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.AlertRuleResourceInner getByResourceGroup(String resourceGroupName, String ruleName)
getByResourceGroup in interface InnerSupportsGet<AlertRuleResourceInner>resourceGroupName - The name of the resource group.ruleName - The name of the rule.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.com.azure.core.http.rest.Response<AlertRuleResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String ruleName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.context - The context to associate with this operation.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.Mono<com.azure.core.http.rest.Response<AlertRuleResourceInner>> updateWithResponseAsync(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.alertRulesResource - The alert rule object for patch operations.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.Mono<AlertRuleResourceInner> updateAsync(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.alertRulesResource - The alert rule object for patch operations.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.AlertRuleResourceInner update(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.alertRulesResource - The alert rule object for patch operations.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.com.azure.core.http.rest.Response<AlertRuleResourceInner> updateWithResponse(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.alertRulesResource - The alert rule object for patch operations.context - The context to associate with this operation.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.com.azure.core.http.rest.PagedFlux<AlertRuleResourceInner> listByResourceGroupAsync(String resourceGroupName)
listByResourceGroupAsync in interface InnerSupportsListing<AlertRuleResourceInner>resourceGroupName - The name of the resource group.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.com.azure.core.http.rest.PagedIterable<AlertRuleResourceInner> listByResourceGroup(String resourceGroupName)
listByResourceGroup in interface InnerSupportsListing<AlertRuleResourceInner>resourceGroupName - The name of the resource group.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.com.azure.core.http.rest.PagedIterable<AlertRuleResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group.context - The context to associate with this operation.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.com.azure.core.http.rest.PagedFlux<AlertRuleResourceInner> listAsync()
listAsync in interface InnerSupportsListing<AlertRuleResourceInner>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.com.azure.core.http.rest.PagedIterable<AlertRuleResourceInner> list()
list in interface InnerSupportsListing<AlertRuleResourceInner>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.com.azure.core.http.rest.PagedIterable<AlertRuleResourceInner> list(com.azure.core.util.Context context)
context - The context to associate with this operation.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.Copyright © 2020 Microsoft Corporation. All rights reserved.