ScheduledQueryRulesInner Class

  • java.lang.Object

public class ScheduledQueryRulesInner implements InnerSupportsGet,InnerSupportsDelete,InnerSupportsListing

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

Constructor Summary

Constructor Description
ScheduledQueryRulesInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of ScheduledQueryRulesInner.

Method Summary

Modifier and Type Method and Description
LogSearchRuleResourceInner createOrUpdate(String resourceGroupName, String ruleName, LogSearchRuleResourceInner parameters)

Creates or updates an log search rule.

Observable<LogSearchRuleResourceInner> createOrUpdateAsync(String resourceGroupName, String ruleName, LogSearchRuleResourceInner parameters)

Creates or updates an log search rule.

ServiceFuture<LogSearchRuleResourceInner> createOrUpdateAsync(String resourceGroupName, String ruleName, LogSearchRuleResourceInner parameters, final ServiceCallback<LogSearchRuleResourceInner> serviceCallback)

Creates or updates an log search rule.

Observable<ServiceResponse<LogSearchRuleResourceInner>> createOrUpdateWithServiceResponseAsync(String resourceGroupName, String ruleName, LogSearchRuleResourceInner parameters)

Creates or updates an log search rule.

void delete(String resourceGroupName, String ruleName)

Deletes a Log Search rule.

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

Deletes a Log Search rule.

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

Deletes a Log Search rule.

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

Deletes a Log Search rule.

LogSearchRuleResourceInner getByResourceGroup(String resourceGroupName, String ruleName)

Gets an Log Search rule.

Observable<LogSearchRuleResourceInner> getByResourceGroupAsync(String resourceGroupName, String ruleName)

Gets an Log Search rule.

ServiceFuture<LogSearchRuleResourceInner> getByResourceGroupAsync(String resourceGroupName, String ruleName, final ServiceCallback<LogSearchRuleResourceInner> serviceCallback)

Gets an Log Search rule.

Observable<ServiceResponse<LogSearchRuleResourceInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String ruleName)

Gets an Log Search rule.

PagedList<LogSearchRuleResourceInner> list()

List the Log Search rules within a subscription group.

PagedList<LogSearchRuleResourceInner> list(String filter)

List the Log Search rules within a subscription group.

Observable<Page<LogSearchRuleResourceInner>> listAsync()

List the Log Search rules within a subscription group.

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

List the Log Search rules within a subscription group.

Observable<Page<LogSearchRuleResourceInner>> listAsync(String filter)

List the Log Search rules within a subscription group.

ServiceFuture<List<LogSearchRuleResourceInner>> listAsync(String filter, final ServiceCallback<List<LogSearchRuleResourceInner>> serviceCallback)

List the Log Search rules within a subscription group.

PagedList<LogSearchRuleResourceInner> listByResourceGroup(String resourceGroupName)

List the Log Search rules within a resource group.

PagedList<LogSearchRuleResourceInner> listByResourceGroup(String resourceGroupName, String filter)

List the Log Search rules within a resource group.

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

List the Log Search rules within a resource group.

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

List the Log Search rules within a resource group.

Observable<Page<LogSearchRuleResourceInner>> listByResourceGroupAsync(String resourceGroupName, String filter)

List the Log Search rules within a resource group.

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

List the Log Search rules within a resource group.

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

List the Log Search rules within a resource group.

Observable<ServiceResponse<List<LogSearchRuleResourceInner>>> listByResourceGroupWithServiceResponseAsync(String resourceGroupName, String filter)

List the Log Search rules within a resource group.

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

List the Log Search rules within a subscription group.

Observable<ServiceResponse<List<LogSearchRuleResourceInner>>> listWithServiceResponseAsync(String filter)

List the Log Search rules within a subscription group.

LogSearchRuleResourceInner update(String resourceGroupName, String ruleName, LogSearchRuleResourcePatch parameters)

Update log search Rule.

Observable<LogSearchRuleResourceInner> updateAsync(String resourceGroupName, String ruleName, LogSearchRuleResourcePatch parameters)

Update log search Rule.

ServiceFuture<LogSearchRuleResourceInner> updateAsync(String resourceGroupName, String ruleName, LogSearchRuleResourcePatch parameters, final ServiceCallback<LogSearchRuleResourceInner> serviceCallback)

Update log search Rule.

Observable<ServiceResponse<LogSearchRuleResourceInner>> updateWithServiceResponseAsync(String resourceGroupName, String ruleName, LogSearchRuleResourcePatch parameters)

Update log search Rule.

Inherited Members

Constructor Details

ScheduledQueryRulesInner

public ScheduledQueryRulesInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of ScheduledQueryRulesInner.

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 LogSearchRuleResourceInner createOrUpdate(String resourceGroupName, String ruleName, LogSearchRuleResourceInner parameters)

Creates or updates an log search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
parameters - The parameters of the rule to create or update.

Returns:

the LogSearchRuleResourceInner 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 ruleName, LogSearchRuleResourceInner parameters)

Creates or updates an log search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
parameters - The parameters of the rule to create or update.

Returns:

the observable to the LogSearchRuleResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateAsync

public ServiceFuture createOrUpdateAsync(String resourceGroupName, String ruleName, LogSearchRuleResourceInner parameters, final ServiceCallback serviceCallback)

Creates or updates an log search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
parameters - The parameters of the rule to create or 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 ruleName, LogSearchRuleResourceInner parameters)

