跳到主要内容
版本:v2.5.x

checkHealth()

This operation checks the health status of the Milvus server.

JavaScript
checkHealth(): Promise<CheckHealthResponse>

Request Syntax

JavaScript
milvusClient.checkHealth()

RETURN TYPE:

Promise<CheckHealthResponse>

RETURNS:

A promise that resolves to a CheckHealthResponse object.

JavaScript
{
isHealthy: boolean,
reasons: []
}

PARAMETERS:

  • isHealthy (boolean) -

    Whether the currently connected Milvus server is healthy.

  • reasons ([]) -

    The reasons for the currently connected Milvus server is unhealthy.

Examples

JavaScript
milvusClient.checkHealth()