@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public interface StackMonitoring extends AutoCloseable
Stack Monitoring API. This service client uses CircuitBreakerUtils.DEFAULT_CIRCUIT_BREAKER for all the operations by default if no circuit breaker configuration is defined by the user.
Modifier and Type | Method and Description |
---|---|
AssociateMonitoredResourcesResponse |
associateMonitoredResources(AssociateMonitoredResourcesRequest request)
Create an association between two monitored resources.
|
ChangeMonitoredResourceCompartmentResponse |
changeMonitoredResourceCompartment(ChangeMonitoredResourceCompartmentRequest request)
Moves a monitored resource from one compartment to another.
|
CreateDiscoveryJobResponse |
createDiscoveryJob(CreateDiscoveryJobRequest request)
API to create discovery Job and submit discovery Details to agent.
|
CreateMonitoredResourceResponse |
createMonitoredResource(CreateMonitoredResourceRequest request)
Creates a new monitored resource for the given resource type with the details and submits a
work request for promoting the resource to agent.
|
DeleteDiscoveryJobResponse |
deleteDiscoveryJob(DeleteDiscoveryJobRequest request)
Deletes a DiscoveryJob by identifier
|
DeleteMonitoredResourceResponse |
deleteMonitoredResource(DeleteMonitoredResourceRequest request)
Delete monitored resource by the given identifier
OCID.
|
DisableExternalDatabaseResponse |
disableExternalDatabase(DisableExternalDatabaseRequest request)
Disable external database resource monitoring.
|
DisassociateMonitoredResourcesResponse |
disassociateMonitoredResources(DisassociateMonitoredResourcesRequest request)
Removes associations between two monitored resources.
|
GetDiscoveryJobResponse |
getDiscoveryJob(GetDiscoveryJobRequest request)
API to get the details of discovery Job by identifier.
|
String |
getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
|
GetMonitoredResourceResponse |
getMonitoredResource(GetMonitoredResourceRequest request)
Get monitored resource for the given identifier
OCID.
|
StackMonitoringPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data.
|
StackMonitoringWaiters |
getWaiters()
Gets the pre-configured waiters available for resources for this service.
|
GetWorkRequestResponse |
getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request with the given ID.
|
ListDiscoveryJobLogsResponse |
listDiscoveryJobLogs(ListDiscoveryJobLogsRequest request)
API to get all the logs of a Discovery Job.
|
ListDiscoveryJobsResponse |
listDiscoveryJobs(ListDiscoveryJobsRequest request)
API to get the details of all Discovery Jobs.
|
ListWorkRequestErrorsResponse |
listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Return a (paginated) list of errors for a given work request.
|
ListWorkRequestLogsResponse |
listWorkRequestLogs(ListWorkRequestLogsRequest request)
Return a (paginated) list of logs for a given work request.
|
ListWorkRequestsResponse |
listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in a compartment.
|
void |
refreshClient()
Rebuilds the client from scratch.
|
SearchAssociatedResourcesResponse |
searchAssociatedResources(SearchAssociatedResourcesRequest request)
List all associated resources recursively up-to a specified level, for the monitored
resources of type specified.
|
SearchMonitoredResourceAssociationsResponse |
searchMonitoredResourceAssociations(SearchMonitoredResourceAssociationsRequest request)
Search associations in the given compartment based on the search criteria.
|
SearchMonitoredResourceMembersResponse |
searchMonitoredResourceMembers(SearchMonitoredResourceMembersRequest request)
List the member resources for the given monitored resource identifier
OCID.
|
SearchMonitoredResourcesResponse |
searchMonitoredResources(SearchMonitoredResourcesRequest request)
Gets a list of all monitored resources in a compartment for the given search criteria.
|
void |
setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
|
void |
setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
|
void |
setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
|
UpdateAndPropagateTagsResponse |
updateAndPropagateTags(UpdateAndPropagateTagsRequest request)
Provided tags will be added or updated in the existing list of tags for the affected
resources.
|
UpdateMonitoredResourceResponse |
updateMonitoredResource(UpdateMonitoredResourceRequest request)
Update monitored resource by the given identifier
OCID.
|
void |
useRealmSpecificEndpointTemplate(boolean realmSpecificEndpointTemplateEnabled)
Determines whether realm specific endpoint should be used or not.
|
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 service.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
templateAssociateMonitoredResourcesResponse associateMonitoredResources(AssociateMonitoredResourcesRequest request)
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 sendBmcException
- when an error occurs. This operation will not retry by default, users
can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to
enable retries for it. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use AssociateMonitoredResources API.
ChangeMonitoredResourceCompartmentResponse changeMonitoredResourceCompartment(ChangeMonitoredResourceCompartmentRequest request)
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 sendBmcException
- when an error occurs. This operation will not retry by default, users
can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to
enable retries for it. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use ChangeMonitoredResourceCompartment API.
CreateDiscoveryJobResponse createDiscoveryJob(CreateDiscoveryJobRequest request)
API to create discovery Job and submit discovery Details to agent.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation will not retry by default, users
can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to
enable retries for it. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use CreateDiscoveryJob API.
CreateMonitoredResourceResponse createMonitoredResource(CreateMonitoredResourceRequest request)
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 sendBmcException
- when an error occurs. This operation will not retry by default, users
can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to
enable retries for it. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use CreateMonitoredResource API.
DeleteDiscoveryJobResponse deleteDiscoveryJob(DeleteDiscoveryJobRequest request)
Deletes a DiscoveryJob by identifier
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use DeleteDiscoveryJob API.
DeleteMonitoredResourceResponse deleteMonitoredResource(DeleteMonitoredResourceRequest request)
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 sendBmcException
- when an error occurs. This operation will not retry by default, users
can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to
enable retries for it. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use DeleteMonitoredResource API.
DisableExternalDatabaseResponse disableExternalDatabase(DisableExternalDatabaseRequest request)
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 sendBmcException
- when an error occurs. This operation will not retry by default, users
can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to
enable retries for it. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use DisableExternalDatabase API.
DisassociateMonitoredResourcesResponse disassociateMonitoredResources(DisassociateMonitoredResourcesRequest request)
Removes associations between two monitored resources.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation will not retry by default, users
can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to
enable retries for it. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use DisassociateMonitoredResources API.
GetDiscoveryJobResponse getDiscoveryJob(GetDiscoveryJobRequest request)
API to get the details of discovery Job by identifier.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use GetDiscoveryJob API.
GetMonitoredResourceResponse getMonitoredResource(GetMonitoredResourceRequest request)
Get monitored resource for the given identifier OCID.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use GetMonitoredResource API.
GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
Gets the status of the work request with the given ID.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use GetWorkRequest API.
ListDiscoveryJobLogsResponse listDiscoveryJobLogs(ListDiscoveryJobLogsRequest request)
API to get all the logs of a Discovery Job.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use ListDiscoveryJobLogs API.
ListDiscoveryJobsResponse listDiscoveryJobs(ListDiscoveryJobsRequest request)
API to get the details of all Discovery Jobs.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use ListDiscoveryJobs API.
ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
Return a (paginated) list of errors for a given work request.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use ListWorkRequestErrors API.
ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
Return a (paginated) list of logs for a given work request.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use ListWorkRequestLogs API.
ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
Lists the work requests in a compartment.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use ListWorkRequests API.
SearchAssociatedResourcesResponse searchAssociatedResources(SearchAssociatedResourcesRequest request)
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 sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use SearchAssociatedResources API.
SearchMonitoredResourceAssociationsResponse searchMonitoredResourceAssociations(SearchMonitoredResourceAssociationsRequest request)
Search associations in the given compartment based on the search criteria.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use SearchMonitoredResourceAssociations API.
SearchMonitoredResourceMembersResponse searchMonitoredResourceMembers(SearchMonitoredResourceMembersRequest request)
List the member resources for the given monitored resource identifier OCID.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use SearchMonitoredResourceMembers API.
SearchMonitoredResourcesResponse searchMonitoredResources(SearchMonitoredResourcesRequest request)
Gets a list of all monitored resources in a compartment for the given search criteria.
request
- The request object containing the details to sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use SearchMonitoredResources API.
UpdateAndPropagateTagsResponse updateAndPropagateTags(UpdateAndPropagateTagsRequest request)
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 sendBmcException
- when an error occurs. This operation uses
RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION as default if no retry strategy is
provided. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use UpdateAndPropagateTags API.
UpdateMonitoredResourceResponse updateMonitoredResource(UpdateMonitoredResourceRequest request)
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 sendBmcException
- when an error occurs. This operation will not retry by default, users
can also use RetryConfiguration.SDK_DEFAULT_RETRY_CONFIGURATION provided by the SDK to
enable retries for it. The specifics of the default retry strategy are described here
https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/javasdkconcepts.htm#javasdkconcepts_topic_Retries
Example: Click here to see how to use UpdateMonitoredResource API.
StackMonitoringWaiters getWaiters()
Gets the pre-configured waiters available for resources for this service.
StackMonitoringPaginators getPaginators()
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data. These paginators provide an Iterable
interface so that service responses, or resources/records, can be iterated through without
having to manually deal with pagination and page tokens.
Copyright © 2016–2023. All rights reserved.