@qdrant/js-client-rest
Version:
This repository contains the REST client for the [Qdrant](https://github.com/qdrant/qdrant) vector search engine.
49 lines (48 loc) • 1.87 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.createServiceApi = void 0;
function createServiceApi(client) {
return {
/**
* Get lock options. If write is locked, all write operations and collection creation are forbidden
*/
getLocks: client.path('/locks').method('get').create(),
/**
* Collect metrics data including app info, collections info, cluster info and statistics
*/
metrics: client.path('/metrics').method('get').create(),
/**
* Set lock options. If write is locked, all write operations and collection creation are forbidden. Returns previous lock options
*/
postLocks: client.path('/locks').method('post').create(),
/**
* Collect telemetry data including app info, system info, collections info, cluster info, configs and statistics
*/
telemetry: client.path('/telemetry').method('get').create(),
/**
* An endpoint for health checking used in Kubernetes.
*/
healthz: client.path('/healthz').method('get').create(),
/**
* An endpoint for health checking used in Kubernetes.
*/
livez: client.path('/livez').method('get').create(),
/**
* An endpoint for health checking used in Kubernetes.
*/
readyz: client.path('/readyz').method('get').create(),
/**
* Returns information about the running Qdrant instance.
*/
root: client.path('/').method('get').create(),
/**
* Get issues
*/
getIssues: client.path('/issues').method('get').create(),
/**
* Clear issues
*/
clearIssues: client.path('/issues').method('delete').create(),
};
}
exports.createServiceApi = createServiceApi;
;