mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 18:51:07 -04:00
[APM] Update usage of apmAlertsClient (#163827)
Co-authored-by: Achyut Jhunjhunwala <achyut.jhunjhunwala@elastic.co>
This commit is contained in:
parent
78250515ff
commit
0ce9d335bb
1 changed files with 12 additions and 10 deletions
|
@ -285,16 +285,18 @@ export async function getApmServiceSummary({
|
||||||
}),
|
}),
|
||||||
apmAlertsClient.search({
|
apmAlertsClient.search({
|
||||||
size: 100,
|
size: 100,
|
||||||
// @ts-expect-error types for apm alerts client needs to be reviewed
|
track_total_hits: false,
|
||||||
query: {
|
body: {
|
||||||
bool: {
|
query: {
|
||||||
filter: [
|
bool: {
|
||||||
...termQuery(ALERT_RULE_PRODUCER, 'apm'),
|
filter: [
|
||||||
...termQuery(ALERT_STATUS, ALERT_STATUS_ACTIVE),
|
...termQuery(ALERT_RULE_PRODUCER, 'apm'),
|
||||||
...rangeQuery(start, end),
|
...termQuery(ALERT_STATUS, ALERT_STATUS_ACTIVE),
|
||||||
...termQuery(SERVICE_NAME, serviceName),
|
...rangeQuery(start, end),
|
||||||
...environmentQuery(environment),
|
...termQuery(SERVICE_NAME, serviceName),
|
||||||
],
|
...environmentQuery(environment),
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue