Class HealthChecksClient
- java.lang.Object
- 
- com.oracle.bmc.http.internal.BaseSyncClient
- 
- com.oracle.bmc.healthchecks.HealthChecksClient
 
 
- 
- All Implemented Interfaces:
- HealthChecks,- AutoCloseable
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20180501") public class HealthChecksClient extends BaseSyncClient implements HealthChecks
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classHealthChecksClient.BuilderBuilder class for this client.
 - 
Field SummaryFields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for HealthChecks.
 - 
Constructor SummaryConstructors Constructor Description HealthChecksClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.HealthChecksClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.HealthChecksClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.HealthChecksClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.HealthChecksClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.HealthChecksClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.HealthChecksClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HealthChecksClient.Builderbuilder()Create a builder for this client.ChangeHttpMonitorCompartmentResponsechangeHttpMonitorCompartment(ChangeHttpMonitorCompartmentRequest request)Moves a monitor into a different compartment.ChangePingMonitorCompartmentResponsechangePingMonitorCompartment(ChangePingMonitorCompartmentRequest request)Moves a monitor into a different compartment.voidclose()CreateHttpMonitorResponsecreateHttpMonitor(CreateHttpMonitorRequest request)Creates an HTTP monitor.CreateOnDemandHttpProbeResponsecreateOnDemandHttpProbe(CreateOnDemandHttpProbeRequest request)Creates an on-demand HTTP probe.CreateOnDemandPingProbeResponsecreateOnDemandPingProbe(CreateOnDemandPingProbeRequest request)Creates an on-demand ping probe.CreatePingMonitorResponsecreatePingMonitor(CreatePingMonitorRequest request)Creates a ping monitor.DeleteHttpMonitorResponsedeleteHttpMonitor(DeleteHttpMonitorRequest request)Deletes the HTTP monitor and its configuration.DeletePingMonitorResponsedeletePingMonitor(DeletePingMonitorRequest request)Deletes the ping monitor and its configuration.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()GetHttpMonitorResponsegetHttpMonitor(GetHttpMonitorRequest request)Gets the configuration for the specified monitor.Optional<String>getMinimumClientCommonLibraryVersionFromClient()HealthChecksPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetPingMonitorResponsegetPingMonitor(GetPingMonitorRequest request)Gets the configuration for the specified ping monitor.ListHealthChecksVantagePointsResponselistHealthChecksVantagePoints(ListHealthChecksVantagePointsRequest request)Gets information about all vantage points available to the user.ListHttpMonitorsResponselistHttpMonitors(ListHttpMonitorsRequest request)Gets a list of HTTP monitors.ListHttpProbeResultsResponselistHttpProbeResults(ListHttpProbeResultsRequest request)Gets the HTTP probe results for the specified probe or monitor, where theprobeConfigurationIdis the OCID of either a monitor or an on-demand probe.ListPingMonitorsResponselistPingMonitors(ListPingMonitorsRequest request)Gets a list of configured ping monitors.ListPingProbeResultsResponselistPingProbeResults(ListPingProbeResultsRequest request)Returns the results for the specified probe, where theprobeConfigurationIdis the OCID of either a monitor or an on-demand probe.voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.voidrefreshClient()Rebuild the backingHttpClient.voidsetEndpoint(String endpoint)voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateHttpMonitorResponseupdateHttpMonitor(UpdateHttpMonitorRequest request)Updates the configuration of the specified HTTP monitor.UpdatePingMonitorResponseupdatePingMonitor(UpdatePingMonitorRequest request)Updates the configuration of the specified ping monitor.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.- 
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClientclientCall
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.lang.AutoCloseableclose
 - 
Methods inherited from interface com.oracle.bmc.healthchecks.HealthChecksgetEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
 
- 
 
- 
- 
- 
Constructor Detail- 
HealthChecksClient@Deprecated public HealthChecksClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- HealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
 
 - 
HealthChecksClient@Deprecated public HealthChecksClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- HealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
 
 - 
