MetricAlertsStatusInner Class

  • java.lang.Object
    • com.microsoft.azure.management.monitor.implementation.MetricAlertsStatusInner

public class MetricAlertsStatusInner

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

Constructor Summary

Constructor Description
MetricAlertsStatusInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of MetricAlertsStatusInner.

Method Summary

Modifier and Type Method and Description
MetricAlertStatusCollectionInner list(String resourceGroupName, String ruleName)

Retrieve an alert rule status.

Observable<MetricAlertStatusCollectionInner> listAsync(String resourceGroupName, String ruleName)

Retrieve an alert rule status.

ServiceFuture<MetricAlertStatusCollectionInner> listAsync(String resourceGroupName, String ruleName, final ServiceCallback<MetricAlertStatusCollectionInner> serviceCallback)

Retrieve an alert rule status.

MetricAlertStatusCollectionInner listByName(String resourceGroupName, String ruleName, String statusName)

Retrieve an alert rule status.

Observable<MetricAlertStatusCollectionInner> listByNameAsync(String resourceGroupName, String ruleName, String statusName)

Retrieve an alert rule status.

ServiceFuture<MetricAlertStatusCollectionInner> listByNameAsync(String resourceGroupName, String ruleName, String statusName, final ServiceCallback<MetricAlertStatusCollectionInner> serviceCallback)

Retrieve an alert rule status.

Observable<ServiceResponse<MetricAlertStatusCollectionInner>> listByNameWithServiceResponseAsync(String resourceGroupName, String ruleName, String statusName)

Retrieve an alert rule status.

Observable<ServiceResponse<MetricAlertStatusCollectionInner>> listWithServiceResponseAsync(String resourceGroupName, String ruleName)

Retrieve an alert rule status.

Constructor Details

MetricAlertsStatusInner

public MetricAlertsStatusInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of MetricAlertsStatusInner.

Parameters:

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

Method Details

list

public MetricAlertStatusCollectionInner list(String resourceGroupName, String ruleName)

Retrieve an alert rule status.

Parameters:

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

Returns:

the MetricAlertStatusCollectionInner 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

listAsync

public Observable listAsync(String resourceGroupName, String ruleName)

Retrieve an alert rule status.

Parameters:

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

Returns:

the observable to the MetricAlertStatusCollectionInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

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

Retrieve an alert rule status.

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

listByName

public MetricAlertStatusCollectionInner listByName(String resourceGroupName, String ruleName, String statusName)

Retrieve an alert rule status.

Parameters:

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

Returns:

the MetricAlertStatusCollectionInner 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

listByNameAsync

public Observable listByNameAsync(String resourceGroupName, String ruleName, String statusName)

Retrieve an alert rule status.

Parameters:

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

Returns:

the observable to the MetricAlertStatusCollectionInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByNameAsync

public ServiceFuture listByNameAsync(String resourceGroupName, String ruleName, String statusName, final ServiceCallback serviceCallback)

Retrieve an alert rule status.

Parameters:

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

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByNameWithServiceResponseAsync

public Observable<>> listByNameWithServiceResponseAsync(String resourceGroupName, String ruleName, String statusName)

Retrieve an alert rule status.

Parameters:

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

Returns:

the observable to the MetricAlertStatusCollectionInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

public Observable<>> listWithServiceResponseAsync(String resourceGroupName, String ruleName)

Retrieve an alert rule status.

Parameters:

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

Returns:

the observable to the MetricAlertStatusCollectionInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to