com.atlan.api.HekaEndpoint Maven / Gradle / Ivy
/* SPDX-License-Identifier: Apache-2.0
Copyright 2023 Atlan Pte. Ltd. */
package com.atlan.api;
import com.atlan.AtlanClient;
import com.atlan.exception.ApiConnectionException;
/**
* Base class for all API endpoints that ultimately access Heka-surfaced services.
*/
public abstract class HekaEndpoint extends AbstractEndpoint {
private static final String PREFIX = "/api/sql";
private static final String SERVICE = "http://heka-service.heka.svc.cluster.local";
public HekaEndpoint(AtlanClient client) {
super(client);
}
protected String getBaseUrl() throws ApiConnectionException {
return getBaseUrl(SERVICE, PREFIX);
}
}