This functionality is in technical preview and may be changed or removed in a future release. Elastic will apply best effort to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.
Retrieves statistics about searchable snapshots.
- (Optional, string) Comma-separated list of data streams and indices to retrieve statistics for. To retrieve statistics for all data streams and indices, omit this parameter.
Retrieves the statistics of the index
response = client.searchable_snapshots.stats( index: 'my-index' ) puts response