Share via


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 SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName)

Delete a tag rule set for a given monitor resource.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName, Context context)

Delete a tag rule set for a given monitor resource.

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 void delete(String resourceGroupName, String monitorName, String ruleSetName)

Delete a tag rule set for a given monitor resource.

abstract void delete(String resourceGroupName, String monitorName, String ruleSetName, Context context)

Delete 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

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName)

Delete a tag rule set for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group to which the Elastic resource belongs.
monitorName - Monitor resource name.
ruleSetName - Tag Rule Set resource name.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String resourceGroupName, String monitorName, String ruleSetName, Context context)

Delete a tag rule set for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group to which the Elastic resource belongs.
monitorName - Monitor resource name.
ruleSetName - Tag Rule Set resource name.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

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 to which the Elastic resource belongs.
monitorName - Monitor resource name.
ruleSetName - Tag Rule Set resource 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 to which the Elastic resource belongs.
monitorName - Monitor resource name.
ruleSetName - Tag Rule Set resource name.
body - request body of MonitoringTagRules.
context - The context to associate with this operation.

Returns:

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

delete

public abstract void delete(String resourceGroupName, String monitorName, String ruleSetName)

Delete a tag rule set for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group to which the Elastic resource belongs.
monitorName - Monitor resource name.
ruleSetName - Tag Rule Set resource name.

delete

public abstract void delete(String resourceGroupName, String monitorName, String ruleSetName, Context context)

Delete a tag rule set for a given monitor resource.

Parameters:

resourceGroupName - The name of the resource group to which the Elastic resource belongs.
monitorName - Monitor resource name.
ruleSetName - Tag Rule Set resource name.
context - The context to associate with this operation.

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 to which the Elastic resource belongs.
monitorName - Monitor resource name.
ruleSetName - Tag Rule Set resource 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 to which the Elastic resource belongs.
monitorName - Monitor resource name.
ruleSetName - Tag Rule Set resource 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 to which the Elastic resource belongs.
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 to which the Elastic resource belongs.
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