Skip to content

Commit 4cbd237

Browse files
committed
Merge branch 'master' of github.com:elastic/kibana into implement/improve-kbn-client-ssl
2 parents e5ed877 + e94db63 commit 4cbd237

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

docs/settings/apm-settings.asciidoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ Changing these settings may disable features of the APM App.
6161
| `xpack.observability.annotations.index`
6262
| Index name where Observability annotations are stored. Defaults to `observability-annotations`.
6363

64+
| `xpack.apm.searchAggregatedTransactions`
65+
| experimental[] Enables Transaction histogram metrics. Defaults to `false`. When `true`, additional configuration in APM Server is required.
66+
See {apm-server-ref-v}/transaction-metrics.html[Configure transaction metrics] for more information.
67+
6468
| `apm_oss.indexPattern` {ess-icon}
6569
| The index pattern used for integrations with Machine Learning and Query Bar.
6670
It must match all apm indices. Defaults to `apm-*`.

x-pack/plugins/uptime/server/lib/requests/__tests__/get_latest_monitor.test.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ describe('getLatestMonitor', () => {
1717
query: {
1818
bool: {
1919
filter: [
20+
{
21+
exists: {
22+
field: 'summary',
23+
},
24+
},
2025
{
2126
range: {
2227
'@timestamp': {

x-pack/plugins/uptime/server/lib/requests/get_latest_monitor.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ export interface GetLatestMonitorParams {
1818
monitorId?: string | null;
1919

2020
observerLocation?: string;
21-
22-
status?: string;
2321
}
2422

2523
// Get The monitor latest state sorted by timestamp with date range
@@ -30,14 +28,14 @@ export const getLatestMonitor: UMElasticsearchQueryFn<GetLatestMonitorParams, Pi
3028
dateEnd,
3129
monitorId,
3230
observerLocation,
33-
status,
3431
}) => {
3532
const params = {
3633
index: dynamicSettings.heartbeatIndices,
3734
body: {
3835
query: {
3936
bool: {
4037
filter: [
38+
{ exists: { field: 'summary' } },
4139
{
4240
range: {
4341
'@timestamp': {
@@ -46,7 +44,6 @@ export const getLatestMonitor: UMElasticsearchQueryFn<GetLatestMonitorParams, Pi
4644
},
4745
},
4846
},
49-
...(status ? [{ term: { 'monitor.status': status } }] : []),
5047
...(monitorId ? [{ term: { 'monitor.id': monitorId } }] : []),
5148
...(observerLocation ? [{ term: { 'observer.geo.name': observerLocation } }] : []),
5249
],

0 commit comments

Comments
 (0)