Interface TagRules
public interface TagRules
Resource collection API of TagRules.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new MonitoringTagRules resource.Get a tag rule set for a given monitor resource.Get a tag rule set for a given monitor resource.com.azure.core.http.rest.Response<MonitoringTagRules>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a tag rule set for a given monitor resource.com.azure.core.http.rest.Response<MonitoringTagRules>
getWithResponse
(String resourceGroupName, String monitorName, String ruleSetName, com.azure.core.util.Context context) Get a tag rule set for a given monitor resource.com.azure.core.http.rest.PagedIterable<MonitoringTagRules>
List the tag rules for a given monitor resource.com.azure.core.http.rest.PagedIterable<MonitoringTagRules>
List the tag rules for a given monitor resource.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<MonitoringTagRules> 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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
list
com.azure.core.http.rest.PagedIterable<MonitoringTagRules> list(String resourceGroupName, String monitorName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<MonitoringTagRules> getWithResponse(String resourceGroupName, String monitorName, String ruleSetName, com.azure.core.util.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
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
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.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Get a tag rule set for a given monitor resource.- Parameters:
id
- the resource ID.- Returns:
- a tag rule set for a given monitor resource along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<MonitoringTagRules> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a tag rule set for a given monitor resource.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a tag rule set for a given monitor resource along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new MonitoringTagRules resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new MonitoringTagRules definition.
-