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({
|
||||
size: 100,
|
||||
// @ts-expect-error types for apm alerts client needs to be reviewed
|
||||
query: {
|
||||
bool: {
|
||||
filter: [
|
||||
...termQuery(ALERT_RULE_PRODUCER, 'apm'),
|
||||
...termQuery(ALERT_STATUS, ALERT_STATUS_ACTIVE),
|
||||
...rangeQuery(start, end),
|
||||
...termQuery(SERVICE_NAME, serviceName),
|
||||
...environmentQuery(environment),
|
||||
],
|
||||
track_total_hits: false,
|
||||
body: {
|
||||
query: {
|
||||
bool: {
|
||||
filter: [
|
||||
...termQuery(ALERT_RULE_PRODUCER, 'apm'),
|
||||
...termQuery(ALERT_STATUS, ALERT_STATUS_ACTIVE),
|
||||
...rangeQuery(start, end),
|
||||
...termQuery(SERVICE_NAME, serviceName),
|
||||
...environmentQuery(environment),
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue