Remove _type term filters from cluster alert watches (#38819) (#38826)

Backport of https://github.com/elastic/elasticsearch/pull/38819. Original message:

This PR removes usages of the `_type` field in `_search` requests issued from Monitoring code.
This commit is contained in:
Shaunak Kashyap 2019-02-12 19:54:36 -08:00 committed by GitHub
parent 57f69082fd
commit a9178b3239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 52 deletions

View File

@ -46,21 +46,10 @@
"cluster_uuid": "{{ctx.metadata.xpack.cluster_uuid}}"
}
},
{
"bool": {
"should": [
{
"term": {
"_type": "cluster_state"
}
},
{
"term": {
"type": "cluster_stats"
}
}
]
}
},
{
"range": {

View File

@ -39,21 +39,10 @@
"_id": "{{ctx.metadata.xpack.cluster_uuid}}"
}
},
{
"bool": {
"should": [
{
"term": {
"_type": "cluster_stats"
}
},
{
"term": {
"type": "cluster_stats"
}
}
]
}
},
{
"range": {

View File

@ -43,14 +43,6 @@
}
}
},
{
"bool": {
"should": [
{
"term": {
"_type": "kibana_stats"
}
},
{
"term": {
"type": "kibana_stats"
@ -58,9 +50,6 @@
}
]
}
}
]
}
},
"aggs": {
"group_by_kibana": {

View File

@ -43,14 +43,6 @@
}
}
},
{
"bool": {
"should": [
{
"term": {
"_type": "logstash_stats"
}
},
{
"term": {
"type": "logstash_stats"
@ -58,9 +50,6 @@
}
]
}
}
]
}
},
"aggs": {
"group_by_logstash": {