@Generated(value="OracleSDKGenerator", comments="API Version: 20210330") public class StackMonitoringClient extends BaseSyncClient implements StackMonitoring
Modifier and Type | Class and Description |
---|---|
static class |
StackMonitoringClient.Builder
Builder class for this client.
|
Modifier and Type | Field and Description |
---|---|
static Service |
SERVICE
Service instance for StackMonitoring.
|
Constructor and Description |
---|
StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory)
Deprecated.
Use the
builder instead. |
StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators)
Deprecated.
Use the
builder instead. |
StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint)
Deprecated.
Use the
builder instead. |
StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator,
RequestSignerFactory defaultRequestSignerFactory,
Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories,
List<ClientConfigurator> additionalClientConfigurators,
String endpoint,
ExecutorService executorService)
Deprecated.
Use the
builder instead. |
StackMonitoringClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.
Use the
builder instead. |
StackMonitoringClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration)
Deprecated.
Use the
builder instead. |
StackMonitoringClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider,
ClientConfiguration configuration,
ClientConfigurator clientConfigurator)
Deprecated.
Use the
builder instead. |
Modifier and Type | Method and Description |
---|---|
AssociateMonitoredResourcesResponse |
associateMonitoredResources(AssociateMonitoredResourcesRequest request)
Create an association between two monitored resources.
|
static StackMonitoringClient.Builder |
builder()
Create a builder for this client.
|
ChangeMonitoredResourceCompartmentResponse |
changeMonitoredResourceCompartment(ChangeMonitoredResourceCompartmentRequest request)
Moves a monitored resource from one compartment to another.
|
void |
close() |
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.
|
protected ClientConfigurator |
getDefaultConfigurator() |
GetDiscoveryJobResponse |
getDiscoveryJob(GetDiscoveryJobRequest request)
API to get the details of discovery Job by identifier.
|
String |
getEndpoint() |
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 |
populateServiceParametersInEndpoint(String endpoint,
Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base
endpoint.
|
void |
refreshClient()
Rebuild the backing
HttpClient . |
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) |
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.
|
void |
updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.
|
UpdateMonitoredResourceResponse |
updateMonitoredResource(UpdateMonitoredResourceRequest request)
Update monitored resource by the given identifier
OCID.
|
void |
useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.
|
clientCall
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
close
public static final Service SERVICE
Service instance for StackMonitoring.
@Deprecated public StackMonitoringClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see StackMonitoringClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)@Deprecated public StackMonitoringClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see StackMonitoringClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
@Deprecated public StackMonitoringClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see StackMonitoringClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
@Deprecated public StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see StackMonitoringClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
@Deprecated public StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see StackMonitoringClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
@Deprecated public StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see StackMonitoringClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
@Deprecated public StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see StackMonitoringClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
@Deprecated public StackMonitoringClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
builder
instead.Create a new client instance.
authenticationDetailsProvider
- The authentication details (see StackMonitoringClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider)
)configuration
- ClientBuilderBase.configuration
clientConfigurator
- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
defaultRequestSignerFactory
- ClientBuilderBase.requestSignerFactory
additionalClientConfigurators
- ClientBuilderBase.additionalClientConfigurators
endpoint
- ClientBuilderBase.endpoint(java.lang.String)
signingStrategyRequestSignerFactories
- ClientBuilderBase.signingStrategyRequestSignerFactories
executorService
- StackMonitoringClient.Builder.executorService
public static StackMonitoringClient.Builder builder()
Create a builder for this client.
public void setRegion(Region region)
StackMonitoring
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.
setRegion
in interface StackMonitoring
region
- The region of the service.public void setRegion(String regionId)
StackMonitoring
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
.
setRegion
in interface StackMonitoring
regionId
- The public region ID.public AssociateMonitoredResourcesResponse associateMonitoredResources(AssociateMonitoredResourcesRequest request)
StackMonitoring
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.
associateMonitoredResources
in interface StackMonitoring
request
- The request object containing the details to sendpublic ChangeMonitoredResourceCompartmentResponse changeMonitoredResourceCompartment(ChangeMonitoredResourceCompartmentRequest request)
StackMonitoring
Moves a monitored resource from one compartment to another. When provided, If-Match is checked against ETag values of the resource.
changeMonitoredResourceCompartment
in interface StackMonitoring
request
- The request object containing the details to sendpublic CreateDiscoveryJobResponse createDiscoveryJob(CreateDiscoveryJobRequest request)
StackMonitoring
API to create discovery Job and submit discovery Details to agent.
createDiscoveryJob
in interface StackMonitoring
request
- The request object containing the details to sendpublic CreateMonitoredResourceResponse createMonitoredResource(CreateMonitoredResourceRequest request)
StackMonitoring
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.
createMonitoredResource
in interface StackMonitoring
request
- The request object containing the details to sendpublic DeleteDiscoveryJobResponse deleteDiscoveryJob(DeleteDiscoveryJobRequest request)
StackMonitoring
Deletes a DiscoveryJob by identifier
deleteDiscoveryJob
in interface StackMonitoring
request
- The request object containing the details to sendpublic DeleteMonitoredResourceResponse deleteMonitoredResource(DeleteMonitoredResourceRequest request)
StackMonitoring
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.
deleteMonitoredResource
in interface StackMonitoring
request
- The request object containing the details to sendpublic DisableExternalDatabaseResponse disableExternalDatabase(DisableExternalDatabaseRequest request)
StackMonitoring
Disable external database resource monitoring. All the references in DBaaS, DBM and resource service will be deleted as part of this operation.
disableExternalDatabase
in interface StackMonitoring
request
- The request object containing the details to sendpublic DisassociateMonitoredResourcesResponse disassociateMonitoredResources(DisassociateMonitoredResourcesRequest request)
StackMonitoring
Removes associations between two monitored resources.
disassociateMonitoredResources
in interface StackMonitoring
request
- The request object containing the details to sendpublic GetDiscoveryJobResponse getDiscoveryJob(GetDiscoveryJobRequest request)
StackMonitoring
API to get the details of discovery Job by identifier.
getDiscoveryJob
in interface StackMonitoring
request
- The request object containing the details to sendpublic GetMonitoredResourceResponse getMonitoredResource(GetMonitoredResourceRequest request)
StackMonitoring
Get monitored resource for the given identifier OCID.
getMonitoredResource
in interface StackMonitoring
request
- The request object containing the details to sendpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request)
StackMonitoring
Gets the status of the work request with the given ID.
getWorkRequest
in interface StackMonitoring
request
- The request object containing the details to sendpublic ListDiscoveryJobLogsResponse listDiscoveryJobLogs(ListDiscoveryJobLogsRequest request)
StackMonitoring
API to get all the logs of a Discovery Job.
listDiscoveryJobLogs
in interface StackMonitoring
request
- The request object containing the details to sendpublic ListDiscoveryJobsResponse listDiscoveryJobs(ListDiscoveryJobsRequest request)
StackMonitoring
API to get the details of all Discovery Jobs.
listDiscoveryJobs
in interface StackMonitoring
request
- The request object containing the details to sendpublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request)
StackMonitoring
Return a (paginated) list of errors for a given work request.
listWorkRequestErrors
in interface StackMonitoring
request
- The request object containing the details to sendpublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request)
StackMonitoring
Return a (paginated) list of logs for a given work request.
listWorkRequestLogs
in interface StackMonitoring
request
- The request object containing the details to sendpublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request)
StackMonitoring
Lists the work requests in a compartment.
listWorkRequests
in interface StackMonitoring
request
- The request object containing the details to sendpublic SearchAssociatedResourcesResponse searchAssociatedResources(SearchAssociatedResourcesRequest request)
StackMonitoring
List all associated resources recursively up-to a specified level, for the monitored resources of type specified.
searchAssociatedResources
in interface StackMonitoring
request
- The request object containing the details to sendpublic SearchMonitoredResourceAssociationsResponse searchMonitoredResourceAssociations(SearchMonitoredResourceAssociationsRequest request)
StackMonitoring
Search associations in the given compartment based on the search criteria.
searchMonitoredResourceAssociations
in interface StackMonitoring
request
- The request object containing the details to sendpublic SearchMonitoredResourceMembersResponse searchMonitoredResourceMembers(SearchMonitoredResourceMembersRequest request)
StackMonitoring
List the member resources for the given monitored resource identifier OCID.
searchMonitoredResourceMembers
in interface StackMonitoring
request
- The request object containing the details to sendpublic SearchMonitoredResourcesResponse searchMonitoredResources(SearchMonitoredResourcesRequest request)
StackMonitoring
Gets a list of all monitored resources in a compartment for the given search criteria.
searchMonitoredResources
in interface StackMonitoring
request
- The request object containing the details to sendpublic UpdateAndPropagateTagsResponse updateAndPropagateTags(UpdateAndPropagateTagsRequest request)
StackMonitoring
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.
updateAndPropagateTags
in interface StackMonitoring
request
- The request object containing the details to sendpublic UpdateMonitoredResourceResponse updateMonitoredResource(UpdateMonitoredResourceRequest request)
StackMonitoring
Update monitored resource by the given identifier OCID. Note that "properties" object, if specified, will entirely replace the existing object, as part this operation.
updateMonitoredResource
in interface StackMonitoring
request
- The request object containing the details to sendpublic StackMonitoringWaiters getWaiters()
StackMonitoring
Gets the pre-configured waiters available for resources for this service.
getWaiters
in interface StackMonitoring
public StackMonitoringPaginators getPaginators()
StackMonitoring
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.
getPaginators
in interface StackMonitoring
protected ClientConfigurator getDefaultConfigurator()
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
useOfRealmSpecificEndpointTemplateEnabled
- This flag can be set to true or false to
enable or disable the use of realm-specific endpoint template respectivelypublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
endpoint
- The endpoint template in userequiredParametersMap
- Map of parameter name as key and value set in request path or
query parameter as valuepublic final void updateBaseEndpoint(String endpoint)
endpoint
- The updated endpoint to usepublic final void setEndpoint(String endpoint)
public final String getEndpoint()
public final void refreshClient()
HttpClient
. This will call ClientConfigurator
s again, and
can be used to e.g. refresh the SSL certificate.public final void close()
close
in interface AutoCloseable
Copyright © 2016–2023. All rights reserved.