mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
adding autocomplete rules for lifecycle management APIs (#22768)
* adding autocomplete rules for lifecycle management APIs * updating ILM policy specs * fixing broken documentation link for remove policy * adding templates for phases for put ilm request * adding _name and _ip to all allocate blocks and templates * adding correct params for rollover action
This commit is contained in:
parent
d3330a6ea9
commit
5df466e4b7
13 changed files with 274 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ilm.delete_lifecycle": {
|
||||
"methods": [
|
||||
"DELETE"
|
||||
],
|
||||
"patterns": [
|
||||
"_ilm/policy/{policy}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-delete-lifecycle.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"ilm.explain_lifecycle": {
|
||||
"url_params": {
|
||||
"human": "__flag__"
|
||||
},
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_ilm/explain"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-explain-lifecycle.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"ilm.get_lifecycle": {
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_ilm/policy/{policy}",
|
||||
"_ilm/policy"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-lifecycle.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ilm.get_status": {
|
||||
"methods": [
|
||||
"GET"
|
||||
],
|
||||
"patterns": [
|
||||
"_ilm/status"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-get-status.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ilm.move_to_step": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_ilm/move/{indices}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-move-to-step.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ilm.put_lifecycle": {
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"_ilm/policy/{policy}"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-put-lifecycle.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"ilm.remove_policy": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_ilm/remove",
|
||||
"_ilm/remove"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-remove-policy.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ilm.retry": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_ilm/retry"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-retry-policy.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ilm.set_policy": {
|
||||
"methods": [
|
||||
"PUT"
|
||||
],
|
||||
"patterns": [
|
||||
"{indices}/_ilm/{new_policy}"
|
||||
],
|
||||
"documentation": "http://www.elastic.co/guide/en/index_lifecycle/current/index_lifecycle.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ilm.start": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_ilm/start"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-start.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"ilm.stop": {
|
||||
"methods": [
|
||||
"POST"
|
||||
],
|
||||
"patterns": [
|
||||
"_ilm/stop"
|
||||
],
|
||||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/ilm-stop.html"
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"ilm.move_to_step": {
|
||||
"data_autocomplete_rules": {
|
||||
"current_step": {
|
||||
"phase": "",
|
||||
"action": "",
|
||||
"name": ""
|
||||
},
|
||||
"next_step": {
|
||||
"phase": "",
|
||||
"action": "",
|
||||
"name": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,132 @@
|
|||
{
|
||||
"ilm.put_lifecycle": {
|
||||
"data_autocomplete_rules": {
|
||||
"phases": {
|
||||
"warm": {
|
||||
"__template": {
|
||||
"after": "1d",
|
||||
"actions": {
|
||||
"allocate": {
|
||||
"number_of_replicas": 1,
|
||||
"include": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
},
|
||||
"exclude": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
},
|
||||
"require": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
}
|
||||
},
|
||||
"shrink": {
|
||||
"number_of_shards": 1
|
||||
},
|
||||
"forcemerge": {
|
||||
"max_num_segments": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"after": "1d",
|
||||
"actions": {
|
||||
"allocate": {
|
||||
"number_of_replicas": 1,
|
||||
"include": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
},
|
||||
"exclude": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
},
|
||||
"require": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
}
|
||||
},
|
||||
"shrink": {
|
||||
"number_of_shards": 1
|
||||
},
|
||||
"forcemerge": {
|
||||
"max_num_segments": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"cold": {
|
||||
"__template": {
|
||||
"after": "1d",
|
||||
"actions": {
|
||||
"allocate": {
|
||||
"number_of_replicas": 1,
|
||||
"include": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
},
|
||||
"exclude": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
},
|
||||
"require": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"after": "1d",
|
||||
"actions": {
|
||||
"allocate": {
|
||||
"number_of_replicas": 1,
|
||||
"include": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
},
|
||||
"exclude": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
},
|
||||
"require": {
|
||||
"_name": "",
|
||||
"_ip": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"hot": {
|
||||
"__template": {
|
||||
"after": "1d",
|
||||
"actions": {
|
||||
"rollover": {
|
||||
"max_age": "7d",
|
||||
"max_docs": 1000,
|
||||
"max_size": "5gb"
|
||||
}
|
||||
}
|
||||
},
|
||||
"after": "1d",
|
||||
"actions": {
|
||||
"rollover": {
|
||||
"max_age": "7d",
|
||||
"max_docs": 1000,
|
||||
"max_size": "5gb"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"__template": {
|
||||
"after": "1d",
|
||||
"actions": {
|
||||
"delete": {}
|
||||
}
|
||||
},
|
||||
"after": "1d",
|
||||
"actions": {
|
||||
"delete": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue