Interface AlertsClient
public interface AlertsClient
An instance of this class provides access to all the operations defined in AlertsClient.
-
Method Summary
Modifier and TypeMethodDescriptionGets an alert by name.com.azure.core.http.rest.Response<AlertInner>
getWithResponse
(String deviceName, String name, String resourceGroupName, com.azure.core.util.Context context) Gets an alert by name.com.azure.core.http.rest.PagedIterable<AlertInner>
listByDataBoxEdgeDevice
(String deviceName, String resourceGroupName) Gets all the alerts for a Data Box Edge/Data Box Gateway device.com.azure.core.http.rest.PagedIterable<AlertInner>
listByDataBoxEdgeDevice
(String deviceName, String resourceGroupName, com.azure.core.util.Context context) Gets all the alerts for a Data Box Edge/Data Box Gateway device.
-
Method Details
-
listByDataBoxEdgeDevice
com.azure.core.http.rest.PagedIterable<AlertInner> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName) Gets all the alerts for a Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.- Returns:
- all the alerts for a Data Box Edge/Data Box Gateway device as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByDataBoxEdgeDevice
com.azure.core.http.rest.PagedIterable<AlertInner> listByDataBoxEdgeDevice(String deviceName, String resourceGroupName, com.azure.core.util.Context context) Gets all the alerts for a Data Box Edge/Data Box Gateway device.- Parameters:
deviceName
- The device name.resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- all the alerts for a Data Box Edge/Data Box Gateway device as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getWithResponse
com.azure.core.http.rest.Response<AlertInner> getWithResponse(String deviceName, String name, String resourceGroupName, com.azure.core.util.Context context) Gets an alert by name.- Parameters:
deviceName
- The device name.name
- The alert name.resourceGroupName
- The resource group name.context
- The context to associate with this operation.- Returns:
- an alert by name along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets an alert by name.- Parameters:
deviceName
- The device name.name
- The alert name.resourceGroupName
- The resource group name.- Returns:
- an alert by name.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-