Interface ActivityLogAlertsClient

All Superinterfaces:
InnerSupportsDelete<Void>, InnerSupportsGet<ActivityLogAlertResourceInner>, InnerSupportsListing<ActivityLogAlertResourceInner>

An instance of this class provides access to all the operations defined in ActivityLogAlertsClient.
  • 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 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.
    • 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 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.
    • getByResourceGroupAsync

      Mono<ActivityLogAlertResourceInner> getByResourceGroupAsync(String resourceGroupName, String activityLogAlertName)
      Get an Activity Log Alert rule.
      Specified by:
      getByResourceGroupAsync in interface InnerSupportsGet<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 interface InnerSupportsGet<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 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.
    • deleteAsync

      Mono<Void> deleteAsync(String resourceGroupName, String activityLogAlertName)
      Delete an Activity Log Alert rule.
      Specified by:
      deleteAsync in interface InnerSupportsDelete<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

      void delete(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.
      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 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.
    • 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 interface InnerSupportsListing<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 interface InnerSupportsListing<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 interface InnerSupportsListing<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 interface InnerSupportsListing<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.