Skip to content

[JAY-737] Allow the retrieval of total metrics for the indexes#57

Merged
sergio-bobillier merged 2 commits into
masterfrom
sb-JAY-737-index-totals
Feb 20, 2026
Merged

[JAY-737] Allow the retrieval of total metrics for the indexes#57
sergio-bobillier merged 2 commits into
masterfrom
sb-JAY-737-index-totals

Conversation

@sergio-bobillier

@sergio-bobillier sergio-bobillier commented Feb 13, 2026

Copy link
Copy Markdown
Collaborator

Adds the Elasticsearch::Stats::Index::Totals class and the #totals method to the Elasticsearch::Stats::Index class. In combination these allow the caller to get information about the total metrics of an index, for example, how many documents it has, how many deleted documents, etc.

@sergio-bobillier sergio-bobillier self-assigned this Feb 13, 2026
@sergio-bobillier sergio-bobillier marked this pull request as ready for review February 13, 2026 15:35
The class contains information about an index's total metrics, for
example, total number of documents, total size, etc.

At the time of writing it only returns three metrics, total number of
documents (#docs_count), total number of deleted documents
(#deleted_docs) and the ratio between these two (#deleted_ratio).
The method returns the index's total metrics like the number of
documents, total size, etc.
@sergio-bobillier sergio-bobillier merged commit 0facc91 into master Feb 20, 2026
2 checks passed
@sergio-bobillier sergio-bobillier deleted the sb-JAY-737-index-totals branch February 20, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants