AlertRulesClient Interface

Implements

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 Type Method and Description
abstract AlertRuleResourceInner createOrUpdate(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters)

Creates or updates a classic metric alert rule.

abstract Mono<AlertRuleResourceInner> createOrUpdateAsync(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters)

Creates or updates a classic metric alert rule.

abstract Response<AlertRuleResourceInner> createOrUpdateWithResponse(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters, Context context)

Creates or updates a classic metric alert rule.

abstract Mono<Response<AlertRuleResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters)

Creates or updates a classic metric alert rule.

abstract void delete(String resourceGroupName, String ruleName)

Deletes a classic metric alert rule.

abstract Mono<Void> deleteAsync(String resourceGroupName, String ruleName)

Deletes a classic metric alert rule.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String ruleName, Context context)

Deletes a classic metric alert rule.

abstract Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String ruleName)

Deletes a classic metric alert rule.

abstract AlertRuleResourceInner getByResourceGroup(String resourceGroupName, String ruleName)

Gets a classic metric alert rule.

abstract Mono<AlertRuleResourceInner> getByResourceGroupAsync(String resourceGroupName, String ruleName)

Gets a classic metric alert rule.

abstract Response<AlertRuleResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String ruleName, Context context)

Gets a classic metric alert rule.

abstract Mono<Response<AlertRuleResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String ruleName)

Gets a classic metric alert rule.

abstract PagedIterable<AlertRuleResourceInner> list()

List the classic metric alert rules within a subscription.

abstract PagedIterable<AlertRuleResourceInner> list(Context context)

List the classic metric alert rules within a subscription.

abstract PagedFlux<AlertRuleResourceInner> listAsync()

List the classic metric alert rules within a subscription.

abstract PagedIterable<AlertRuleResourceInner> listByResourceGroup(String resourceGroupName)

List the classic metric alert rules within a resource group.

abstract PagedIterable<AlertRuleResourceInner> listByResourceGroup(String resourceGroupName, Context context)

List the classic metric alert rules within a resource group.

abstract PagedFlux<AlertRuleResourceInner> listByResourceGroupAsync(String resourceGroupName)

List the classic metric alert rules within a resource group.

abstract AlertRuleResourceInner update(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource)

Updates an existing classic metric AlertRuleResource.

abstract Mono<AlertRuleResourceInner> updateAsync(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource)

Updates an existing classic metric AlertRuleResource.

abstract Response<AlertRuleResourceInner> updateWithResponse(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource, Context context)

Updates an existing classic metric AlertRuleResource.

abstract Mono<Response<AlertRuleResourceInner>> updateWithResponseAsync(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource)

Updates an existing classic metric AlertRuleResource.

Method Details

createOrUpdate

public abstract 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.

createOrUpdateAsync

public abstract Mono 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.

createOrUpdateWithResponse

public abstract Response createOrUpdateWithResponse(String resourceGroupName, String ruleName, AlertRuleResourceInner parameters, 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<T>.

createOrUpdateWithResponseAsync

public abstract Mono> 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<T> on successful completion of Mono.

delete

public abstract void delete(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.

deleteAsync

public abstract Mono deleteAsync(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:

A Mono that completes when a successful response is received.

deleteWithResponse

public abstract Response deleteWithResponse(String resourceGroupName, String ruleName, 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:

deleteWithResponseAsync

public abstract Mono> 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<T> on successful completion of Mono.

getByResourceGroup

public abstract AlertRuleResourceInner getByResourceGroup(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.

getByResourceGroupAsync

public abstract Mono getByResourceGroupAsync(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 on successful completion of Mono.

getByResourceGroupWithResponse

public abstract Response getByResourceGroupWithResponse(String resourceGroupName, String ruleName, 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<T>.

getByResourceGroupWithResponseAsync

public abstract Mono> 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<T> on successful completion of Mono.

list

public abstract PagedIterable list()

List the classic metric alert rules within a subscription.

Returns:

represents a collection of alert rule resources as paginated response with PagedIterable<T>.

list

public abstract PagedIterable list(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<T>.

listAsync

public abstract PagedFlux listAsync()

List the classic metric alert rules within a subscription.

Returns:

represents a collection of alert rule resources as paginated response with PagedFlux<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName)

List the classic metric alert rules within a resource group.

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<T>.

listByResourceGroup

public abstract PagedIterable listByResourceGroup(String resourceGroupName, 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<T>.

listByResourceGroupAsync

public abstract PagedFlux listByResourceGroupAsync(String resourceGroupName)

List the classic metric alert rules within a resource group.

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<T>.

update

public abstract 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.

updateAsync

public abstract Mono 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.

updateWithResponse

public abstract Response updateWithResponse(String resourceGroupName, String ruleName, AlertRuleResourcePatch alertRulesResource, 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<T>.

updateWithResponseAsync

public abstract Mono> 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<T> on successful completion of Mono.

Applies to