public interface MetricAlertsClient extends InnerSupportsGet<MetricAlertResourceInner>, InnerSupportsListing<MetricAlertResourceInner>, InnerSupportsDelete<Void>
| Modifier and Type | Method and Description |
|---|---|
MetricAlertResourceInner |
createOrUpdate(String resourceGroupName,
String ruleName,
MetricAlertResourceInner parameters)
Create or update an metric alert definition.
|
Mono<MetricAlertResourceInner> |
createOrUpdateAsync(String resourceGroupName,
String ruleName,
MetricAlertResourceInner parameters)
Create or update an metric alert definition.
|
com.azure.core.http.rest.Response<MetricAlertResourceInner> |
createOrUpdateWithResponse(String resourceGroupName,
String ruleName,
MetricAlertResourceInner parameters,
com.azure.core.util.Context context)
Create or update an metric alert definition.
|
Mono<com.azure.core.http.rest.Response<MetricAlertResourceInner>> |
createOrUpdateWithResponseAsync(String resourceGroupName,
String ruleName,
MetricAlertResourceInner parameters)
Create or update an metric alert definition.
|
void |
delete(String resourceGroupName,
String ruleName)
Delete an alert rule definition.
|
Mono<Void> |
deleteAsync(String resourceGroupName,
String ruleName)
Delete an alert rule definition.
|
com.azure.core.http.rest.Response<Void> |
deleteWithResponse(String resourceGroupName,
String ruleName,
com.azure.core.util.Context context)
Delete an alert rule definition.
|
Mono<com.azure.core.http.rest.Response<Void>> |
deleteWithResponseAsync(String resourceGroupName,
String ruleName)
Delete an alert rule definition.
|
MetricAlertResourceInner |
getByResourceGroup(String resourceGroupName,
String ruleName)
Retrieve an alert rule definition.
|
Mono<MetricAlertResourceInner> |
getByResourceGroupAsync(String resourceGroupName,
String ruleName)
Retrieve an alert rule definition.
|
com.azure.core.http.rest.Response<MetricAlertResourceInner> |
getByResourceGroupWithResponse(String resourceGroupName,
String ruleName,
com.azure.core.util.Context context)
Retrieve an alert rule definition.
|
Mono<com.azure.core.http.rest.Response<MetricAlertResourceInner>> |
getByResourceGroupWithResponseAsync(String resourceGroupName,
String ruleName)
Retrieve an alert rule definition.
|
com.azure.core.http.rest.PagedIterable<MetricAlertResourceInner> |
list()
Retrieve alert rule definitions in a subscription.
|
com.azure.core.http.rest.PagedIterable<MetricAlertResourceInner> |
list(com.azure.core.util.Context context)
Retrieve alert rule definitions in a subscription.
|
com.azure.core.http.rest.PagedFlux<MetricAlertResourceInner> |
listAsync()
Retrieve alert rule definitions in a subscription.
|
com.azure.core.http.rest.PagedIterable<MetricAlertResourceInner> |
listByResourceGroup(String resourceGroupName)
Retrieve alert rule definitions in a resource group.
|
com.azure.core.http.rest.PagedIterable<MetricAlertResourceInner> |
listByResourceGroup(String resourceGroupName,
com.azure.core.util.Context context)
Retrieve alert rule definitions in a resource group.
|
com.azure.core.http.rest.PagedFlux<MetricAlertResourceInner> |
listByResourceGroupAsync(String resourceGroupName)
Retrieve alert rule definitions in a resource group.
|
MetricAlertResourceInner |
update(String resourceGroupName,
String ruleName,
MetricAlertResourcePatch parameters)
Update an metric alert definition.
|
Mono<MetricAlertResourceInner> |
updateAsync(String resourceGroupName,
String ruleName,
MetricAlertResourcePatch parameters)
Update an metric alert definition.
|
com.azure.core.http.rest.Response<MetricAlertResourceInner> |
updateWithResponse(String resourceGroupName,
String ruleName,
MetricAlertResourcePatch parameters,
com.azure.core.util.Context context)
Update an metric alert definition.
|
Mono<com.azure.core.http.rest.Response<MetricAlertResourceInner>> |
updateWithResponseAsync(String resourceGroupName,
String ruleName,
MetricAlertResourcePatch parameters)
Update an metric alert definition.
|
com.azure.core.http.rest.PagedFlux<MetricAlertResourceInner> listAsync()
listAsync in interface InnerSupportsListing<MetricAlertResourceInner>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<MetricAlertResourceInner> list()
list in interface InnerSupportsListing<MetricAlertResourceInner>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<MetricAlertResourceInner> 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.com.azure.core.http.rest.PagedFlux<MetricAlertResourceInner> listByResourceGroupAsync(String resourceGroupName)
listByResourceGroupAsync in interface InnerSupportsListing<MetricAlertResourceInner>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<MetricAlertResourceInner> listByResourceGroup(String resourceGroupName)
listByResourceGroup in interface InnerSupportsListing<MetricAlertResourceInner>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<MetricAlertResourceInner> 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.Mono<com.azure.core.http.rest.Response<MetricAlertResourceInner>> 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<MetricAlertResourceInner> getByResourceGroupAsync(String resourceGroupName, String ruleName)
getByResourceGroupAsync in interface InnerSupportsGet<MetricAlertResourceInner>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.MetricAlertResourceInner getByResourceGroup(String resourceGroupName, String ruleName)
getByResourceGroup in interface InnerSupportsGet<MetricAlertResourceInner>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<MetricAlertResourceInner> 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<MetricAlertResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The metric alert 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<MetricAlertResourceInner> createOrUpdateAsync(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The metric alert 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.MetricAlertResourceInner createOrUpdate(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The metric alert 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<MetricAlertResourceInner> createOrUpdateWithResponse(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The metric alert 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<MetricAlertResourceInner>> updateWithResponseAsync(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The metric alert resource 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<MetricAlertResourceInner> updateAsync(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The metric alert resource 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.MetricAlertResourceInner update(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The metric alert resource 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<MetricAlertResourceInner> updateWithResponse(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters, com.azure.core.util.Context context)
resourceGroupName - The name of the resource group.ruleName - The name of the rule.parameters - The metric alert resource 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.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.Copyright © 2020 Microsoft Corporation. All rights reserved.