跳到主要内容
版本:v3.0.x

checkHealth()

This operation checks the health status of the Milvus server.

JavaScript
await milvusClient.checkHealth()

Request Syntax

JavaScript
milvusClient.checkHealth()

RETURN TYPE:

Promise<CheckHealthResponse>

RETURNS Promise<CheckHealthResponse>

This method returns a promise that resolves to a CheckHealthResponse object.

JavaScript
{
isHealthy: boolean,
reasons: string[]
}

PARAMETERS:

  • isHealthy (boolean) -

    A boolean that indicates whether all critical components of the Milvus deployment are healthy.

  • reasons (string[]) -

    When isHealthy is false, a list of human-readable reasons explaining which components are unhealthy. The list is empty when isHealthy is true.

Examples

JavaScript
milvusClient.checkHealth()