MetricAlertsClient Interface
Implements
public interface MetricAlertsClient extends InnerSupportsGet <MetricAlertResourceInner >, InnerSupportsListing <MetricAlertResourceInner >, InnerSupportsDelete <Void >
An instance of this class provides access to all the operations defined in MetricAlertsClient.
Method Summary
Modifier and Type
Method and Description
abstract
MetricAlertResourceInner
createOrUpdate(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
Create or update an metric alert definition.
abstract
Mono <MetricAlertResourceInner >
createOrUpdateAsync(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
Create or update an metric alert definition.
abstract
Response <MetricAlertResourceInner >
createOrUpdateWithResponse(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters, Context context)
Create or update an metric alert definition.
abstract
Mono <Response <MetricAlertResourceInner >>
createOrUpdateWithResponseAsync(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
Create or update an metric alert definition.
abstract
void
delete(String resourceGroupName, String ruleName)
Delete an alert rule definition.
abstract
Mono <Void >
deleteAsync(String resourceGroupName, String ruleName)
Delete an alert rule definition.
abstract
Response <Void >
deleteWithResponse(String resourceGroupName, String ruleName, Context context)
Delete an alert rule definition.
abstract
Mono <Response <Void >>
deleteWithResponseAsync(String resourceGroupName, String ruleName)
Delete an alert rule definition.
abstract
MetricAlertResourceInner
getByResourceGroup(String resourceGroupName, String ruleName)
Retrieve an alert rule definition.
abstract
Mono <MetricAlertResourceInner >
getByResourceGroupAsync(String resourceGroupName, String ruleName)
Retrieve an alert rule definition.
abstract
Response <MetricAlertResourceInner >
getByResourceGroupWithResponse(String resourceGroupName, String ruleName, Context context)
Retrieve an alert rule definition.
abstract
Mono <Response <MetricAlertResourceInner >>
getByResourceGroupWithResponseAsync(String resourceGroupName, String ruleName)
Retrieve an alert rule definition.
abstract
PagedIterable <MetricAlertResourceInner >
list()
Retrieve alert rule definitions in a subscription.
abstract
PagedIterable <MetricAlertResourceInner >
list(Context context)
Retrieve alert rule definitions in a subscription.
abstract
PagedFlux <MetricAlertResourceInner >
listAsync()
Retrieve alert rule definitions in a subscription.
abstract
PagedIterable <MetricAlertResourceInner >
listByResourceGroup(String resourceGroupName)
Retrieve alert rule definitions in a resource group.
abstract
PagedIterable <MetricAlertResourceInner >
listByResourceGroup(String resourceGroupName, Context context)
Retrieve alert rule definitions in a resource group.
abstract
PagedFlux <MetricAlertResourceInner >
listByResourceGroupAsync(String resourceGroupName)
Retrieve alert rule definitions in a resource group.
abstract
MetricAlertResourceInner
update(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
Update an metric alert definition.
abstract
Mono <MetricAlertResourceInner >
updateAsync(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
Update an metric alert definition.
abstract
Response <MetricAlertResourceInner >
updateWithResponse(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters, Context context)
Update an metric alert definition.
abstract
Mono <Response <MetricAlertResourceInner >>
updateWithResponseAsync(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
Update an metric alert definition.
Method Details
createOrUpdate
public abstract MetricAlertResourceInner createOrUpdate(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
Create or update an metric alert definition.
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 metric alert resource.
createOrUpdateAsync
public abstract Mono createOrUpdateAsync(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
Create or update an metric alert definition.
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 metric alert resource on successful completion of Mono .
createOrUpdateWithResponse
public abstract Response createOrUpdateWithResponse(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters, Context context)
Create or update an metric alert definition.
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:
createOrUpdateWithResponseAsync
public abstract Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String ruleName, MetricAlertResourceInner parameters)
Create or update an metric alert definition.
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 metric alert resource along with
Response<T> on successful completion of
Mono .
delete
public abstract void delete(String resourceGroupName, String ruleName)
Delete an alert rule definition.
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)
Delete an alert rule definition.
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)
Delete an alert rule definition.
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)
Delete an alert rule definition.
Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.
ruleName
- The name of the rule.
Returns:
getByResourceGroup
public abstract MetricAlertResourceInner getByResourceGroup(String resourceGroupName, String ruleName)
Retrieve an alert rule definition.
Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.
ruleName
- The name of the rule.
Returns:
the metric alert resource.
getByResourceGroupAsync
public abstract Mono getByResourceGroupAsync(String resourceGroupName, String ruleName)
Retrieve an alert rule definition.
Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.
ruleName
- The name of the rule.
Returns:
the metric alert resource on successful completion of Mono .
getByResourceGroupWithResponse
public abstract Response getByResourceGroupWithResponse(String resourceGroupName, String ruleName, Context context)
Retrieve an alert rule definition.
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:
getByResourceGroupWithResponseAsync
public abstract Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String ruleName)
Retrieve an alert rule definition.
Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.
ruleName
- The name of the rule.
Returns:
the metric alert resource along with
Response<T> on successful completion of
Mono .
list
public abstract PagedIterable list()
Retrieve alert rule definitions in a subscription.
Returns:
represents a collection of alert rule resources as paginated response with
PagedIterable<T> .
list
public abstract PagedIterable list(Context context)
Retrieve alert rule definitions in 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()
Retrieve alert rule definitions in a subscription.
Returns:
represents a collection of alert rule resources as paginated response with
PagedFlux<T> .
listByResourceGroup
public abstract PagedIterable listByResourceGroup(String resourceGroupName)
Retrieve alert rule definitions in 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)
Retrieve alert rule definitions in 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)
Retrieve alert rule definitions in 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 MetricAlertResourceInner update(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
Update an metric alert definition.
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 update.
Returns:
the metric alert resource.
updateAsync
public abstract Mono updateAsync(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
Update an metric alert definition.
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 update.
Returns:
the metric alert resource on successful completion of Mono .
updateWithResponse
public abstract Response updateWithResponse(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters, Context context)
Update an metric alert definition.
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 update.
context
- The context to associate with this operation.
Returns:
updateWithResponseAsync
public abstract Mono> updateWithResponseAsync(String resourceGroupName, String ruleName, MetricAlertResourcePatch parameters)
Update an metric alert definition.
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 update.
Returns:
the metric alert resource along with
Response<T> on successful completion of
Mono .
Applies to