[Monitoring] Use ctx.metadata.xpack not just ctx.metadata (elastic/x-pack-elasticsearch#1974)

This tweaks a recent fix so that it uses the right metadata variable.

Original commit: elastic/x-pack-elasticsearch@af9d9b0e41
This commit is contained in:
Chris Earle 2017-07-11 18:04:38 -04:00 committed by GitHub
parent 5ed683538d
commit 44eda0962e
4 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@
"filter": [ "filter": [
{ {
"term": { "term": {
"cluster_uuid": "{{ctx.metadata.cluster_uuid}}" "cluster_uuid": "{{ctx.metadata.xpack.cluster_uuid}}"
} }
}, },
{ {

View File

@ -36,7 +36,7 @@
"filter": [ "filter": [
{ {
"term": { "term": {
"_id": "{{ctx.metadata.cluster_uuid}}" "_id": "{{ctx.metadata.xpack.cluster_uuid}}"
} }
}, },
{ {

View File

@ -33,7 +33,7 @@
"filter": [ "filter": [
{ {
"term": { "term": {
"cluster_uuid": "{{ctx.metadata.cluster_uuid}}" "cluster_uuid": "{{ctx.metadata.xpack.cluster_uuid}}"
} }
}, },
{ {

View File

@ -33,7 +33,7 @@
"filter": [ "filter": [
{ {
"term": { "term": {
"cluster_uuid": "{{ctx.metadata.cluster_uuid}}" "cluster_uuid": "{{ctx.metadata.xpack.cluster_uuid}}"
} }
}, },
{ {