fix: must use term with rollup (#108)

Co-authored-by: hardy <luohf@infinilabs.com>
This commit is contained in:
Hardy 2025-01-25 17:13:23 +08:00 committed by GitHub
parent 52c1e4dbb7
commit ae295d88b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -242,7 +242,7 @@ POST $[[SETUP_INDEX_PREFIX]]alert-rule/$[[SETUP_DOC_TYPE]]/builtin-cal8n7p7h710d
"bool": {
"must": [
{
"match": {
"term": {
"payload.elasticsearch.cluster_health.status": "red"
}
},
@ -400,7 +400,7 @@ POST $[[SETUP_INDEX_PREFIX]]alert-rule/$[[SETUP_DOC_TYPE]]/builtin-calavvp7h710d
".infini_metrics"
],
"filter": {},
"raw_filter": {"bool":{"must":[{"match":{"payload.elasticsearch.index_health.status":"red"}},{"term":{"metadata.name":{"value":"index_health"}}}]}},
"raw_filter": {"bool":{"must":[{"term":{"payload.elasticsearch.index_health.status":"red"}},{"term":{"metadata.name":{"value":"index_health"}}}]}},
"time_field": "timestamp",
"context": {
"fields": null