@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.void useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not. Set realmSpecificEndpointTemplateEnabled to “true” if the user wants to enable use of realm specific endpoint template, otherwise set it to “false”
realmSpecificEndpointTemplateEnabled
- flag to enable the use of realm specific endpoint
templateFuture<AssociateMonitoredResourcesResponse> associateMonitoredResources(AssociateMonitoredResourcesRequest request, AsyncHandler<AssociateMonitoredResourcesRequest,AssociateMonitoredResourcesResponse> handler)
Create an association between two monitored resources. Associations can be created between resources from different compartments as long they are in same tenancy. User should have required access in both the compartments.
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 monitored resource from one compartment 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 with the details and submits a work request for promoting the resource to agent. Once the resource is successfully added to agent, resource state will be marked active.
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)
Delete monitored resource by the given identifier OCID. By default, only the specified resource is deleted. If the parameter ‘isDeleteMembers’ is set to true, then the member resources will be deleted too. If the operation fails partially, the deleted entries will not be rolled back.
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. All the references in DBaaS, DBM and resource service will be deleted as part of this operation.
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)
Get monitored resource for the given identifier OCID.
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 all associated resources recursively up-to a specified level, for the monitored resources of type specified.
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)
Search associations in the given compartment based on the search criteria.
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 the member resources for the given monitored resource identifier OCID.
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)
Gets a list of all monitored resources in a compartment for the given search criteria.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateAndPropagateTagsResponse> updateAndPropagateTags(UpdateAndPropagateTagsRequest request, AsyncHandler<UpdateAndPropagateTagsRequest,UpdateAndPropagateTagsResponse> handler)
Provided tags will be added or updated in the existing list of tags for the affected resources. Resources to be updated are identified based on association types specified. If association types not specified, then tags will be updated only for the resource identified by the given monitored resource identifier OCID.
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)
Update monitored resource by the given identifier OCID. Note that "properties" object, if specified, will entirely replace the existing object, as part this operation.
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.