Hi,
I built monitor where condition “Status” != “Reached” and “Gateway” == “ABC”. This condition is working fine.
I want to know about creating Trigger condition for a monitor.
monitor condition-
{
"size": 0,
"query": {
"bool": {
"filter": [
{
"range": {
"@timestamp": {
"from": "{{period_end}}||-1h",
"to": "{{period_end}}",
"include_lower": true,
"include_upper": true,
"format": "epoch_millis",
"boost": 1
}
}
},
{
"bool": {
"must_not": [
{
"match_phrase": {
"STATUS": {
"query": "Reached",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
{
"match_phrase": {
"Gateway": {
"query": "ABC",
"slop": 0,
"zero_terms_query": "NONE",
"boost": 1
}
}
}
],
"adjust_pure_negative": true,
"boost": 1
}
},
"aggregations": {}
}
Trigger condition-
Generate trigger when (status != “Reached” / total docs count) for “Gateway” == “ABC” is greater than 5%.
Any thoughts/guidance would be really appreciated.
Thank you in Advance.