@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public interface StackMonitoringAsync extends AutoCloseable
Stack Monitoring API.
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint
after resolving the
endpoint. If the service is not available in this region, however, an
IllegalArgumentException will be raised.
region
- The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call setRegion
.
If no known Region could be determined, it will create an endpoint based on the default
endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint
.
regionId
- The public region ID.Future<AssociateMonitoredResourcesResponse> associateMonitoredResources(AssociateMonitoredResourcesRequest request, AsyncHandler<AssociateMonitoredResourcesRequest,AssociateMonitoredResourcesResponse> handler)
Create an association between two monitored resources.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ChangeMonitoredResourceCompartmentResponse> changeMonitoredResourceCompartment(ChangeMonitoredResourceCompartmentRequest request, AsyncHandler<ChangeMonitoredResourceCompartmentRequest,ChangeMonitoredResourceCompartmentResponse> handler)
Moves a MonitoredResource resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateDiscoveryJobResponse> createDiscoveryJob(CreateDiscoveryJobRequest request, AsyncHandler<CreateDiscoveryJobRequest,CreateDiscoveryJobResponse> handler)
API to create discovery Job and submit discovery Details to agent.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateMonitoredResourceResponse> createMonitoredResource(CreateMonitoredResourceRequest request, AsyncHandler<CreateMonitoredResourceRequest,CreateMonitoredResourceResponse> handler)
Creates a new monitored resource for the given resource type
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteDiscoveryJobResponse> deleteDiscoveryJob(DeleteDiscoveryJobRequest request, AsyncHandler<DeleteDiscoveryJobRequest,DeleteDiscoveryJobResponse> handler)
Deletes a DiscoveryJob by identifier
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteMonitoredResourceResponse> deleteMonitoredResource(DeleteMonitoredResourceRequest request, AsyncHandler<DeleteMonitoredResourceRequest,DeleteMonitoredResourceResponse> handler)
Deletes a monitored resource by identifier
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DisableExternalDatabaseResponse> disableExternalDatabase(DisableExternalDatabaseRequest request, AsyncHandler<DisableExternalDatabaseRequest,DisableExternalDatabaseResponse> handler)
Disable external database resource monitoring.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DisassociateMonitoredResourcesResponse> disassociateMonitoredResources(DisassociateMonitoredResourcesRequest request, AsyncHandler<DisassociateMonitoredResourcesRequest,DisassociateMonitoredResourcesResponse> handler)
Removes associations between two monitored resources.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetDiscoveryJobResponse> getDiscoveryJob(GetDiscoveryJobRequest request, AsyncHandler<GetDiscoveryJobRequest,GetDiscoveryJobResponse> handler)
API to get the details of discovery Job by identifier.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetMonitoredResourceResponse> getMonitoredResource(GetMonitoredResourceRequest request, AsyncHandler<GetMonitoredResourceRequest,GetMonitoredResourceResponse> handler)
Gets a monitored resource by identifier
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Gets the status of the work request with the given ID.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListDiscoveryJobLogsResponse> listDiscoveryJobLogs(ListDiscoveryJobLogsRequest request, AsyncHandler<ListDiscoveryJobLogsRequest,ListDiscoveryJobLogsResponse> handler)
API to get all the logs of a Discovery Job.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListDiscoveryJobsResponse> listDiscoveryJobs(ListDiscoveryJobsRequest request, AsyncHandler<ListDiscoveryJobsRequest,ListDiscoveryJobsResponse> handler)
API to get the details of all Discovery Jobs.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Return a (paginated) list of errors for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Return a (paginated) list of logs for a given work request.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the work requests in a compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SearchAssociatedResourcesResponse> searchAssociatedResources(SearchAssociatedResourcesRequest request, AsyncHandler<SearchAssociatedResourcesRequest,SearchAssociatedResourcesResponse> handler)
List associated monitored resources.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SearchMonitoredResourceAssociationsResponse> searchMonitoredResourceAssociations(SearchMonitoredResourceAssociationsRequest request, AsyncHandler<SearchMonitoredResourceAssociationsRequest,SearchMonitoredResourceAssociationsResponse> handler)
Returns a list of monitored resource associations.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SearchMonitoredResourceMembersResponse> searchMonitoredResourceMembers(SearchMonitoredResourceMembersRequest request, AsyncHandler<SearchMonitoredResourceMembersRequest,SearchMonitoredResourceMembersResponse> handler)
List resources which are members of the given monitored resource
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SearchMonitoredResourcesResponse> searchMonitoredResources(SearchMonitoredResourcesRequest request, AsyncHandler<SearchMonitoredResourcesRequest,SearchMonitoredResourcesResponse> handler)
Returns a list of monitored resources.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateMonitoredResourceResponse> updateMonitoredResource(UpdateMonitoredResourceRequest request, AsyncHandler<UpdateMonitoredResourceRequest,UpdateMonitoredResourceResponse> handler)
Updates the Monitored Resource
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2023. All rights reserved.