mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-25 07:37:19 -04:00
[DOCS] Add ?human
query param in ILM explain API docs (#104791)
The ILM `_explain` API example responses included human-readable (time) fields, but the example URL didn't actually return those human-readable fields (only the raw fields).
This commit is contained in:
parent
3170f0958a
commit
8e28ca7e61
1 changed files with 15 additions and 10 deletions
|
@ -98,7 +98,7 @@ GET /_cluster/health?wait_for_status=green&timeout=10s
|
||||||
|
|
||||||
[source,console]
|
[source,console]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
GET my-index-000001/_ilm/explain
|
GET my-index-000001/_ilm/explain?human
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
// TEST[continued]
|
// TEST[continued]
|
||||||
|
|
||||||
|
@ -112,17 +112,22 @@ that the index is managed and in the `new` phase:
|
||||||
"my-index-000001": {
|
"my-index-000001": {
|
||||||
"index": "my-index-000001",
|
"index": "my-index-000001",
|
||||||
"index_creation_date_millis": 1538475653281, <1>
|
"index_creation_date_millis": 1538475653281, <1>
|
||||||
|
"index_creation_date": "2018-10-15T13:45:21.981Z",
|
||||||
"time_since_index_creation": "15s", <2>
|
"time_since_index_creation": "15s", <2>
|
||||||
"managed": true, <3>
|
"managed": true, <3>
|
||||||
"policy": "my_policy", <4>
|
"policy": "my_policy", <4>
|
||||||
"lifecycle_date_millis": 1538475653281, <5>
|
"lifecycle_date_millis": 1538475653281, <5>
|
||||||
|
"lifecycle_date": "2018-10-15T13:45:21.981Z",
|
||||||
"age": "15s", <6>
|
"age": "15s", <6>
|
||||||
"phase": "new",
|
"phase": "new",
|
||||||
"phase_time_millis": 1538475653317, <7>
|
"phase_time_millis": 1538475653317, <7>
|
||||||
|
"phase_time": "2018-10-15T13:45:22.577Z",
|
||||||
"action": "complete"
|
"action": "complete"
|
||||||
"action_time_millis": 1538475653317, <8>
|
"action_time_millis": 1538475653317, <8>
|
||||||
|
"action_time": "2018-10-15T13:45:22.577Z",
|
||||||
"step": "complete",
|
"step": "complete",
|
||||||
"step_time_millis": 1538475653317 <9>
|
"step_time_millis": 1538475653317, <9>
|
||||||
|
"step_time": "2018-10-15T13:45:22.577Z"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue