ActivityLogAlertsInner Class

  • java.lang.Object

public class ActivityLogAlertsInner implements InnerSupportsGet,InnerSupportsDelete,InnerSupportsListing

An instance of this class provides access to all the operations defined in ActivityLogAlerts.

Constructor Summary

Constructor Description
ActivityLogAlertsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of ActivityLogAlertsInner.

Method Summary

Modifier and Type Method and Description
ActivityLogAlertResourceInner createOrUpdate(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert)

Create a new activity log alert or update an existing one.

Observable<ActivityLogAlertResourceInner> createOrUpdateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert)

Create a new activity log alert or update an existing one.

ServiceFuture<ActivityLogAlertResourceInner> createOrUpdateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert, final ServiceCallback<ActivityLogAlertResourceInner> serviceCallback)

Create a new activity log alert or update an existing one.

Observable<ServiceResponse<ActivityLogAlertResourceInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert)

Create a new activity log alert or update an existing one.

void delete(String resourceGroupName, String activityLogAlertName)

Delete an activity log alert.

Observable<Void> deleteAsync(String resourceGroupName, String activityLogAlertName)

Delete an activity log alert.

ServiceFuture<Void> deleteAsync(String resourceGroupName, String activityLogAlertName, final ServiceCallback<Void> serviceCallback)

Delete an activity log alert.

Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceGroupName, String activityLogAlertName)

Delete an activity log alert.

ActivityLogAlertResourceInner getByResourceGroup(String resourceGroupName, String activityLogAlertName)

Get an activity log alert.

Observable<ActivityLogAlertResourceInner> getByResourceGroupAsync(String resourceGroupName, String activityLogAlertName)

Get an activity log alert.

ServiceFuture<ActivityLogAlertResourceInner> getByResourceGroupAsync(String resourceGroupName, String activityLogAlertName, final ServiceCallback<ActivityLogAlertResourceInner> serviceCallback)

Get an activity log alert.

Observable<ServiceResponse<ActivityLogAlertResourceInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String activityLogAlertName)

Get an activity log alert.

PagedList<ActivityLogAlertResourceInner> list()

Get a list of all activity log alerts in a subscription.

Observable<Page<ActivityLogAlertResourceInner>> listAsync()

Get a list of all activity log alerts in a subscription.

ServiceFuture<List<ActivityLogAlertResourceInner>> listAsync(final ServiceCallback<List<ActivityLogAlertResourceInner>> serviceCallback)

Get a list of all activity log alerts in a subscription.

PagedList<ActivityLogAlertResourceInner> listByResourceGroup(String resourceGroupName)

Get a list of all activity log alerts in a resource group.

Observable<Page<ActivityLogAlertResourceInner>> listByResourceGroupAsync(String resourceGroupName)

Get a list of all activity log alerts in a resource group.

ServiceFuture<List<ActivityLogAlertResourceInner>> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback<List<ActivityLogAlertResourceInner>> serviceCallback)

Get a list of all activity log alerts in a resource group.

Observable<ServiceResponse<List<ActivityLogAlertResourceInner>>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName)

Get a list of all activity log alerts in a resource group.

Observable<ServiceResponse<List<ActivityLogAlertResourceInner>>> listWithServiceResponseAsync()

Get a list of all activity log alerts in a subscription.

ActivityLogAlertResourceInner update(String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch)

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

Observable<ActivityLogAlertResourceInner> updateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch)

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

ServiceFuture<ActivityLogAlertResourceInner> updateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch, final ServiceCallback<ActivityLogAlertResourceInner> serviceCallback)

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

Observable<ServiceResponse<ActivityLogAlertResourceInner>> updateWithServiceResponseAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch)

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

Inherited Members

Constructor Details

ActivityLogAlertsInner

public ActivityLogAlertsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of ActivityLogAlertsInner.

Parameters:

retrofit - the Retrofit instance built from a Retrofit Builder.
client - the instance of the service client containing this operation class.

Method Details

createOrUpdate

public ActivityLogAlertResourceInner createOrUpdate(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert)

Create a new activity log alert or update an existing one.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
activityLogAlert - The activity log alert to create or use for the update.

Returns:

the ActivityLogAlertResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

createOrUpdateAsync

public Observable createOrUpdateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert)

Create a new activity log alert or update an existing one.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
activityLogAlert - The activity log alert to create or use for the update.

Returns:

the observable to the ActivityLogAlertResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateAsync

public ServiceFuture createOrUpdateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert, final ServiceCallback serviceCallback)

Create a new activity log alert or update an existing one.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
activityLogAlert - The activity log alert to create or use for the update.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateWithServiceResponseAsync

public Observable<>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertResourceInner activityLogAlert)

Create a new activity log alert or update an existing one.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
activityLogAlert - The activity log alert to create or use for the update.

Returns:

the observable to the ActivityLogAlertResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceGroupName, String activityLogAlertName)

Delete an activity log alert.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

deleteAsync

public Observable deleteAsync(String resourceGroupName, String activityLogAlertName)

Delete an activity log alert.

Overrides:

ActivityLogAlertsInner.deleteAsync(String resourceGroupName, String activityLogAlertName)

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

public ServiceFuture deleteAsync(String resourceGroupName, String activityLogAlertName, final ServiceCallback serviceCallback)

Delete an activity log alert.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteWithServiceResponseAsync

public Observable<>> deleteWithServiceResponseAsync(String resourceGroupName, String activityLogAlertName)

Delete an activity log alert.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroup

public ActivityLogAlertResourceInner getByResourceGroup(String resourceGroupName, String activityLogAlertName)

Get an activity log alert.

Overrides:

ActivityLogAlertsInner.getByResourceGroup(String resourceGroupName, String activityLogAlertName)

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.

Returns:

the ActivityLogAlertResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getByResourceGroupAsync

public Observable getByResourceGroupAsync(String resourceGroupName, String activityLogAlertName)

Get an activity log alert.

Overrides:

ActivityLogAlertsInner.getByResourceGroupAsync(String resourceGroupName, String activityLogAlertName)

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.

Returns:

the observable to the ActivityLogAlertResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroupAsync

public ServiceFuture getByResourceGroupAsync(String resourceGroupName, String activityLogAlertName, final ServiceCallback serviceCallback)

Get an activity log alert.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroupWithServiceResponseAsync

public Observable<>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String activityLogAlertName)

Get an activity log alert.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.

Returns:

the observable to the ActivityLogAlertResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

public PagedList list()

Get a list of all activity log alerts in a subscription.

Overrides:

ActivityLogAlertsInner.list()

Returns:

the PagedList<ActivityLogAlertResourceInner> object if successful.

listAsync

public Observable<>> listAsync()

Get a list of all activity log alerts in a subscription.

Overrides:

ActivityLogAlertsInner.listAsync()

Returns:

the observable to the List<ActivityLogAlertResourceInner> object

listAsync

public ServiceFuture<>> listAsync(final ServiceCallback<>> serviceCallback)

Get a list of all activity log alerts in a subscription.

Parameters:

serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

listByResourceGroup

public PagedList listByResourceGroup(String resourceGroupName)

Get a list of all activity log alerts in a resource group.

Overrides:

ActivityLogAlertsInner.listByResourceGroup(String resourceGroupName)

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the PagedList<ActivityLogAlertResourceInner> object if successful.

listByResourceGroupAsync

public Observable<>> listByResourceGroupAsync(String resourceGroupName)

Get a list of all activity log alerts in a resource group.

Overrides:

ActivityLogAlertsInner.listByResourceGroupAsync(String resourceGroupName)

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the observable to the List<ActivityLogAlertResourceInner> object

listByResourceGroupAsync

public ServiceFuture<>> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback<>> serviceCallback)

Get a list of all activity log alerts in a resource group.

Parameters:

resourceGroupName - The name of the resource group.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

listByResourceGroupWithServiceResponseAsync

public Observable<><>>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName)

Get a list of all activity log alerts in a resource group.

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the observable to the List<ActivityLogAlertResourceInner> object

listWithServiceResponseAsync

public Observable<><>>> listWithServiceResponseAsync()

Get a list of all activity log alerts in a subscription.

Returns:

the observable to the List<ActivityLogAlertResourceInner> object

update

public ActivityLogAlertResourceInner update(String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch)

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
activityLogAlertPatch - Parameters supplied to the operation.

Returns:

the ActivityLogAlertResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

updateAsync

public Observable updateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch)

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
activityLogAlertPatch - Parameters supplied to the operation.

Returns:

the observable to the ActivityLogAlertResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch, final ServiceCallback serviceCallback)

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
activityLogAlertPatch - Parameters supplied to the operation.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateWithServiceResponseAsync

public Observable<>> updateWithServiceResponseAsync(String resourceGroupName, String activityLogAlertName, ActivityLogAlertPatchBody activityLogAlertPatch)

Updates an existing ActivityLogAlertResource's tags. To update other fields use the CreateOrUpdate method.

Parameters:

resourceGroupName - The name of the resource group.
activityLogAlertName - The name of the activity log alert.
activityLogAlertPatch - Parameters supplied to the operation.

Returns:

the observable to the ActivityLogAlertResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to