|
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 | +import { ML_GROUP_NAME_APM } from '../../anomaly_detection/create_anomaly_detection_jobs'; |
32 | 33 | import { APMTelemetry } from '../types'; |
33 | 34 |
|
34 | 35 | const TIME_RANGES = ['1d', 'all'] as const; |
@@ -465,11 +466,9 @@ export const tasks: TelemetryTask[] = [ |
465 | 466 | { |
466 | 467 | name: 'integrations', |
467 | 468 | executor: async ({ transportRequest }) => { |
468 | | - const apmJobs = ['*-high_mean_response_time']; |
469 | | - |
470 | 469 | const response = (await transportRequest({ |
471 | 470 | method: 'get', |
472 | | - path: `/_ml/anomaly_detectors/${apmJobs.join(',')}`, |
| 471 | + path: `/_ml/anomaly_detectors/${ML_GROUP_NAME_APM}-*`, |
473 | 472 | })) as { data?: { count: number } }; |
474 | 473 |
|
475 | 474 | return { |
|
0 commit comments