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 Summary
Nested Classes Modifier and Type Class Description static classHealthChecksClient.BuilderBuilder class for this client.
-
Field Summary
Fields 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 Summary
Constructors 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 Summary
All 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.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.healthchecks.HealthChecks
getEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
-
-
-
-
Constructor Detail
-
HealthChecksClient
@Deprecated public HealthChecksClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeHealthChecksClient.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 (seeHealthChecksClient.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 (seeHealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-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 (seeHealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-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 (seeHealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-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 (seeHealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-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 (seeHealthChecksClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))configuration-ClientBuilderBase.configurationclientConfigurator-ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)defaultRequestSignerFactory-ClientBuilderBase.requestSignerFactoryadditionalClientConfigurators-ClientBuilderBase.additionalClientConfiguratorsendpoint-ClientBuilderBase.endpoint(java.lang.String)signingStrategyRequestSignerFactories-ClientBuilderBase.signingStrategyRequestSignerFactories
-
-
Method Detail
-
builder
public static HealthChecksClient.Builder builder()
Create a builder for this client.- Returns:
- builder
-
setRegion
public 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 interfaceHealthChecks- Parameters:
region- The region of the service.
-
setRegion
public 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 interfaceHealthChecks- Parameters:
regionId- The public region ID.
-
changeHttpMonitorCompartment
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changePingMonitorCompartment
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createHttpMonitor
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createOnDemandHttpProbe
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createOnDemandPingProbe
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createPingMonitor
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deleteHttpMonitor
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
deletePingMonitor
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getHttpMonitor
public GetHttpMonitorResponse getHttpMonitor(GetHttpMonitorRequest request)
Description copied from interface:HealthChecksGets the configuration for the specified monitor.- Specified by:
getHttpMonitorin interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getPingMonitor
public GetPingMonitorResponse getPingMonitor(GetPingMonitorRequest request)
Description copied from interface:HealthChecksGets the configuration for the specified ping monitor.- Specified by:
getPingMonitorin interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listHealthChecksVantagePoints
public ListHealthChecksVantagePointsResponse listHealthChecksVantagePoints(ListHealthChecksVantagePointsRequest request)
Description copied from interface:HealthChecksGets information about all vantage points available to the user.- Specified by:
listHealthChecksVantagePointsin interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listHttpMonitors
public ListHttpMonitorsResponse listHttpMonitors(ListHttpMonitorsRequest request)
Description copied from interface:HealthChecksGets a list of HTTP monitors.- Specified by:
listHttpMonitorsin interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listHttpProbeResults
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listPingMonitors
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listPingProbeResults
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateHttpMonitor
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updatePingMonitor
public 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 interfaceHealthChecks- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getPaginators
public 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 interfaceHealthChecks- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public 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
-
populateServiceParametersInEndpoint
public 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 userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public 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
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-