TenantActivityLogAlerts Interface

public interface TenantActivityLogAlerts

Resource collection API of TenantActivityLogAlerts.

Method Summary

Modifier and Type Method and Description
abstract TenantActivityLogAlertResource createOrUpdate(String managementGroupName, String alertRuleName, TenantActivityLogAlertResourceInner tenantActivityLogAlertRule)

Create a new Tenant Activity Log Alert rule or update an existing one.

abstract Response<TenantActivityLogAlertResource> createOrUpdateWithResponse(String managementGroupName, String alertRuleName, TenantActivityLogAlertResourceInner tenantActivityLogAlertRule, Context context)

Create a new Tenant Activity Log Alert rule or update an existing one.

abstract void deleteByResourceGroup(String managementGroupName, String alertRuleName)

Delete a Tenant Activity Log Alert rule.

abstract Response<Void> deleteByResourceGroupWithResponse(String managementGroupName, String alertRuleName, Context context)

Delete a Tenant Activity Log Alert rule.

abstract TenantActivityLogAlertResource get(String managementGroupName, String alertRuleName)

Get Tenant Activity Log Alert rule.

abstract Response<TenantActivityLogAlertResource> getWithResponse(String managementGroupName, String alertRuleName, Context context)

Get Tenant Activity Log Alert rule.

abstract PagedIterable<TenantActivityLogAlertResource> listByManagementGroup(String managementGroupName)

Get a list of all Tenant Activity Log Alert rules in a management group.

abstract PagedIterable<TenantActivityLogAlertResource> listByManagementGroup(String managementGroupName, Context context)

Get a list of all Tenant Activity Log Alert rules in a management group.

abstract PagedIterable<TenantActivityLogAlertResource> listByTenant()

Get a list of all Tenant Activity Log Alert rules in the tenant.

abstract PagedIterable<TenantActivityLogAlertResource> listByTenant(Context context)

Get a list of all Tenant Activity Log Alert rules in the tenant.

abstract TenantActivityLogAlertResource update(String managementGroupName, String alertRuleName, TenantAlertRulePatchObject tenantActivityLogAlertRulePatch)

Updates 'tags' and 'enabled' fields in an existing Tenant Alert rule.

abstract Response<TenantActivityLogAlertResource> updateWithResponse(String managementGroupName, String alertRuleName, TenantAlertRulePatchObject tenantActivityLogAlertRulePatch, Context context)

Updates 'tags' and 'enabled' fields in an existing Tenant Alert rule.

Method Details

createOrUpdate

public abstract TenantActivityLogAlertResource createOrUpdate(String managementGroupName, String alertRuleName, TenantActivityLogAlertResourceInner tenantActivityLogAlertRule)

Create a new Tenant Activity Log Alert rule or update an existing one.

Parameters:

managementGroupName - The name of the management group. The name is case insensitive.
alertRuleName - The name of the Tenant Activity Log Alert rule.
tenantActivityLogAlertRule - The Tenant Activity Log Alert rule to create or use for the update.

Returns:

a Tenant Activity Log Alert rule resource.

createOrUpdateWithResponse

public abstract Response<TenantActivityLogAlertResource> createOrUpdateWithResponse(String managementGroupName, String alertRuleName, TenantActivityLogAlertResourceInner tenantActivityLogAlertRule, Context context)

Create a new Tenant Activity Log Alert rule or update an existing one.

Parameters:

managementGroupName - The name of the management group. The name is case insensitive.
alertRuleName - The name of the Tenant Activity Log Alert rule.
tenantActivityLogAlertRule - The Tenant Activity Log Alert rule to create or use for the update.
context - The context to associate with this operation.

Returns:

a Tenant Activity Log Alert rule resource along with Response<T>.

deleteByResourceGroup

public abstract void deleteByResourceGroup(String managementGroupName, String alertRuleName)

Delete a Tenant Activity Log Alert rule.

