import Client from './client'; export default class HealthChecks extends Client { constructor(opts) { let options = opts; if (typeof opts === 'string') { options = { host: opts }; // convert host string to options object } options.serviceName = 'common'; super(options); } getHealthcheck(options = {}) { return this.makeRequest(`${this.host}/_internal_/healthcheck`, options); } getProbeAndReady(options = {}) { return this.makeRequest(`${this.host}/_internal_/probe/ready`, options); } getProbeAndLive(options = {}) { return this.makeRequest(`${this.host}/_internal_/probe/live`, options); } }