Creates or updates an log search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
parameters - The parameters of the rule to create or update.

Returns:

the observable to the LogSearchRuleResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceGroupName, String ruleName)

Deletes a Log Search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.

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 ruleName)

Deletes a Log Search rule.

Overrides:

ScheduledQueryRulesInner.deleteAsync(String resourceGroupName, String ruleName)

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

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

Deletes a Log Search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
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 ruleName)

Deletes a Log Search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroup

public LogSearchRuleResourceInner getByResourceGroup(String resourceGroupName, String ruleName)

Gets an Log Search rule.

Overrides:

ScheduledQueryRulesInner.getByResourceGroup(String resourceGroupName, String ruleName)

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.

Returns:

the LogSearchRuleResourceInner 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 ruleName)

Gets an Log Search rule.

Overrides:

ScheduledQueryRulesInner.getByResourceGroupAsync(String resourceGroupName, String ruleName)

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.

Returns:

the observable to the LogSearchRuleResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getByResourceGroupAsync

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

Gets an Log Search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
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 ruleName)

Gets an Log Search rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.

Returns:

the observable to the LogSearchRuleResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

public PagedList list()

List the Log Search rules within a subscription group.

Overrides:

ScheduledQueryRulesInner.list()

Returns:

the PagedList<LogSearchRuleResourceInner> object if successful.

list

public PagedList list(String filter)

List the Log Search rules within a subscription group.

Parameters:

filter - The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx

Returns:

the PagedList<LogSearchRuleResourceInner> object if successful.

listAsync

public Observable<>> listAsync()

List the Log Search rules within a subscription group.

Overrides:

ScheduledQueryRulesInner.listAsync()

Returns:

the observable to the List<LogSearchRuleResourceInner> object

listAsync

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

List the Log Search rules within a subscription group.

Parameters:

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

Returns:

the ServiceFuture object

listAsync

public Observable<>> listAsync(String filter)

List the Log Search rules within a subscription group.

Parameters:

filter - The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx

Returns:

the observable to the List<LogSearchRuleResourceInner> object

listAsync

public ServiceFuture<>> listAsync(String filter, final ServiceCallback<>> serviceCallback)

List the Log Search rules within a subscription group.

Parameters:

filter - The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

listByResourceGroup

public PagedList listByResourceGroup(String resourceGroupName)

List the Log Search rules within a resource group.

Overrides:

ScheduledQueryRulesInner.listByResourceGroup(String resourceGroupName)

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the PagedList<LogSearchRuleResourceInner> object if successful.

listByResourceGroup

public PagedList listByResourceGroup(String resourceGroupName, String filter)

List the Log Search rules within a resource group.

Parameters:

resourceGroupName - The name of the resource group.
filter - The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx

Returns:

the PagedList<LogSearchRuleResourceInner> object if successful.

listByResourceGroupAsync

public Observable<>> listByResourceGroupAsync(String resourceGroupName)

List the Log Search rules within a resource group.

Overrides:

ScheduledQueryRulesInner.listByResourceGroupAsync(String resourceGroupName)

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the observable to the List<LogSearchRuleResourceInner> object

listByResourceGroupAsync

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

List the Log Search rules within 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

listByResourceGroupAsync

public Observable<>> listByResourceGroupAsync(String resourceGroupName, String filter)

List the Log Search rules within a resource group.

Parameters:

resourceGroupName - The name of the resource group.
filter - The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx

Returns:

the observable to the List<LogSearchRuleResourceInner> object

listByResourceGroupAsync

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

List the Log Search rules within a resource group.

Parameters:

resourceGroupName - The name of the resource group.
filter - The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

listByResourceGroupWithServiceResponseAsync

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

List the Log Search rules within a resource group.

Parameters:

resourceGroupName - The name of the resource group.

Returns:

the observable to the List<LogSearchRuleResourceInner> object

listByResourceGroupWithServiceResponseAsync

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

List the Log Search rules within a resource group.

Parameters:

resourceGroupName - The name of the resource group.
filter - The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx

Returns:

the observable to the List<LogSearchRuleResourceInner> object

listWithServiceResponseAsync

public Observable<><>>> listWithServiceResponseAsync()

List the Log Search rules within a subscription group.

Returns:

the observable to the List<LogSearchRuleResourceInner> object

listWithServiceResponseAsync

public Observable<><>>> listWithServiceResponseAsync(String filter)

List the Log Search rules within a subscription group.

Parameters:

filter - The filter to apply on the operation. For more information please see https://msdn.microsoft.com/en-us/library/azure/dn931934.aspx

Returns:

the observable to the List<LogSearchRuleResourceInner> object

update

public LogSearchRuleResourceInner update(String resourceGroupName, String ruleName, LogSearchRuleResourcePatch parameters)

Update log search Rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
parameters - The parameters of the rule to update.

Returns:

the LogSearchRuleResourceInner 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 ruleName, LogSearchRuleResourcePatch parameters)

Update log search Rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
parameters - The parameters of the rule to update.

Returns:

the observable to the LogSearchRuleResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String resourceGroupName, String ruleName, LogSearchRuleResourcePatch parameters, final ServiceCallback serviceCallback)

Update log search Rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
parameters - The parameters of the rule to update.
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 ruleName, LogSearchRuleResourcePatch parameters)

Update log search Rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
parameters - The parameters of the rule to update.

Returns:

the observable to the LogSearchRuleResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to