TagRulesClient Interface

public interface TagRulesClient

An instance of this class provides access to all the operations defined in TagRulesClient.

Method Summary

Modifier and Type Method and Description
abstract MonitoringTagRulesInner createOrUpdate(String resourceGroupName, String monitorName, String ruleSetName)

Create or update a tag rule set for a given monitor resource.

abstract Response<MonitoringTagRulesInner> createOrUpdateWithResponse(String resourceGroupName, String monitorName, String ruleSetName, MonitoringTagRulesInner body, Context context)

Create or update a tag rule set for a given monitor resource.

abstract MonitoringTagRulesInner get(String resourceGroupName, String monitorName, String ruleSetName)

Get a tag rule set for a given monitor resource.

abstract Response<MonitoringTagRulesInner> getWithResponse(String resourceGroupName, String monitorName, String ruleSetName, Context context)

Get a tag rule set for a given monitor resource.

abstract PagedIterable<MonitoringTagRulesInner> list(String resourceGroupName, String monitorName)

List the tag rules for a given monitor resource.

abstract PagedIterable<MonitoringTagRulesInner> list(String resourceGroupName, String monitorName, Context context)

List the tag rules for a given monitor resource.

Method Details

createOrUpdate

public abstract MonitoringTagRulesInner createOrUpdate(String resourceGroupName, String monitorName, String ruleSetName)

Create or update a tag rule set for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
monitorName - Monitor resource name.
ruleSetName - Rule set name.

Returns:

capture logs and metrics of Azure resources based on ARM tags.

createOrUpdateWithResponse

public abstract Response<MonitoringTagRulesInner> createOrUpdateWithResponse(String resourceGroupName, String monitorName, String ruleSetName, MonitoringTagRulesInner body, Context context)

Create or update a tag rule set for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
monitorName - Monitor resource name.
ruleSetName - Rule set name.
body - Capture logs and metrics of Azure resources based on ARM tags.
context - The context to associate with this operation.

Returns:

capture logs and metrics of Azure resources based on ARM tags along with Response<T>.

get

public abstract MonitoringTagRulesInner get(String resourceGroupName, String monitorName, String ruleSetName)

Get a tag rule set for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
monitorName - Monitor resource name.
ruleSetName - Rule set name.

Returns:

a tag rule set for a given monitor resource.

getWithResponse

public abstract Response<MonitoringTagRulesInner> getWithResponse(String resourceGroupName, String monitorName, String ruleSetName, Context context)

Get a tag rule set for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
monitorName - Monitor resource name.
ruleSetName - Rule set name.
context - The context to associate with this operation.

Returns:

a tag rule set for a given monitor resource along with Response<T>.

list

public abstract PagedIterable<MonitoringTagRulesInner> list(String resourceGroupName, String monitorName)

List the tag rules for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group. The name is case insensitive.
monitorName - Monitor resource name.

Returns:

response of a list operation as paginated response with PagedIterable<T>.

list

public abstract PagedIterable<MonitoringTagRulesInner> list(String resourceGroupName, String monitorName, Context context)

List the tag rules for a given monitor resource.

Parameters:

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

Returns:

response of a list operation as paginated response with PagedIterable<T>.

Applies to