@Generated(value="OracleSDKGenerator", comments="API Version: 20180501") public interface HealthChecksAsync extends AutoCloseable
close
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.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.Future<CreateHttpMonitorResponse> createHttpMonitor(CreateHttpMonitorRequest request, AsyncHandler<CreateHttpMonitorRequest,CreateHttpMonitorResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateOnDemandHttpProbeResponse> createOnDemandHttpProbe(CreateOnDemandHttpProbeRequest request, AsyncHandler<CreateOnDemandHttpProbeRequest,CreateOnDemandHttpProbeResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateOnDemandPingProbeResponse> createOnDemandPingProbe(CreateOnDemandPingProbeRequest request, AsyncHandler<CreateOnDemandPingProbeRequest,CreateOnDemandPingProbeResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<CreatePingMonitorResponse> createPingMonitor(CreatePingMonitorRequest request, AsyncHandler<CreatePingMonitorRequest,CreatePingMonitorResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<DeleteHttpMonitorResponse> deleteHttpMonitor(DeleteHttpMonitorRequest request, AsyncHandler<DeleteHttpMonitorRequest,DeleteHttpMonitorResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<DeletePingMonitorResponse> deletePingMonitor(DeletePingMonitorRequest request, AsyncHandler<DeletePingMonitorRequest,DeletePingMonitorResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<GetHttpMonitorResponse> getHttpMonitor(GetHttpMonitorRequest request, AsyncHandler<GetHttpMonitorRequest,GetHttpMonitorResponse> handler)
Gets the configuration for the specified monitor.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetPingMonitorResponse> getPingMonitor(GetPingMonitorRequest request, AsyncHandler<GetPingMonitorRequest,GetPingMonitorResponse> handler)
Gets the configuration for the specified ping monitor.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListHealthChecksVantagePointsResponse> listHealthChecksVantagePoints(ListHealthChecksVantagePointsRequest request, AsyncHandler<ListHealthChecksVantagePointsRequest,ListHealthChecksVantagePointsResponse> handler)
Gets information about all vantage points available to the user.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListHttpMonitorsResponse> listHttpMonitors(ListHttpMonitorsRequest request, AsyncHandler<ListHttpMonitorsRequest,ListHttpMonitorsResponse> handler)
Gets a list of HTTP monitors.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListHttpProbeResultsResponse> listHttpProbeResults(ListHttpProbeResultsRequest request, AsyncHandler<ListHttpProbeResultsRequest,ListHttpProbeResultsResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<ListPingMonitorsResponse> listPingMonitors(ListPingMonitorsRequest request, AsyncHandler<ListPingMonitorsRequest,ListPingMonitorsResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<ListPingProbeResultsResponse> listPingProbeResults(ListPingProbeResultsRequest request, AsyncHandler<ListPingProbeResultsRequest,ListPingProbeResultsResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateHttpMonitorResponse> updateHttpMonitor(UpdateHttpMonitorRequest request, AsyncHandler<UpdateHttpMonitorRequest,UpdateHttpMonitorResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdatePingMonitorResponse> updatePingMonitor(UpdatePingMonitorRequest request, AsyncHandler<UpdatePingMonitorRequest,UpdatePingMonitorResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2019. All rights reserved.