Skip to content

Commit

Permalink
Merge pull request #17 from dbason/index-updates
Browse files Browse the repository at this point in the history
Missed keyword
  • Loading branch information
dbason authored Jul 1, 2022
2 parents 8899083 + a08a491 commit 5c66314
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions public/utils/requests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function getAnomaliesQuery(range: Range, granularity: Granularity, clusterId: st
"aggs": {
"component": {
"terms": {
"field": "kubernetes_component.keyword",
"field": "kubernetes_component",
"order": {
"_count": "asc"
},
Expand All @@ -331,8 +331,8 @@ function getAnomaliesQuery(range: Range, granularity: Granularity, clusterId: st
},
"query": {
"bool": {
"must": [...must(clusterId), {"exists": { "field": "kubernetes_component.keyword"}}],
"must_not": [{"term": {"kubernetes_component.keyword": ""}}],
"must": [...must(clusterId), {"exists": { "field": "kubernetes_component"}}],
"must_not": [{"term": {"kubernetes_component": ""}}],
"filter": [{
"range": {
"time": {
Expand Down Expand Up @@ -360,7 +360,7 @@ function getControlPlaneBreakdownQuery(range: Range, clusterId: string) {
"terms": {"field": "cluster_id"},
"aggs": {
"component_name": {
"terms": {"field": "kubernetes_component.keyword"},
"terms": {"field": "kubernetes_component"},
"aggs": {
"anomaly_level": {"terms": {"field": "anomaly_level"}}
},
Expand Down

0 comments on commit 5c66314

Please sign in to comment.