|
4 | 4 | * you may not use this file except in compliance with the Elastic License. |
5 | 5 | */ |
6 | 6 | import { flatten, merge, sortBy, sum } from 'lodash'; |
7 | | -import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; |
| 7 | +import { TelemetryTask } from '.'; |
8 | 8 | import { AGENT_NAMES } from '../../../../common/agent_name'; |
9 | | -import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; |
10 | 9 | import { |
11 | | - PROCESSOR_EVENT, |
12 | | - SERVICE_NAME, |
13 | 10 | AGENT_NAME, |
14 | 11 | AGENT_VERSION, |
| 12 | + CLOUD_AVAILABILITY_ZONE, |
| 13 | + CLOUD_PROVIDER, |
| 14 | + CLOUD_REGION, |
15 | 15 | ERROR_GROUP_ID, |
16 | | - TRANSACTION_NAME, |
17 | 16 | PARENT_ID, |
| 17 | + PROCESSOR_EVENT, |
18 | 18 | SERVICE_FRAMEWORK_NAME, |
19 | 19 | SERVICE_FRAMEWORK_VERSION, |
20 | 20 | SERVICE_LANGUAGE_NAME, |
21 | 21 | SERVICE_LANGUAGE_VERSION, |
| 22 | + SERVICE_NAME, |
22 | 23 | SERVICE_RUNTIME_NAME, |
23 | 24 | SERVICE_RUNTIME_VERSION, |
| 25 | + TRANSACTION_NAME, |
24 | 26 | USER_AGENT_ORIGINAL, |
25 | | - CLOUD_AVAILABILITY_ZONE, |
26 | | - CLOUD_PROVIDER, |
27 | | - CLOUD_REGION, |
28 | 27 | } from '../../../../common/elasticsearch_fieldnames'; |
29 | | -import { Span } from '../../../../typings/es_schemas/ui/span'; |
30 | 28 | import { APMError } from '../../../../typings/es_schemas/ui/apm_error'; |
31 | | -import { TelemetryTask } from '.'; |
| 29 | +import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent'; |
| 30 | +import { Span } from '../../../../typings/es_schemas/ui/span'; |
| 31 | +import { Transaction } from '../../../../typings/es_schemas/ui/transaction'; |
32 | 32 | import { APMTelemetry } from '../types'; |
33 | 33 |
|
34 | 34 | const TIME_RANGES = ['1d', 'all'] as const; |
@@ -465,17 +465,17 @@ export const tasks: TelemetryTask[] = [ |
465 | 465 | { |
466 | 466 | name: 'integrations', |
467 | 467 | executor: async ({ transportRequest }) => { |
468 | | - const apmJobs = ['*-high_mean_response_time']; |
| 468 | + const apmJobs = ['apm-*', '*-high_mean_response_time']; |
469 | 469 |
|
470 | 470 | const response = (await transportRequest({ |
471 | 471 | method: 'get', |
472 | 472 | path: `/_ml/anomaly_detectors/${apmJobs.join(',')}`, |
473 | | - })) as { data?: { count: number } }; |
| 473 | + })) as { body?: { count: number } }; |
474 | 474 |
|
475 | 475 | return { |
476 | 476 | integrations: { |
477 | 477 | ml: { |
478 | | - all_jobs_count: response.data?.count ?? 0, |
| 478 | + all_jobs_count: response.body?.count ?? 0, |
479 | 479 | }, |
480 | 480 | }, |
481 | 481 | }; |
|
0 commit comments