HealthChecksClient@Deprecated public HealthChecksClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- HealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
 
 - 
HealthChecksClient@Deprecated public HealthChecksClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- HealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
 
 - 
HealthChecksClient@Deprecated public HealthChecksClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- HealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
 
 - 
HealthChecksClient@Deprecated public HealthChecksClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- HealthChecksClient.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)
 
 - 
HealthChecksClient@Deprecated public HealthChecksClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- HealthChecksClient.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
 
 
- 
 - 
Method Detail- 
builderpublic static HealthChecksClient.Builder builder() Create a builder for this client.- Returns:
- builder
 
 - 
setRegionpublic void setRegion(Region region) Description copied from interface:HealthChecksSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Specified by:
- setRegionin interface- HealthChecks
- Parameters:
- region- The region of the service.
 
 - 
setRegionpublic void setRegion(String regionId) Description copied from interface:HealthChecksSets 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 callsetEndpoint.- Specified by:
- setRegionin interface- HealthChecks
- Parameters:
- regionId- The public region ID.
 
 - 
changeHttpMonitorCompartmentpublic ChangeHttpMonitorCompartmentResponse changeHttpMonitorCompartment(ChangeHttpMonitorCompartmentRequest request) Description copied from interface:HealthChecksMoves a monitor into a different compartment.When provided, If-Matchis checked against ETag values of the resource.- Specified by:
- changeHttpMonitorCompartmentin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changePingMonitorCompartmentpublic ChangePingMonitorCompartmentResponse changePingMonitorCompartment(ChangePingMonitorCompartmentRequest request) Description copied from interface:HealthChecksMoves a monitor into a different compartment.When provided, If-Matchis checked against ETag values of the resource.- Specified by:
- changePingMonitorCompartmentin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createHttpMonitorpublic CreateHttpMonitorResponse createHttpMonitor(CreateHttpMonitorRequest request) Description copied from interface:HealthChecksCreates an HTTP monitor.Vantage points will be automatically selected if not specified, and probes will be initiated from each vantage point to each of the targets at the frequency specified by intervalInSeconds.- Specified by:
- createHttpMonitorin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createOnDemandHttpProbepublic CreateOnDemandHttpProbeResponse createOnDemandHttpProbe(CreateOnDemandHttpProbeRequest request) Description copied from interface:HealthChecksCreates an on-demand HTTP probe.The location response header contains the URL for fetching the probe results. Note:* On-demand probe configurations are not saved. - Specified by:
- createOnDemandHttpProbein interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createOnDemandPingProbepublic CreateOnDemandPingProbeResponse createOnDemandPingProbe(CreateOnDemandPingProbeRequest request) Description copied from interface:HealthChecksCreates an on-demand ping probe.The location response header contains the URL for fetching probe results. Note:* The on-demand probe configuration is not saved. - Specified by:
- createOnDemandPingProbein interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createPingMonitorpublic CreatePingMonitorResponse createPingMonitor(CreatePingMonitorRequest request) Description copied from interface:HealthChecksCreates a ping monitor.Vantage points will be automatically selected if not specified, and probes will be initiated from each vantage point to each of the targets at the frequency specified by intervalInSeconds.- Specified by:
- createPingMonitorin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteHttpMonitorpublic DeleteHttpMonitorResponse deleteHttpMonitor(DeleteHttpMonitorRequest request) Description copied from interface:HealthChecksDeletes the HTTP monitor and its configuration.All future probes of this monitor are stopped. Results associated with the monitor are not deleted. - Specified by:
- deleteHttpMonitorin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deletePingMonitorpublic DeletePingMonitorResponse deletePingMonitor(DeletePingMonitorRequest request) Description copied from interface:HealthChecksDeletes the ping monitor and its configuration.All future probes of this monitor are stopped. Results associated with the monitor are not deleted. - Specified by:
- deletePingMonitorin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getHttpMonitorpublic GetHttpMonitorResponse getHttpMonitor(GetHttpMonitorRequest request) Description copied from interface:HealthChecksGets the configuration for the specified monitor.- Specified by:
- getHttpMonitorin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getPingMonitorpublic GetPingMonitorResponse getPingMonitor(GetPingMonitorRequest request) Description copied from interface:HealthChecksGets the configuration for the specified ping monitor.- Specified by:
- getPingMonitorin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listHealthChecksVantagePointspublic ListHealthChecksVantagePointsResponse listHealthChecksVantagePoints(ListHealthChecksVantagePointsRequest request) Description copied from interface:HealthChecksGets information about all vantage points available to the user.- Specified by:
- listHealthChecksVantagePointsin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listHttpMonitorspublic ListHttpMonitorsResponse listHttpMonitors(ListHttpMonitorsRequest request) Description copied from interface:HealthChecksGets a list of HTTP monitors.- Specified by:
- listHttpMonitorsin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listHttpProbeResultspublic ListHttpProbeResultsResponse listHttpProbeResults(ListHttpProbeResultsRequest request) Description copied from interface:HealthChecksGets the HTTP probe results for the specified probe or monitor, where theprobeConfigurationIdis the OCID of either a monitor or an on-demand probe.- Specified by:
- listHttpProbeResultsin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listPingMonitorspublic ListPingMonitorsResponse listPingMonitors(ListPingMonitorsRequest request) Description copied from interface:HealthChecksGets a list of configured ping monitors.Results are paginated based on `page` and `limit`. The `opc-next-page` header provides a URL for fetching the next page. - Specified by:
- listPingMonitorsin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listPingProbeResultspublic ListPingProbeResultsResponse listPingProbeResults(ListPingProbeResultsRequest request) Description copied from interface:HealthChecksReturns the results for the specified probe, where theprobeConfigurationIdis the OCID of either a monitor or an on-demand probe.Results are paginated based on `page` and `limit`. The `opc-next-page` header provides a URL for fetching the next page. Use `sortOrder` to set the order of the results. If `sortOrder` is unspecified, results are sorted in ascending order by `startTime`. - Specified by:
- listPingProbeResultsin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateHttpMonitorpublic UpdateHttpMonitorResponse updateHttpMonitor(UpdateHttpMonitorRequest request) Description copied from interface:HealthChecksUpdates the configuration of the specified HTTP monitor.Only the fields specified in the request body will be updated; all other configuration properties will remain unchanged. - Specified by:
- updateHttpMonitorin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updatePingMonitorpublic UpdatePingMonitorResponse updatePingMonitor(UpdatePingMonitorRequest request) Description copied from interface:HealthChecksUpdates the configuration of the specified ping monitor.Only the fields specified in the request body will be updated; all other configuration properties will remain unchanged. - Specified by:
- updatePingMonitorin interface- HealthChecks
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getPaginatorspublic HealthChecksPaginators getPaginators() Description copied from interface:HealthChecksGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
- getPaginatorsin interface- HealthChecks
- Returns:
- The service paginators.
 
 - 
getDefaultConfiguratorprotected ClientConfigurator getDefaultConfigurator() 
 - 
useRealmSpecificEndpointTemplatepublic void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled) This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false - Parameters:
- useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
 
 - 
populateServiceParametersInEndpointpublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap) Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank. - Parameters:
- endpoint- The endpoint template in use
- requiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
 
 - 
updateBaseEndpointpublic final void updateBaseEndpoint(String endpoint) This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters. - Parameters:
- endpoint- The updated endpoint to use
 
 - 
setEndpointpublic final void setEndpoint(String endpoint) 
 - 
getEndpointpublic final String getEndpoint() 
 - 
refreshClientpublic final void refreshClient() Rebuild the backingHttpClient.This will call ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
 - 
closepublic final void close() - Specified by:
- closein interface- AutoCloseable
 
 - 
getClientCommonLibraryVersionpublic String getClientCommonLibraryVersion() 
 
- 
 
-