Parameters:

managementGroupName - The name of the management group. The name is case insensitive.
alertRuleName - The name of the Tenant Activity Log Alert rule.

deleteByResourceGroupWithResponse

public abstract Response<Void> deleteByResourceGroupWithResponse(String managementGroupName, String alertRuleName, Context context)

Delete a Tenant Activity Log Alert rule.

Parameters:

managementGroupName - The name of the management group. The name is case insensitive.
alertRuleName - The name of the Tenant Activity Log Alert rule.
context - The context to associate with this operation.

Returns:

get

public abstract TenantActivityLogAlertResource get(String managementGroupName, String alertRuleName)

Get Tenant Activity Log Alert rule.

Parameters:

managementGroupName - The name of the management group. The name is case insensitive.
alertRuleName - The name of the Tenant Activity Log Alert rule.

Returns:

tenant Activity Log Alert rule.

getWithResponse

public abstract Response<TenantActivityLogAlertResource> getWithResponse(String managementGroupName, String alertRuleName, Context context)

Get Tenant Activity Log Alert rule.

Parameters:

managementGroupName - The name of the management group. The name is case insensitive.
alertRuleName - The name of the Tenant Activity Log Alert rule.
context - The context to associate with this operation.

Returns:

tenant Activity Log Alert rule along with Response<T>.

listByManagementGroup

public abstract PagedIterable<TenantActivityLogAlertResource> listByManagementGroup(String managementGroupName)

Get a list of all Tenant Activity Log Alert rules in a management group.

Parameters:

managementGroupName - The name of the management group. The name is case insensitive.

Returns:

a list of all Tenant Activity Log Alert rules in a management group as paginated response with PagedIterable<T>.

listByManagementGroup

public abstract PagedIterable<TenantActivityLogAlertResource> listByManagementGroup(String managementGroupName, Context context)

Get a list of all Tenant Activity Log Alert rules in a management group.

Parameters:

managementGroupName - The name of the management group. The name is case insensitive.
context - The context to associate with this operation.

Returns:

a list of all Tenant Activity Log Alert rules in a management group as paginated response with PagedIterable<T>.

listByTenant

public abstract PagedIterable<TenantActivityLogAlertResource> listByTenant()

Get a list of all Tenant Activity Log Alert rules in the tenant.

Returns:

a list of all Tenant Activity Log Alert rules in the tenant as paginated response with PagedIterable<T>.

listByTenant

public abstract PagedIterable<TenantActivityLogAlertResource> listByTenant(Context context)

Get a list of all Tenant Activity Log Alert rules in the tenant.

Parameters:

context - The context to associate with this operation.

Returns:

a list of all Tenant Activity Log Alert rules in the tenant as paginated response with PagedIterable<T>.

update

public abstract TenantActivityLogAlertResource update(String managementGroupName, String alertRuleName, TenantAlertRulePatchObject tenantActivityLogAlertRulePatch)

Updates 'tags' and 'enabled' fields in an existing Tenant 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:

managementGroupName - The name of the management group. The name is case insensitive.
alertRuleName - The name of the Tenant Activity Log Alert rule.
tenantActivityLogAlertRulePatch - Parameters supplied to the operation.

Returns:

a Tenant Activity Log Alert rule resource.

updateWithResponse

public abstract Response<TenantActivityLogAlertResource> updateWithResponse(String managementGroupName, String alertRuleName, TenantAlertRulePatchObject tenantActivityLogAlertRulePatch, Context context)

Updates 'tags' and 'enabled' fields in an existing Tenant 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:

managementGroupName - The name of the management group. The name is case insensitive.
alertRuleName - The name of the Tenant Activity Log Alert rule.
tenantActivityLogAlertRulePatch - Parameters supplied to the operation.
context - The context to associate with this operation.

Returns:

a Tenant Activity Log Alert rule resource along with Response<T>.

Applies to