AlertRuleIncidentsInner Class

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

public class AlertRuleIncidentsInner

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

Constructor Summary

Constructor Description
AlertRuleIncidentsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of AlertRuleIncidentsInner.

Method Summary

Modifier and Type Method and Description
IncidentInner get(String resourceGroupName, String ruleName, String incidentName)

Gets an incident associated to an alert rule.

Observable<IncidentInner> getAsync(String resourceGroupName, String ruleName, String incidentName)

Gets an incident associated to an alert rule.

ServiceFuture<IncidentInner> getAsync(String resourceGroupName, String ruleName, String incidentName, final ServiceCallback<IncidentInner> serviceCallback)

Gets an incident associated to an alert rule.

Observable<ServiceResponse<IncidentInner>> getWithServiceResponseAsync(String resourceGroupName, String ruleName, String incidentName)

Gets an incident associated to an alert rule.

List<IncidentInner> listByAlertRule(String resourceGroupName, String ruleName)

Gets a list of incidents associated to an alert rule.

Observable<List<IncidentInner>> listByAlertRuleAsync(String resourceGroupName, String ruleName)

Gets a list of incidents associated to an alert rule.

ServiceFuture<List<IncidentInner>> listByAlertRuleAsync(String resourceGroupName, String ruleName, final ServiceCallback<List<IncidentInner>> serviceCallback)

Gets a list of incidents associated to an alert rule.

Observable<ServiceResponse<List<IncidentInner>>> listByAlertRuleWithServiceResponseAsync(String resourceGroupName, String ruleName)

Gets a list of incidents associated to an alert rule.

Constructor Details

AlertRuleIncidentsInner

public AlertRuleIncidentsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of AlertRuleIncidentsInner.

Parameters:

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

Method Details

get

public IncidentInner get(String resourceGroupName, String ruleName, String incidentName)

Gets an incident associated to an alert rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
incidentName - The name of the incident to retrieve.

Returns:

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

getAsync

public Observable getAsync(String resourceGroupName, String ruleName, String incidentName)

Gets an incident associated to an alert rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
incidentName - The name of the incident to retrieve.

Returns:

the observable to the IncidentInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String resourceGroupName, String ruleName, String incidentName, final ServiceCallback serviceCallback)

Gets an incident associated to an alert rule.

Parameters:

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

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getWithServiceResponseAsync

public Observable<>> getWithServiceResponseAsync(String resourceGroupName, String ruleName, String incidentName)

Gets an incident associated to an alert rule.

Parameters:

resourceGroupName - The name of the resource group.
ruleName - The name of the rule.
incidentName - The name of the incident to retrieve.

Returns:

the observable to the IncidentInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByAlertRule

public List listByAlertRule(String resourceGroupName, String ruleName)

Gets a list of incidents associated to an alert rule.

Parameters:

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

Returns:

the List<IncidentInner> object if successful.

Throws:

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

listByAlertRuleAsync

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

Gets a list of incidents associated to an alert rule.

Parameters:

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

Returns:

the observable to the List<IncidentInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listByAlertRuleAsync

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

Gets a list of incidents associated to an alert 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

listByAlertRuleWithServiceResponseAsync

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

Gets a list of incidents associated to an alert rule.

Parameters:

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

Returns:

the observable to the List<IncidentInner> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to