WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Health
editHealth
editGet cluster health simple
var r = this._client.Health(HealthLevel.Cluster);
Cluster health for one (or more) indexes
var r = this._client.Health(new[] { Test.Default.DefaultIndex }, HealthLevel.Cluster);
Advanced options are mapped as well
var r = this._client.Health(new HealthParams { CheckLevel = HealthLevel.Shards, Timeout = "30s", WaitForMinNodes = 1, WaitForRelocatingShards = 0, WaitForStatus = HealthStatus.Green });