@elastic/get-cluster-health
Get Elasticsearch cluster health status and statistics
RUN SKILL get_cluster_health()-- 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
}
}