Interface ActivityLogAlertsClient
- All Superinterfaces:
InnerSupportsDelete<Void>
,InnerSupportsGet<ActivityLogAlertResourceInner>
,InnerSupportsListing<ActivityLogAlertResourceInner>
public interface ActivityLogAlertsClient
extends InnerSupportsGet<ActivityLogAlertResourceInner>, InnerSupportsListing<ActivityLogAlertResourceInner>, InnerSupportsDelete<Void>
An instance of this class provides access to all the operations defined in ActivityLogAlertsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlertRule) Create a new Activity Log Alert rule or update an existing one.createOrUpdateAsync
(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlertRule) Create a new Activity Log Alert rule or update an existing one.com.azure.core.http.rest.Response
<ActivityLogAlertResourceInner> createOrUpdateWithResponse
(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlertRule, com.azure.core.util.Context context) Create a new Activity Log Alert rule or update an existing one.Mono
<com.azure.core.http.rest.Response<ActivityLogAlertResourceInner>> createOrUpdateWithResponseAsync
(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlertRule) Create a new Activity Log Alert rule or update an existing one.void
Delete an Activity Log Alert rule.deleteAsync
(String resourceGroupName, String activityLogAlertName) Delete an Activity Log Alert rule.com.azure.core.http.rest.Response
<Void> deleteWithResponse
(String resourceGroupName, String activityLogAlertName, com.azure.core.util.Context context) Delete an Activity Log Alert rule.deleteWithResponseAsync
(String resourceGroupName, String activityLogAlertName) Delete an Activity Log Alert rule.getByResourceGroup
(String resourceGroupName, String activityLogAlertName) Get an Activity Log Alert rule.getByResourceGroupAsync
(String resourceGroupName, String activityLogAlertName) Get an Activity Log Alert rule.com.azure.core.http.rest.Response
<ActivityLogAlertResourceInner> getByResourceGroupWithResponse
(String resourceGroupName, String activityLogAlertName, com.azure.core.util.Context context) Get an Activity Log Alert rule.Mono
<com.azure.core.http.rest.Response<ActivityLogAlertResourceInner>> getByResourceGroupWithResponseAsync
(String resourceGroupName, String activityLogAlertName) Get an Activity Log Alert rule.com.azure.core.http.rest.PagedIterable
<ActivityLogAlertResourceInner> list()
Get a list of all Activity Log Alert rules in a subscription.com.azure.core.http.rest.PagedIterable
<ActivityLogAlertResourceInner> list
(com.azure.core.util.Context context) Get a list of all Activity Log Alert rules in a subscription.com.azure.core.http.rest.PagedFlux
<ActivityLogAlertResourceInner> Get a list of all Activity Log Alert rules in a subscription.com.azure.core.http.rest.PagedIterable
<ActivityLogAlertResourceInner> listByResourceGroup
(String resourceGroupName) Get a list of all Activity Log Alert rules in a resource group.com.azure.core.http.rest.PagedIterable
<ActivityLogAlertResourceInner> listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Get a list of all Activity Log Alert rules in a resource group.com.azure.core.http.rest.PagedFlux
<ActivityLogAlertResourceInner> listByResourceGroupAsync
(String resourceGroupName) Get a list of all Activity Log Alert rules in a resource group.update
(String resourceGroupName, String activityLogAlertName, AlertRulePatchObject activityLogAlertRulePatch) Updates 'tags' and 'enabled' fields in an existing Alert rule.updateAsync
(String resourceGroupName, String activityLogAlertName, AlertRulePatchObject activityLogAlertRulePatch) Updates 'tags' and 'enabled' fields in an existing Alert rule.com.azure.core.http.rest.Response
<ActivityLogAlertResourceInner> updateWithResponse
(String resourceGroupName, String activityLogAlertName, AlertRulePatchObject activityLogAlertRulePatch, com.azure.core.util.Context context) Updates 'tags' and 'enabled' fields in an existing Alert rule.Mono
<com.azure.core.http.rest.Response<ActivityLogAlertResourceInner>> updateWithResponseAsync
(String resourceGroupName, String activityLogAlertName, AlertRulePatchObject activityLogAlertRulePatch) Updates 'tags' and 'enabled' fields in an existing Alert rule.
-
Method Details
-
createOrUpdateWithResponseAsync
Mono<com.azure.core.http.rest.Response<ActivityLogAlertResourceInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlertRule) Create a new Activity Log Alert rule or update an existing one.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.activityLogAlertRule
- The Activity Log Alert rule to create or use for the update.- Returns:
- an Activity Log Alert rule resource along with
Response
on successful completion ofMono
. - 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.
-
createOrUpdateAsync
Mono<ActivityLogAlertResourceInner> createOrUpdateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlertRule) Create a new Activity Log Alert rule or update an existing one.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.activityLogAlertRule
- The Activity Log Alert rule to create or use for the update.- Returns:
- an Activity Log Alert rule resource on successful completion of
Mono
. - 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.
-
createOrUpdateWithResponse
com.azure.core.http.rest.Response<ActivityLogAlertResourceInner> createOrUpdateWithResponse(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlertRule, com.azure.core.util.Context context) Create a new Activity Log Alert rule or update an existing one.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.activityLogAlertRule
- The Activity Log Alert rule to create or use for the update.context
- The context to associate with this operation.- Returns:
- an Activity Log Alert rule 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.
-
createOrUpdate
ActivityLogAlertResourceInner createOrUpdate(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlertRule) Create a new Activity Log Alert rule or update an existing one.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.activityLogAlertRule
- The Activity Log Alert rule to create or use for the update.- Returns:
- an Activity Log Alert rule 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.
-
getByResourceGroupWithResponseAsync
Mono<com.azure.core.http.rest.Response<ActivityLogAlertResourceInner>> getByResourceGroupWithResponseAsync(String resourceGroupName, String activityLogAlertName) Get an Activity Log Alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.- Returns:
- an Activity Log Alert rule along with
Response
on successful completion ofMono
. - 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.
-
getByResourceGroupAsync
Mono<ActivityLogAlertResourceInner> getByResourceGroupAsync(String resourceGroupName, String activityLogAlertName) Get an Activity Log Alert rule.- Specified by:
getByResourceGroupAsync
in interfaceInnerSupportsGet<ActivityLogAlertResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.- Returns:
- an Activity Log Alert rule on successful completion of
Mono
. - 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<ActivityLogAlertResourceInner> getByResourceGroupWithResponse(String resourceGroupName, String activityLogAlertName, com.azure.core.util.Context context) Get an Activity Log Alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.context
- The context to associate with this operation.- Returns:
- an Activity Log Alert rule 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.
-
getByResourceGroup
ActivityLogAlertResourceInner getByResourceGroup(String resourceGroupName, String activityLogAlertName) Get an Activity Log Alert rule.- Specified by:
getByResourceGroup
in interfaceInnerSupportsGet<ActivityLogAlertResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.- Returns:
- an Activity Log Alert rule.
- 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.
-
deleteWithResponseAsync
Mono<com.azure.core.http.rest.Response<Void>> deleteWithResponseAsync(String resourceGroupName, String activityLogAlertName) Delete an Activity Log Alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.- Returns:
- the
Response
on successful completion ofMono
. - 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.
-
deleteAsync
Delete an Activity Log Alert rule.- Specified by:
deleteAsync
in interfaceInnerSupportsDelete<Void>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.- Returns:
- A
Mono
that completes when a successful response is received. - 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.
-
deleteWithResponse
com.azure.core.http.rest.Response<Void> deleteWithResponse(String resourceGroupName, String activityLogAlertName, com.azure.core.util.Context context) Delete an Activity Log Alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.context
- The context to associate with this operation.- Returns:
- the
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.
-
delete
Delete an Activity Log Alert rule.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.- 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.
-
updateWithResponseAsync
Mono<com.azure.core.http.rest.Response<ActivityLogAlertResourceInner>> updateWithResponseAsync(String resourceGroupName, String activityLogAlertName, AlertRulePatchObject activityLogAlertRulePatch) Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.activityLogAlertRulePatch
- Parameters supplied to the operation.- Returns:
- an Activity Log Alert rule resource along with
Response
on successful completion ofMono
. - 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.
-
updateAsync
Mono<ActivityLogAlertResourceInner> updateAsync(String resourceGroupName, String activityLogAlertName, AlertRulePatchObject activityLogAlertRulePatch) Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.activityLogAlertRulePatch
- Parameters supplied to the operation.- Returns:
- an Activity Log Alert rule resource on successful completion of
Mono
. - 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.
-
updateWithResponse
com.azure.core.http.rest.Response<ActivityLogAlertResourceInner> updateWithResponse(String resourceGroupName, String activityLogAlertName, AlertRulePatchObject activityLogAlertRulePatch, com.azure.core.util.Context context) Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.activityLogAlertRulePatch
- Parameters supplied to the operation.context
- The context to associate with this operation.- Returns:
- an Activity Log Alert rule 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.
-
update
ActivityLogAlertResourceInner update(String resourceGroupName, String activityLogAlertName, AlertRulePatchObject activityLogAlertRulePatch) Updates 'tags' and 'enabled' fields in an existing Alert rule. This method is used to update the Alert rule tags, and to enable or disable the Alert rule. To update other fields use CreateOrUpdate operation.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.activityLogAlertName
- The name of the Activity Log Alert rule.activityLogAlertRulePatch
- Parameters supplied to the operation.- Returns:
- an Activity Log Alert rule 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.
-
listAsync
com.azure.core.http.rest.PagedFlux<ActivityLogAlertResourceInner> listAsync()Get a list of all Activity Log Alert rules in a subscription.- Specified by:
listAsync
in interfaceInnerSupportsListing<ActivityLogAlertResourceInner>
- Returns:
- a list of all Activity Log Alert rules in a subscription as paginated response with
PagedFlux
. - Throws:
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<ActivityLogAlertResourceInner> list()Get a list of all Activity Log Alert rules in a subscription.- Specified by:
list
in interfaceInnerSupportsListing<ActivityLogAlertResourceInner>
- Returns:
- a list of all Activity Log Alert rules in a subscription as paginated response with
PagedIterable
. - Throws:
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<ActivityLogAlertResourceInner> list(com.azure.core.util.Context context) Get a list of all Activity Log Alert rules in a subscription.- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of all Activity Log Alert rules in a subscription 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.
-
listByResourceGroupAsync
com.azure.core.http.rest.PagedFlux<ActivityLogAlertResourceInner> listByResourceGroupAsync(String resourceGroupName) Get a list of all Activity Log Alert rules in a resource group.- Specified by:
listByResourceGroupAsync
in interfaceInnerSupportsListing<ActivityLogAlertResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- a list of all Activity Log Alert rules in a resource group as paginated response with
PagedFlux
. - 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ActivityLogAlertResourceInner> listByResourceGroup(String resourceGroupName) Get a list of all Activity Log Alert rules in a resource group.- Specified by:
listByResourceGroup
in interfaceInnerSupportsListing<ActivityLogAlertResourceInner>
- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- a list of all Activity Log Alert rules in a resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<ActivityLogAlertResourceInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Get a list of all Activity Log Alert rules 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:
- a list of all Activity Log Alert rules in a resource group 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.
-