@elastic/get-index-stats
Get detailed statistics for an index
RUN SKILL get_index_stats()With parameters:
RUN SKILL get_index_stats WITH index_name = 'value'| Name | Type | Default | Description |
|---|---|---|---|
| index_name | STRING | — | Index name to get stats for |
-- Using curl
curl -u elastic-admin:elastic-password http://localhost:9200/_escript \
-H "Content-Type: application/json" \
-d '{"query": "RUN SKILL get_index_stats()"}'
-- Response
{
"result": [...],
"_meta": {
"execution_id": "abc123",
"duration_ms": 45
}
}