PrometheusRuleGroups Interface

public interface PrometheusRuleGroups

Resource collection API of PrometheusRuleGroups.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new PrometheusRuleGroupResource resource.

abstract void deleteById(String id)

Delete a Prometheus rule group definition.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete a Prometheus rule group definition.

abstract void deleteByResourceGroup(String resourceGroupName, String ruleGroupName)

Delete a Prometheus rule group definition.

abstract Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String ruleGroupName, Context context)

Delete a Prometheus rule group definition.

abstract PrometheusRuleGroupResource getById(String id)

Retrieve a Prometheus rule group definition.

abstract Response<PrometheusRuleGroupResource> getByIdWithResponse(String id, Context context)

Retrieve a Prometheus rule group definition.

abstract PrometheusRuleGroupResource getByResourceGroup(String resourceGroupName, String ruleGroupName)

Retrieve a Prometheus rule group definition.

abstract Response<PrometheusRuleGroupResource> getByResourceGroupWithResponse(String resourceGroupName, String ruleGroupName, Context context)

Retrieve a Prometheus rule group definition.

abstract PagedIterable<PrometheusRuleGroupResource> list()

Retrieve Prometheus rule group definitions in a subscription.

abstract PagedIterable<PrometheusRuleGroupResource> list(Context context)

Retrieve Prometheus rule group definitions in a subscription.

abstract PagedIterable<PrometheusRuleGroupResource> listByResourceGroup(String resourceGroupName)

Retrieve Prometheus rule group definitions in a resource group.

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

Retrieve Prometheus rule group definitions in a resource group.

Method Details

define

public abstract PrometheusRuleGroupResource.DefinitionStages.Blank define(String name)

Begins definition for a new PrometheusRuleGroupResource resource.

Parameters:

name - resource name.

Returns:

the first stage of the new PrometheusRuleGroupResource definition.

deleteById

public abstract void deleteById(String id)

Delete a Prometheus rule group definition.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete a Prometheus rule group definition.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteByResourceGroup

public abstract void deleteByResourceGroup(String resourceGroupName, String ruleGroupName)

Delete a Prometheus rule group definition.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
ruleGroupName - The name of the rule group.

deleteByResourceGroupWithResponse

public abstract Response<Void> deleteByResourceGroupWithResponse(String resourceGroupName, String ruleGroupName, Context context)

Delete a Prometheus rule group definition.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
ruleGroupName - The name of the rule group.
context - The context to associate with this operation.

Returns:

getById

public abstract PrometheusRuleGroupResource getById(String id)

Retrieve a Prometheus rule group definition.

Parameters:

id - the resource ID.

Returns:

the Prometheus rule group resource along with Response<T>.

getByIdWithResponse

public abstract Response<PrometheusRuleGroupResource> getByIdWithResponse(String id, Context context)

Retrieve a Prometheus rule group definition.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

the Prometheus rule group resource along with Response<T>.

getByResourceGroup

public abstract PrometheusRuleGroupResource getByResourceGroup(String resourceGroupName, String ruleGroupName)

Retrieve a Prometheus rule group definition.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
ruleGroupName - The name of the rule group.

Returns:

the Prometheus rule group resource.

getByResourceGroupWithResponse

public abstract Response<PrometheusRuleGroupResource> getByResourceGroupWithResponse(String resourceGroupName, String ruleGroupName, Context context)

Retrieve a Prometheus rule group definition.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
ruleGroupName - The name of the rule group.
context - The context to associate with this operation.

Returns:

the Prometheus rule group resource along with Response<T>.

list

public abstract PagedIterable<PrometheusRuleGroupResource> list()

Retrieve Prometheus rule group definitions in a subscription.

Returns:

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

list

public abstract PagedIterable<PrometheusRuleGroupResource> list(Context context)

Retrieve Prometheus rule group 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>.

listByResourceGroup

public abstract PagedIterable<PrometheusRuleGroupResource> listByResourceGroup(String resourceGroupName)

Retrieve Prometheus rule group 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<PrometheusRuleGroupResource> listByResourceGroup(String resourceGroupName, Context context)

Retrieve Prometheus rule group 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>.

Applies to