@aneoconsultingfr/armonik.api
Version:
gRPC API to interact with ArmoniK built for the web
24 lines (21 loc) • 1.09 kB
TypeScript
import { CheckHealthRequest, CheckHealthResponse } from './health_checks_common.js';
import 'protobufjs/minimal.js';
declare const protobufPackage = "armonik.api.grpc.v1.health_checks";
/** The HealthChecksService provides methods to verify the health of the cluster. */
interface HealthChecksService {
/** Checks the health of the cluster. This can be used to verify that the cluster is up and running. */
CheckHealth(request: CheckHealthRequest): Promise<CheckHealthResponse>;
}
declare const HealthChecksServiceServiceName = "armonik.api.grpc.v1.health_checks.HealthChecksService";
declare class HealthChecksServiceClientImpl implements HealthChecksService {
private readonly rpc;
private readonly service;
constructor(rpc: Rpc, opts?: {
service?: string;
});
CheckHealth(request: CheckHealthRequest): Promise<CheckHealthResponse>;
}
interface Rpc {
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
}
export { HealthChecksService, HealthChecksServiceClientImpl, HealthChecksServiceServiceName, protobufPackage };