Interface MonitorsClient
public interface MonitorsClient
An instance of this class provides access to all the operations defined in MonitorsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MonitorInner>,
MonitorInner> beginCreate
(String resourceGroupName, String monitorName, MonitorInner monitorParameter) Creates a SAP monitor for the specified subscription, resource group, and resource name.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MonitorInner>,
MonitorInner> beginCreate
(String resourceGroupName, String monitorName, MonitorInner monitorParameter, com.azure.core.util.Context context) Creates a SAP monitor for the specified subscription, resource group, and resource name.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OperationStatusResultInner>,
OperationStatusResultInner> beginDelete
(String resourceGroupName, String monitorName) Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OperationStatusResultInner>,
OperationStatusResultInner> beginDelete
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.create
(String resourceGroupName, String monitorName, MonitorInner monitorParameter) Creates a SAP monitor for the specified subscription, resource group, and resource name.create
(String resourceGroupName, String monitorName, MonitorInner monitorParameter, com.azure.core.util.Context context) Creates a SAP monitor for the specified subscription, resource group, and resource name.Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.getByResourceGroup
(String resourceGroupName, String monitorName) Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.com.azure.core.http.rest.Response<MonitorInner>
getByResourceGroupWithResponse
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.com.azure.core.http.rest.PagedIterable<MonitorInner>
list()
Gets a list of SAP monitors in the specified subscription.com.azure.core.http.rest.PagedIterable<MonitorInner>
list
(com.azure.core.util.Context context) Gets a list of SAP monitors in the specified subscription.com.azure.core.http.rest.PagedIterable<MonitorInner>
listByResourceGroup
(String resourceGroupName) Gets a list of SAP monitors in the specified resource group.com.azure.core.http.rest.PagedIterable<MonitorInner>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) Gets a list of SAP monitors in the specified resource group.update
(String resourceGroupName, String monitorName, UpdateMonitorRequest body) Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.com.azure.core.http.rest.Response<MonitorInner>
updateWithResponse
(String resourceGroupName, String monitorName, UpdateMonitorRequest body, com.azure.core.util.Context context) Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.
-
Method Details
-
list
com.azure.core.http.rest.PagedIterable<MonitorInner> list()Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.- Returns:
- a list of SAP monitors in the specified subscription as paginated response with
PagedIterable
. - Throws:
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.
-
list
Gets a list of SAP monitors in the specified subscription. The operations returns various properties of each SAP monitor.- Parameters:
context
- The context to associate with this operation.- Returns:
- a list of SAP monitors in the specified subscription 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.
-
listByResourceGroup
Gets a list of SAP monitors in the specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- a list of SAP monitors in the specified resource group 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.
-
listByResourceGroup
com.azure.core.http.rest.PagedIterable<MonitorInner> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) Gets a list of SAP monitors in the specified resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- a list of SAP monitors in the specified resource group 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.
-
getByResourceGroup
Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.- Returns:
- properties of a SAP monitor for the specified subscription, resource group, and resource 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.
-
getByResourceGroupWithResponse
com.azure.core.http.rest.Response<MonitorInner> getByResourceGroupWithResponse(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Gets properties of a SAP monitor for the specified subscription, resource group, and resource name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.context
- The context to associate with this operation.- Returns:
- properties of a SAP monitor for the specified subscription, resource group, and resource 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MonitorInner>,MonitorInner> beginCreate(String resourceGroupName, String monitorName, MonitorInner monitorParameter) Creates a SAP monitor for the specified subscription, resource group, and resource name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.monitorParameter
- Request body representing a SAP monitor.- Returns:
- the
SyncPoller
for polling of sAP monitor info on Azure (ARM properties and SAP monitor properties). - 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.
-
beginCreate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<MonitorInner>,MonitorInner> beginCreate(String resourceGroupName, String monitorName, MonitorInner monitorParameter, com.azure.core.util.Context context) Creates a SAP monitor for the specified subscription, resource group, and resource name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.monitorParameter
- Request body representing a SAP monitor.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of sAP monitor info on Azure (ARM properties and SAP monitor properties). - 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.
-
create
Creates a SAP monitor for the specified subscription, resource group, and resource name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.monitorParameter
- Request body representing a SAP monitor.- Returns:
- sAP monitor info on Azure (ARM properties and SAP monitor properties).
- 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.
-
create
MonitorInner create(String resourceGroupName, String monitorName, MonitorInner monitorParameter, com.azure.core.util.Context context) Creates a SAP monitor for the specified subscription, resource group, and resource name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.monitorParameter
- Request body representing a SAP monitor.context
- The context to associate with this operation.- Returns:
- sAP monitor info on Azure (ARM properties and SAP monitor properties).
- 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OperationStatusResultInner>,OperationStatusResultInner> beginDelete(String resourceGroupName, String monitorName) Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.- Returns:
- the
SyncPoller
for polling of the current status of an async operation. - 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<OperationStatusResultInner>,OperationStatusResultInner> beginDelete(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the current status of an async operation. - 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.
-
delete
Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.- Returns:
- the current status of an async operation.
- 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.
-
delete
OperationStatusResultInner delete(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Deletes a SAP monitor with the specified subscription, resource group, and SAP monitor name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.context
- The context to associate with this operation.- Returns:
- the current status of an async operation.
- 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.
-
update
Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.body
- The Update SAP workload monitor request body.- Returns:
- sAP monitor info on Azure (ARM properties and SAP monitor properties).
- 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.
-
updateWithResponse
com.azure.core.http.rest.Response<MonitorInner> updateWithResponse(String resourceGroupName, String monitorName, UpdateMonitorRequest body, com.azure.core.util.Context context) Patches the Tags field of a SAP monitor for the specified subscription, resource group, and SAP monitor name.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Name of the SAP monitor resource.body
- The Update SAP workload monitor request body.context
- The context to associate with this operation.- Returns:
- sAP monitor info on Azure (ARM properties and SAP monitor properties) 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.
-