🖥️

Get Cluster Health

Verified

@elastic/get-cluster-health

Get Elasticsearch cluster health status and statistics

Usage

RUN SKILL get_cluster_health()

Returns

DOCUMENT— A single document object

Example

-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
  -H "Content-Type: application/json" \
  -d '{"query": "RUN SKILL get_cluster_health()"}'

-- Response
{
  "result": [...],
  "_meta": {
    "execution_id": "abc123",
    "duration_ms": 45
  }
}