Skip to content

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

Open
sergio-bobillier wants to merge 2 commits intomasterfrom
sb-JAY-737-index-totals
Open

[JAY-737] Allow the retrieval of total metrics for the indexes#57
sergio-bobillier wants to merge 2 commits intomasterfrom
sb-JAY-737-index-totals

Conversation

@sergio-bobillier
Copy link
Collaborator

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

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.
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

Comments