Interface Monitors
public interface Monitors
Resource collection API of Monitors.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new MonitorResource resource.void
Delete a MonitorResource.void
deleteById
(String id) Delete a MonitorResource.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Delete a MonitorResource.void
deleteByResourceGroup
(String resourceGroupName, String monitorName) Delete a MonitorResource.getAccountCredentials
(String resourceGroupName, String monitorName) Gets the user account credentials for a Monitor.com.azure.core.http.rest.Response<AccountInfoSecure>
getAccountCredentialsWithResponse
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Gets the user account credentials for a Monitor.Get a MonitorResource.com.azure.core.http.rest.Response<MonitorResource>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Get a MonitorResource.getByResourceGroup
(String resourceGroupName, String monitorName) Get a MonitorResource.com.azure.core.http.rest.Response<MonitorResource>
getByResourceGroupWithResponse
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Get a MonitorResource.getSsoDetails
(String resourceGroupName, String monitorName) Gets the SSO configuration details from the partner.com.azure.core.http.rest.Response<SsoDetailsResponse>
getSsoDetailsWithResponse
(String resourceGroupName, String monitorName, SsoDetailsRequest request, com.azure.core.util.Context context) Gets the SSO configuration details from the partner.getVMHostPayload
(String resourceGroupName, String monitorName) Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a VM.com.azure.core.http.rest.Response<VMExtensionPayload>
getVMHostPayloadWithResponse
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a VM.com.azure.core.http.rest.PagedIterable<MonitorResource>
list()
List all MonitorResource by subscriptionId.com.azure.core.http.rest.PagedIterable<MonitorResource>
list
(com.azure.core.util.Context context) List all MonitorResource by subscriptionId.com.azure.core.http.rest.PagedIterable<AppServiceInfo>
listAppServices
(String resourceGroupName, String monitorName) Gets list of App Services with Dynatrace PaaS OneAgent enabled.com.azure.core.http.rest.PagedIterable<AppServiceInfo>
listAppServices
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Gets list of App Services with Dynatrace PaaS OneAgent enabled.com.azure.core.http.rest.PagedIterable<MonitorResource>
listByResourceGroup
(String resourceGroupName) List MonitorResource resources by resource group.com.azure.core.http.rest.PagedIterable<MonitorResource>
listByResourceGroup
(String resourceGroupName, com.azure.core.util.Context context) List MonitorResource resources by resource group.com.azure.core.http.rest.PagedIterable<VMInfo>
List the compute resources currently being monitored by the Dynatrace resource.com.azure.core.http.rest.PagedIterable<VMInfo>
List the compute resources currently being monitored by the Dynatrace resource.com.azure.core.http.rest.PagedIterable<LinkableEnvironmentResponse>
listLinkableEnvironments
(String resourceGroupName, String monitorName, LinkableEnvironmentRequest request) Gets all the Dynatrace environments that a user can link a azure resource to.com.azure.core.http.rest.PagedIterable<LinkableEnvironmentResponse>
listLinkableEnvironments
(String resourceGroupName, String monitorName, LinkableEnvironmentRequest request, com.azure.core.util.Context context) Gets all the Dynatrace environments that a user can link a azure resource to.com.azure.core.http.rest.PagedIterable<MonitoredResource>
listMonitoredResources
(String resourceGroupName, String monitorName) List the resources currently being monitored by the Dynatrace monitor resource.com.azure.core.http.rest.PagedIterable<MonitoredResource>
listMonitoredResources
(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the resources currently being monitored by the Dynatrace monitor resource.
-
Method Details
-
getAccountCredentials
Gets the user account credentials for a Monitor.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the user account credentials for a Monitor.
- 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.
-
getAccountCredentialsWithResponse
com.azure.core.http.rest.Response<AccountInfoSecure> getAccountCredentialsWithResponse(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Gets the user account credentials for a Monitor.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- the user account credentials for a Monitor 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.
-
listMonitoredResources
com.azure.core.http.rest.PagedIterable<MonitoredResource> listMonitoredResources(String resourceGroupName, String monitorName) List the resources currently being monitored by the Dynatrace monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- list of all the resources being monitored by Dynatrace monitor resource 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.
-
listMonitoredResources
com.azure.core.http.rest.PagedIterable<MonitoredResource> listMonitoredResources(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the resources currently being monitored by the Dynatrace monitor resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- list of all the resources being monitored by Dynatrace monitor resource 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.
-
getVMHostPayload
Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a VM.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- response of payload to be passed while installing VM agent.
- 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.
-
getVMHostPayloadWithResponse
com.azure.core.http.rest.Response<VMExtensionPayload> getVMHostPayloadWithResponse(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a VM.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- response of payload to be passed while installing VM agent 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.
-
getByResourceGroup
Get a MonitorResource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- a MonitorResource.
- 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<MonitorResource> getByResourceGroupWithResponse(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Get a MonitorResource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- a MonitorResource 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.
-
deleteByResourceGroup
Delete a MonitorResource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor 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.
-
delete
Delete a MonitorResource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this 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.
-
list
com.azure.core.http.rest.PagedIterable<MonitorResource> list()List all MonitorResource by subscriptionId.- Returns:
- the response of a MonitorResource list operation 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
List all MonitorResource by subscriptionId.- Parameters:
context
- The context to associate with this operation.- Returns:
- the response of a MonitorResource list operation 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<MonitorResource> listByResourceGroup(String resourceGroupName) List MonitorResource resources by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.- Returns:
- the response of a MonitorResource list operation 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<MonitorResource> listByResourceGroup(String resourceGroupName, com.azure.core.util.Context context) List MonitorResource resources by resource group.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.context
- The context to associate with this operation.- Returns:
- the response of a MonitorResource list operation 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.
-
listHosts
com.azure.core.http.rest.PagedIterable<VMInfo> listHosts(String resourceGroupName, String monitorName) List the compute resources currently being monitored by the Dynatrace resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- response of a list VM Host Operation 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.
-
listHosts
com.azure.core.http.rest.PagedIterable<VMInfo> listHosts(String resourceGroupName, String monitorName, com.azure.core.util.Context context) List the compute resources currently being monitored by the Dynatrace resource.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- response of a list VM Host Operation 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.
-
listAppServices
com.azure.core.http.rest.PagedIterable<AppServiceInfo> listAppServices(String resourceGroupName, String monitorName) Gets list of App Services with Dynatrace PaaS OneAgent enabled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- list of App Services with Dynatrace PaaS OneAgent enabled 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.
-
listAppServices
com.azure.core.http.rest.PagedIterable<AppServiceInfo> listAppServices(String resourceGroupName, String monitorName, com.azure.core.util.Context context) Gets list of App Services with Dynatrace PaaS OneAgent enabled.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.context
- The context to associate with this operation.- Returns:
- list of App Services with Dynatrace PaaS OneAgent enabled 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.
-
getSsoDetails
Gets the SSO configuration details from the partner.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.- Returns:
- the SSO configuration details from the partner.
- 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.
-
getSsoDetailsWithResponse
com.azure.core.http.rest.Response<SsoDetailsResponse> getSsoDetailsWithResponse(String resourceGroupName, String monitorName, SsoDetailsRequest request, com.azure.core.util.Context context) Gets the SSO configuration details from the partner.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.request
- The details of the get sso details request.context
- The context to associate with this operation.- Returns:
- the SSO configuration details from the partner 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.
-
listLinkableEnvironments
com.azure.core.http.rest.PagedIterable<LinkableEnvironmentResponse> listLinkableEnvironments(String resourceGroupName, String monitorName, LinkableEnvironmentRequest request) Gets all the Dynatrace environments that a user can link a azure resource to.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.request
- The details of the linkable environment request.- Returns:
- all the Dynatrace environments that a user can link a azure resource to 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.
-
listLinkableEnvironments
com.azure.core.http.rest.PagedIterable<LinkableEnvironmentResponse> listLinkableEnvironments(String resourceGroupName, String monitorName, LinkableEnvironmentRequest request, com.azure.core.util.Context context) Gets all the Dynatrace environments that a user can link a azure resource to.- Parameters:
resourceGroupName
- The name of the resource group. The name is case insensitive.monitorName
- Monitor resource name.request
- The details of the linkable environment request.context
- The context to associate with this operation.- Returns:
- all the Dynatrace environments that a user can link a azure resource to 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.
-
getById
Get a MonitorResource.- Parameters:
id
- the resource ID.- Returns:
- a MonitorResource 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.
-
getByIdWithResponse
com.azure.core.http.rest.Response<MonitorResource> getByIdWithResponse(String id, com.azure.core.util.Context context) Get a MonitorResource.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a MonitorResource 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.
-
deleteById
Delete a MonitorResource.- Parameters:
id
- the resource ID.- 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.
-
deleteByIdWithResponse
Delete a MonitorResource.- Parameters:
id
- the resource ID.context
- The context to associate with this 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.
-
define
Begins definition for a new MonitorResource resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new MonitorResource definition.
-