👁️

Service Health

Verified

@elastic/service-health

Get health summary for a specific service

Usage

RUN SKILL service_health()

With parameters:

RUN SKILL service_health WITH service = 'value', index_pattern = 'value'

Parameters

NameTypeDefaultDescription
serviceSTRINGService name to check
index_patternSTRINGIndex pattern to search

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 service_health()"}'

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