-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[DOCS] Document bytes and time params in cat API docs
#47672
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Pinging @elastic/es-docs (>docs) |
|
Pinging @elastic/es-core-features (:Core/Features/CAT APIs) |
|
@elasticmachine run elasticsearch-ci/2 |
1 similar comment
|
@elasticmachine run elasticsearch-ci/2 |
| A value of `-1` indicates {es} was unable to compute this number. | ||
| end::memory[] | ||
|
|
||
| tag::name[] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
While the parameters are supported for the APIs, they may not influence the result. I think we should only add the documentation to the For example These columns are not Could you update only those endpoints that will be influenced by the parameters ? I have included a full list below. |
I logged #47755 to get better validation around these APIs. |
|
Thanks for the feedback @jakelandis. I scaled back the changes with 1904efc. |
|
@elasticmachine update branch |
| include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s] | ||
|
|
||
| include::{docdir}/rest-api/common-parms.asciidoc[tag=time] | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one should include bytes too
GET _cat/indices?h=ftt,ss&bytes=g&time=ms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like bytes is already documented for this API:
https://github.com/elastic/elasticsearch/blame/be233f3d235b39d9315fc79974e9b69f20b1fe38/docs/reference/cat/indices.asciidoc#L48
| include::{docdir}/rest-api/common-parms.asciidoc[tag=cat-s] | ||
|
|
||
| include::{docdir}/rest-api/common-parms.asciidoc[tag=time] | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this should also include bytes
GET _cat/shards?h=sm&bytes=b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like bytes is already documented for this API:
https://github.com/elastic/elasticsearch/blame/be233f3d235b39d9315fc79974e9b69f20b1fe38/docs/reference/cat/shards.asciidoc#L29
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (pending the two minor changes)
Thanks for doing this!
Changes
bytesandtimeparameters to cat API docs and JSON specsCloses #30202