/**
 * Health Checks API
 * 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](/iaas/Content/HealthChecks/Concepts/healthchecks.htm).

 * OpenAPI spec version: 20180501
 *
 *
 * NOTE: This class is auto generated by OracleSDKGenerator.
 * Do not edit the class manually.
 *
 * Copyright (c) 2020, 2022, Oracle and/or its affiliates.  All rights reserved.
 * This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
 */ import common = require ( "oci-common" ) ; import * as requests from "./request" ; import * as model from "./model" ; import * as responses from "./response" ; import { paginateRecords , paginateResponses } from "oci-common" ; import { composeResponse , composeRequest , GenericRetrier } from "oci-common" ; export enum HealthChecksApiKeys { } /**
 * This service client uses  common . CircuitBreaker . DefaultConfiguration for all the operations by default if no circuit breaker configuration is defined by the user.
  export class HealthChecksClient { protected static serviceEndpointTemplate = "https://healthchecks.{region}.oci.{secondLevelDomain}" ; protected "_endpoint" : string = "" ; protected "_defaultHeaders" : any = { } ; protected "_clientConfiguration" : common . ClientConfiguration ; protected _circuitBreaker = null ; protected _httpClient : common . HttpClient ; constructor ( params , clientConfiguration ? ) { const requestSigner = params . authenticationDetailsProvider ? new common . DefaultRequestSigner ( params . authenticationDetailsProvider ) : null ; if ( clientConfiguration ) { this . _clientConfiguration = clientConfiguration ; this . _circuitBreaker = clientConfiguration . circuitBreaker ? clientConfiguration . circuitBreaker ! . circuit : null ; } const specCircuitBreakerEnabled = true ; if ( ! this . _circuitBreaker && common . utils . isCircuitBreakerSystemEnabled ( clientConfiguration ! ) && ( specCircuitBreakerEnabled || common . CircuitBreaker . DefaultCircuitBreakerOverriden ) ) { this . _circuitBreaker = new common . CircuitBreaker ( ) . circuit ; } this . _httpClient = params . httpClient || new common . FetchHttpClient ( requestSigner , this . _circuitBreaker ) ; if ( params . authenticationDetailsProvider && common . isRegionProvider ( params . authenticationDetailsProvider ) ) { const provider = params . authenticationDetailsProvider ; if ( provider . getRegion ( ) ) { this . region = provider . getRegion ( ) ; } } } /**
     * Get the endpoint that is being used to call (ex, https://www.example.com).
     */ public get endpoint ( ) { return this . _endpoint ; } param endpoint public set endpoint ( endpoint ) { this . _endpoint = endpoint ; this . _endpoint = this . _endpoint + "/20180501" ; if ( this . logger ) this . logger . info ( `HealthChecksClient endpoint set to ${ this . _endpoint }` ) ; } public get logger ( ) { return common . LOG . logger ; } /**
     * Sets the region to call (ex, Region.US_PHOENIX_1).
     * Note, this will call  {@link #endpoint(String) endpoint} after resolving the endpoint.
     *  param region public set region ( region ) { this . endpoint = common . EndpointBuilder . createEndpointFromRegion ( HealthChecksClient . serviceEndpointTemplate , region ) ; } /**
     * Sets the regionId to call (ex, 'us-phoenix-1').
     *
     * Note, this will first try to map the region ID to a known Region and call  {@link #region(Region) region} .
     * If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
     * and then call  {@link #endpoint(String) endpoint} .
     *  param regionId public set regionId ( regionId ) { this . endpoint = common . EndpointBuilder . createEndpointFromRegionId ( HealthChecksClient . serviceEndpointTemplate , regionId ) ; } param ChangeHttpMonitorCompartmentRequest return throws example Click  https to see how to use ChangeHttpMonitorCompartment API.
      public async changeHttpMonitorCompartment ( changeHttpMonitorCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#changeHttpMonitorCompartment." ) ; const pathParams = { "{monitorId}" : changeHttpMonitorCompartmentRequest . monitorId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changeHttpMonitorCompartmentRequest . ifMatch , "opc-request-id" : changeHttpMonitorCompartmentRequest . opcRequestId , "opc-retry-token" : changeHttpMonitorCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changeHttpMonitorCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/httpMonitors/{monitorId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changeHttpMonitorCompartmentRequest . changeHttpMonitorCompartmentDetails , "ChangeHttpMonitorCompartmentDetails" , model . ChangeHttpMonitorCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangeHttpMonitorCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ChangePingMonitorCompartmentRequest return throws example Click  https to see how to use ChangePingMonitorCompartment API.
      public async changePingMonitorCompartment ( changePingMonitorCompartmentRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#changePingMonitorCompartment." ) ; const pathParams = { "{monitorId}" : changePingMonitorCompartmentRequest . monitorId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "if-match" : changePingMonitorCompartmentRequest . ifMatch , "opc-request-id" : changePingMonitorCompartmentRequest . opcRequestId , "opc-retry-token" : changePingMonitorCompartmentRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , changePingMonitorCompartmentRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/pingMonitors/{monitorId}/actions/changeCompartment" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( changePingMonitorCompartmentRequest . changePingMonitorCompartmentDetails , "ChangePingMonitorCompartmentDetails" , model . ChangePingMonitorCompartmentDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ChangePingMonitorCompartmentResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateHttpMonitorRequest return throws example Click  https to see how to use CreateHttpMonitor API.
      public async createHttpMonitor ( createHttpMonitorRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#createHttpMonitor." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createHttpMonitorRequest . opcRequestId , "opc-retry-token" : createHttpMonitorRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createHttpMonitorRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/httpMonitors" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createHttpMonitorRequest . createHttpMonitorDetails , "CreateHttpMonitorDetails" , model . CreateHttpMonitorDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateHttpMonitorResponse > { } , body : await response . json ( ) , bodyKey : "httpMonitor" , bodyModel : model . HttpMonitor , type : "model.HttpMonitor" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateOnDemandHttpProbeRequest return throws example Click  https to see how to use CreateOnDemandHttpProbe API.
      public async createOnDemandHttpProbe ( createOnDemandHttpProbeRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#createOnDemandHttpProbe." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createOnDemandHttpProbeRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createOnDemandHttpProbeRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/httpProbeResults" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createOnDemandHttpProbeRequest . createOnDemandHttpProbeDetails , "CreateOnDemandHttpProbeDetails" , model . CreateOnDemandHttpProbeDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateOnDemandHttpProbeResponse > { } , body : await response . json ( ) , bodyKey : "httpProbe" , bodyModel : model . HttpProbe , type : "model.HttpProbe" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreateOnDemandPingProbeRequest return throws example Click  https to see how to use CreateOnDemandPingProbe API.
      public async createOnDemandPingProbe ( createOnDemandPingProbeRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#createOnDemandPingProbe." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createOnDemandPingProbeRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createOnDemandPingProbeRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/pingProbeResults" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createOnDemandPingProbeRequest . createOnDemandPingProbeDetails , "CreateOnDemandPingProbeDetails" , model . CreateOnDemandPingProbeDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreateOnDemandPingProbeResponse > { } , body : await response . json ( ) , bodyKey : "pingProbe" , bodyModel : model . PingProbe , type : "model.PingProbe" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param CreatePingMonitorRequest return throws example Click  https to see how to use CreatePingMonitor API.
      public async createPingMonitor ( createPingMonitorRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#createPingMonitor." ) ; const pathParams = { } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : createPingMonitorRequest . opcRequestId , "opc-retry-token" : createPingMonitorRequest . opcRetryToken } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , createPingMonitorRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/pingMonitors" , method : "POST" , bodyContent : common . ObjectSerializer . serialize ( createPingMonitorRequest . createPingMonitorDetails , "CreatePingMonitorDetails" , model . CreatePingMonitorDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . CreatePingMonitorResponse > { } , body : await response . json ( ) , bodyKey : "pingMonitor" , bodyModel : model . PingMonitor , type : "model.PingMonitor" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "location" ) , key : "location" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeleteHttpMonitorRequest return throws example Click  https to see how to use DeleteHttpMonitor API.
      public async deleteHttpMonitor ( deleteHttpMonitorRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#deleteHttpMonitor." ) ; const pathParams = { "{monitorId}" : deleteHttpMonitorRequest . monitorId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deleteHttpMonitorRequest . opcRequestId , "if-match" : deleteHttpMonitorRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deleteHttpMonitorRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/httpMonitors/{monitorId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeleteHttpMonitorResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param DeletePingMonitorRequest return throws example Click  https to see how to use DeletePingMonitor API.
      public async deletePingMonitor ( deletePingMonitorRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#deletePingMonitor." ) ; const pathParams = { "{monitorId}" : deletePingMonitorRequest . monitorId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : deletePingMonitorRequest . opcRequestId , "if-match" : deletePingMonitorRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , deletePingMonitorRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/pingMonitors/{monitorId}" , method : "DELETE" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . DeletePingMonitorResponse > { } , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetHttpMonitorRequest return throws example Click  https to see how to use GetHttpMonitor API.
      public async getHttpMonitor ( getHttpMonitorRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#getHttpMonitor." ) ; const pathParams = { "{monitorId}" : getHttpMonitorRequest . monitorId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getHttpMonitorRequest . opcRequestId , "if-none-match" : getHttpMonitorRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getHttpMonitorRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/httpMonitors/{monitorId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetHttpMonitorResponse > { } , body : await response . json ( ) , bodyKey : "httpMonitor" , bodyModel : model . HttpMonitor , type : "model.HttpMonitor" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param GetPingMonitorRequest return throws example Click  https to see how to use GetPingMonitor API.
      public async getPingMonitor ( getPingMonitorRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#getPingMonitor." ) ; const pathParams = { "{monitorId}" : getPingMonitorRequest . monitorId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : getPingMonitorRequest . opcRequestId , "if-none-match" : getPingMonitorRequest . ifNoneMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , getPingMonitorRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/pingMonitors/{monitorId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . GetPingMonitorResponse > { } , body : await response . json ( ) , bodyKey : "pingMonitor" , bodyModel : model . PingMonitor , type : "model.PingMonitor" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param ListHealthChecksVantagePointsRequest return throws example Click  https to see how to use ListHealthChecksVantagePoints API.
      public async listHealthChecksVantagePoints ( listHealthChecksVantagePointsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#listHealthChecksVantagePoints." ) ; const pathParams = { } ; const queryParams = { "limit" : listHealthChecksVantagePointsRequest . limit , "page" : listHealthChecksVantagePointsRequest . page , "sortBy" : listHealthChecksVantagePointsRequest . sortBy , "sortOrder" : listHealthChecksVantagePointsRequest . sortOrder , "name" : listHealthChecksVantagePointsRequest . name , "displayName" : listHealthChecksVantagePointsRequest . displayName } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listHealthChecksVantagePointsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listHealthChecksVantagePointsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/vantagePoints" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListHealthChecksVantagePointsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . HealthChecksVantagePointSummary , type : "Array<model.HealthChecksVantagePointSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllHealthChecksVantagePoints ( request ) { return paginateRecords ( request , req => this . listHealthChecksVantagePoints ( req ) ) ; } param request public listAllHealthChecksVantagePointsResponses ( request ) { return paginateResponses ( request , req => this . listHealthChecksVantagePoints ( req ) ) ; } param request public listHealthChecksVantagePointsRecordIterator ( request ) { return paginateRecords ( request , req => this . listHealthChecksVantagePoints ( req ) ) ; } param request public listHealthChecksVantagePointsResponseIterator ( request ) { return paginateResponses ( request , req => this . listHealthChecksVantagePoints ( req ) ) ; } param ListHttpMonitorsRequest return throws example Click  https to see how to use ListHttpMonitors API.
      public async listHttpMonitors ( listHttpMonitorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#listHttpMonitors." ) ; const pathParams = { } ; const queryParams = { "limit" : listHttpMonitorsRequest . limit , "page" : listHttpMonitorsRequest . page , "compartmentId" : listHttpMonitorsRequest . compartmentId , "sortBy" : listHttpMonitorsRequest . sortBy , "sortOrder" : listHttpMonitorsRequest . sortOrder , "displayName" : listHttpMonitorsRequest . displayName , "homeRegion" : listHttpMonitorsRequest . homeRegion } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listHttpMonitorsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listHttpMonitorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/httpMonitors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListHttpMonitorsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . HttpMonitorSummary , type : "Array<model.HttpMonitorSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllHttpMonitors ( request ) { return paginateRecords ( request , req => this . listHttpMonitors ( req ) ) ; } param request public listAllHttpMonitorsResponses ( request ) { return paginateResponses ( request , req => this . listHttpMonitors ( req ) ) ; } param request public listHttpMonitorsRecordIterator ( request ) { return paginateRecords ( request , req => this . listHttpMonitors ( req ) ) ; } param request public listHttpMonitorsResponseIterator ( request ) { return paginateResponses ( request , req => this . listHttpMonitors ( req ) ) ; } param ListHttpProbeResultsRequest return throws example Click  https to see how to use ListHttpProbeResults API.
      public async listHttpProbeResults ( listHttpProbeResultsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#listHttpProbeResults." ) ; const pathParams = { "{probeConfigurationId}" : listHttpProbeResultsRequest . probeConfigurationId } ; const queryParams = { "limit" : listHttpProbeResultsRequest . limit , "page" : listHttpProbeResultsRequest . page , "startTimeGreaterThanOrEqualTo" : listHttpProbeResultsRequest . startTimeGreaterThanOrEqualTo , "startTimeLessThanOrEqualTo" : listHttpProbeResultsRequest . startTimeLessThanOrEqualTo , "sortOrder" : listHttpProbeResultsRequest . sortOrder , "target" : listHttpProbeResultsRequest . target } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listHttpProbeResultsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listHttpProbeResultsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/httpProbeResults/{probeConfigurationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListHttpProbeResultsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . HttpProbeResultSummary , type : "Array<model.HttpProbeResultSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllHttpProbeResults ( request ) { return paginateRecords ( request , req => this . listHttpProbeResults ( req ) ) ; } param request public listAllHttpProbeResultsResponses ( request ) { return paginateResponses ( request , req => this . listHttpProbeResults ( req ) ) ; } param request public listHttpProbeResultsRecordIterator ( request ) { return paginateRecords ( request , req => this . listHttpProbeResults ( req ) ) ; } param request public listHttpProbeResultsResponseIterator ( request ) { return paginateResponses ( request , req => this . listHttpProbeResults ( req ) ) ; } param ListPingMonitorsRequest return throws example Click  https to see how to use ListPingMonitors API.
        public async listPingMonitors ( listPingMonitorsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#listPingMonitors." ) ; const pathParams = { } ; const queryParams = { "limit" : listPingMonitorsRequest . limit , "page" : listPingMonitorsRequest . page , "compartmentId" : listPingMonitorsRequest . compartmentId , "sortBy" : listPingMonitorsRequest . sortBy , "sortOrder" : listPingMonitorsRequest . sortOrder , "displayName" : listPingMonitorsRequest . displayName , "homeRegion" : listPingMonitorsRequest . homeRegion } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listPingMonitorsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPingMonitorsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/pingMonitors" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPingMonitorsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . PingMonitorSummary , type : "Array<model.PingMonitorSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllPingMonitors ( request ) { return paginateRecords ( request , req => this . listPingMonitors ( req ) ) ; } param request public listAllPingMonitorsResponses ( request ) { return paginateResponses ( request , req => this . listPingMonitors ( req ) ) ; } param request public listPingMonitorsRecordIterator ( request ) { return paginateRecords ( request , req => this . listPingMonitors ( req ) ) ; } param request public listPingMonitorsResponseIterator ( request ) { return paginateResponses ( request , req => this . listPingMonitors ( req ) ) ; } param ListPingProbeResultsRequest return throws example Click  https to see how to use ListPingProbeResults API.
        public async listPingProbeResults ( listPingProbeResultsRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#listPingProbeResults." ) ; const pathParams = { "{probeConfigurationId}" : listPingProbeResultsRequest . probeConfigurationId } ; const queryParams = { "limit" : listPingProbeResultsRequest . limit , "page" : listPingProbeResultsRequest . page , "startTimeGreaterThanOrEqualTo" : listPingProbeResultsRequest . startTimeGreaterThanOrEqualTo , "startTimeLessThanOrEqualTo" : listPingProbeResultsRequest . startTimeLessThanOrEqualTo , "sortOrder" : listPingProbeResultsRequest . sortOrder , "target" : listPingProbeResultsRequest . target } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : listPingProbeResultsRequest . opcRequestId } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , listPingProbeResultsRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/pingProbeResults/{probeConfigurationId}" , method : "GET" , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . ListPingProbeResultsResponse > { } , body : await response . json ( ) , bodyKey : "items" , bodyModel : model . PingProbeResultSummary , type : "Array<model.PingProbeResultSummary>" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "opc-next-page" ) , key : "opcNextPage" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param request public listAllPingProbeResults ( request ) { return paginateRecords ( request , req => this . listPingProbeResults ( req ) ) ; } param request public listAllPingProbeResultsResponses ( request ) { return paginateResponses ( request , req => this . listPingProbeResults ( req ) ) ; } param request public listPingProbeResultsRecordIterator ( request ) { return paginateRecords ( request , req => this . listPingProbeResults ( req ) ) ; } param request public listPingProbeResultsResponseIterator ( request ) { return paginateResponses ( request , req => this . listPingProbeResults ( req ) ) ; } param UpdateHttpMonitorRequest return throws example Click  https to see how to use UpdateHttpMonitor API.
      public async updateHttpMonitor ( updateHttpMonitorRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#updateHttpMonitor." ) ; const pathParams = { "{monitorId}" : updateHttpMonitorRequest . monitorId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updateHttpMonitorRequest . opcRequestId , "if-match" : updateHttpMonitorRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updateHttpMonitorRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/httpMonitors/{monitorId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updateHttpMonitorRequest . updateHttpMonitorDetails , "UpdateHttpMonitorDetails" , model . UpdateHttpMonitorDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdateHttpMonitorResponse > { } , body : await response . json ( ) , bodyKey : "httpMonitor" , bodyModel : model . HttpMonitor , type : "model.HttpMonitor" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } param UpdatePingMonitorRequest return throws example Click  https to see how to use UpdatePingMonitor API.
      public async updatePingMonitor ( updatePingMonitorRequest ) { if ( this . logger ) this . logger . debug ( "Calling operation HealthChecksClient#updatePingMonitor." ) ; const pathParams = { "{monitorId}" : updatePingMonitorRequest . monitorId } ; const queryParams = { } ; let headerParams = { "Content-Type" : common . Constants . APPLICATION_JSON , "opc-request-id" : updatePingMonitorRequest . opcRequestId , "if-match" : updatePingMonitorRequest . ifMatch } ; const specRetryConfiguration = common . NoRetryConfigurationDetails ; const retrier = GenericRetrier . createPreferredRetrier ( this . _clientConfiguration ? this . _clientConfiguration . retryConfiguration : undefined , updatePingMonitorRequest . retryConfiguration , specRetryConfiguration ) ; if ( this . logger ) retrier . logger = this . logger ; const request = await composeRequest ( { baseEndpoint : this . _endpoint , defaultHeaders : this . _defaultHeaders , path : "/pingMonitors/{monitorId}" , method : "PUT" , bodyContent : common . ObjectSerializer . serialize ( updatePingMonitorRequest . updatePingMonitorDetails , "UpdatePingMonitorDetails" , model . UpdatePingMonitorDetails . getJsonObj ) , pathParams : pathParams , headerParams : headerParams , queryParams : queryParams } ) ; try { const response = await retrier . makeServiceCall ( this . _httpClient , request ) ; const sdkResponse = composeResponse ( { responseObject : < responses . UpdatePingMonitorResponse > { } , body : await response . json ( ) , bodyKey : "pingMonitor" , bodyModel : model . PingMonitor , type : "model.PingMonitor" , responseHeaders : [ { value : response . headers . get ( "opc-request-id" ) , key : "opcRequestId" , dataType : "string" } , { value : response . headers . get ( "etag" ) , key : "etag" , dataType : "string" } ] } ) ; return sdkResponse ; } catch ( err ) { throw err ; } } }