@Generated(value="OracleSDKGenerator", comments="API Version: 20180501") public interface HealthChecks extends AutoCloseable
API for the Health Checks service. Use this API to manage endpoint probes and monitors. For more information, see Overview of the Health Checks Service.
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 |
---|---|
ChangeHttpMonitorCompartmentResponse |
changeHttpMonitorCompartment(ChangeHttpMonitorCompartmentRequest request)
Moves a monitor into a different compartment.
|
ChangePingMonitorCompartmentResponse |
changePingMonitorCompartment(ChangePingMonitorCompartmentRequest request)
Moves a monitor into a different compartment.
|
CreateHttpMonitorResponse |
createHttpMonitor(CreateHttpMonitorRequest request)
Creates an HTTP monitor.
|
CreateOnDemandHttpProbeResponse |
createOnDemandHttpProbe(CreateOnDemandHttpProbeRequest request)
Creates an on-demand HTTP probe.
|
CreateOnDemandPingProbeResponse |
createOnDemandPingProbe(CreateOnDemandPingProbeRequest request)
Creates an on-demand ping probe.
|
CreatePingMonitorResponse |
createPingMonitor(CreatePingMonitorRequest request)
Creates a ping monitor.
|
DeleteHttpMonitorResponse |
deleteHttpMonitor(DeleteHttpMonitorRequest request)
Deletes the HTTP monitor and its configuration.
|
DeletePingMonitorResponse |
deletePingMonitor(DeletePingMonitorRequest request)
Deletes the ping monitor and its configuration.
|
String |
getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
|
GetHttpMonitorResponse |
getHttpMonitor(GetHttpMonitorRequest request)
Gets the configuration for the specified monitor.
|
HealthChecksPaginators |
getPaginators()
Gets the pre-configured paginators available for list operations in this service which may
return multiple pages of data.
|
GetPingMonitorResponse |
getPingMonitor(GetPingMonitorRequest request)
Gets the configuration for the specified ping monitor.
|
ListHealthChecksVantagePointsResponse |
listHealthChecksVantagePoints(ListHealthChecksVantagePointsRequest request)
Gets information about all vantage points available to the user.
|
ListHttpMonitorsResponse |
listHttpMonitors(ListHttpMonitorsRequest request)
Gets a list of HTTP monitors.
|
ListHttpProbeResultsResponse |
listHttpProbeResults(ListHttpProbeResultsRequest request)
Gets the HTTP probe results for the specified probe or monitor, where the
probeConfigurationId is the OCID of either a monitor or an on-demand probe. |
ListPingMonitorsResponse |
listPingMonitors(ListPingMonitorsRequest request)
Gets a list of configured ping monitors.
|
ListPingProbeResultsResponse |
listPingProbeResults(ListPingProbeResultsRequest request)
Returns the results for the specified probe, where the
probeConfigurationId is the OCID of
either a monitor or an on-demand probe. |
void |
refreshClient()
Rebuilds the client from scratch.
|
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’).
|
UpdateHttpMonitorResponse |
updateHttpMonitor(UpdateHttpMonitorRequest request)
Updates the configuration of the specified HTTP monitor.
|
UpdatePingMonitorResponse |
updatePingMonitor(UpdatePingMonitorRequest request)
Updates the configuration of the specified ping monitor.
|
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
templateChangeHttpMonitorCompartmentResponse changeHttpMonitorCompartment(ChangeHttpMonitorCompartmentRequest request)
Moves a monitor into a different compartment. 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 ChangeHttpMonitorCompartment API.
ChangePingMonitorCompartmentResponse changePingMonitorCompartment(ChangePingMonitorCompartmentRequest request)
Moves a monitor into a different compartment. 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 ChangePingMonitorCompartment API.
CreateHttpMonitorResponse createHttpMonitor(CreateHttpMonitorRequest request)
Creates 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
.
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 CreateHttpMonitor API.
CreateOnDemandHttpProbeResponse createOnDemandHttpProbe(CreateOnDemandHttpProbeRequest request)
Creates 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.
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 CreateOnDemandHttpProbe API.
CreateOnDemandPingProbeResponse createOnDemandPingProbe(CreateOnDemandPingProbeRequest request)
Creates 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.
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 CreateOnDemandPingProbe API.
CreatePingMonitorResponse createPingMonitor(CreatePingMonitorRequest request)
Creates 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
.
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 CreatePingMonitor API.
DeleteHttpMonitorResponse deleteHttpMonitor(DeleteHttpMonitorRequest request)
Deletes the HTTP monitor and its configuration. All future probes of this monitor are stopped. Results associated with the monitor are not deleted.
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 DeleteHttpMonitor API.
DeletePingMonitorResponse deletePingMonitor(DeletePingMonitorRequest request)
Deletes the ping monitor and its configuration. All future probes of this monitor are stopped. Results associated with the monitor are not deleted.
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 DeletePingMonitor API.
GetHttpMonitorResponse getHttpMonitor(GetHttpMonitorRequest request)
Gets the configuration for the specified monitor.
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 GetHttpMonitor API.
GetPingMonitorResponse getPingMonitor(GetPingMonitorRequest request)
Gets the configuration for the specified ping monitor.
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 GetPingMonitor API.
ListHealthChecksVantagePointsResponse listHealthChecksVantagePoints(ListHealthChecksVantagePointsRequest request)
Gets information about all vantage points available to the user.
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 ListHealthChecksVantagePoints API.
ListHttpMonitorsResponse listHttpMonitors(ListHttpMonitorsRequest request)
Gets a list of HTTP monitors.
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 ListHttpMonitors API.
ListHttpProbeResultsResponse listHttpProbeResults(ListHttpProbeResultsRequest request)
Gets the HTTP probe results for the specified probe or monitor, where the
probeConfigurationId
is the OCID of either a monitor or an on-demand probe.
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 ListHttpProbeResults API.
ListPingMonitorsResponse listPingMonitors(ListPingMonitorsRequest request)
Gets 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.
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 ListPingMonitors API.
ListPingProbeResultsResponse listPingProbeResults(ListPingProbeResultsRequest request)
Returns the results for the specified probe, where the probeConfigurationId
is 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`.
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 ListPingProbeResults API.
UpdateHttpMonitorResponse updateHttpMonitor(UpdateHttpMonitorRequest request)
Updates 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.
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 UpdateHttpMonitor API.
UpdatePingMonitorResponse updatePingMonitor(UpdatePingMonitorRequest request)
Updates 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.
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 UpdatePingMonitor API.
HealthChecksPaginators 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–2024. All rights reserved.