mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
Merge tsconfig and x-pack/tsconfig files (#94519)
* merge all the typings at root level * merge x-pack/tsconfig into tsconfig.json * fix tsconfig after changes in master * remove unnecessary typings * update paths to the global typings * update paths to the global elaticsearch typings * fix import * fix path to typings/elasticsearch in fleet plugin * remove file deleted from master * fix lint errors
This commit is contained in:
parent
b71c6092c9
commit
ee84e0b0b7
101 changed files with 188 additions and 352 deletions
|
@ -14,7 +14,6 @@ import { Project } from './project';
|
||||||
export const PROJECTS = [
|
export const PROJECTS = [
|
||||||
new Project(resolve(REPO_ROOT, 'tsconfig.json')),
|
new Project(resolve(REPO_ROOT, 'tsconfig.json')),
|
||||||
new Project(resolve(REPO_ROOT, 'test/tsconfig.json'), { name: 'kibana/test' }),
|
new Project(resolve(REPO_ROOT, 'test/tsconfig.json'), { name: 'kibana/test' }),
|
||||||
new Project(resolve(REPO_ROOT, 'x-pack/tsconfig.json')),
|
|
||||||
new Project(resolve(REPO_ROOT, 'x-pack/test/tsconfig.json'), { name: 'x-pack/test' }),
|
new Project(resolve(REPO_ROOT, 'x-pack/test/tsconfig.json'), { name: 'x-pack/test' }),
|
||||||
new Project(resolve(REPO_ROOT, 'src/core/tsconfig.json')),
|
new Project(resolve(REPO_ROOT, 'src/core/tsconfig.json')),
|
||||||
new Project(resolve(REPO_ROOT, 'x-pack/plugins/drilldowns/url_drilldown/tsconfig.json'), {
|
new Project(resolve(REPO_ROOT, 'x-pack/plugins/drilldowns/url_drilldown/tsconfig.json'), {
|
||||||
|
|
|
@ -2,12 +2,11 @@
|
||||||
"extends": "../tsconfig.base.json",
|
"extends": "../tsconfig.base.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"incremental": false,
|
"incremental": false,
|
||||||
"types": ["node", "flot"]
|
"types": ["node"]
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"**/*",
|
"**/*",
|
||||||
"../typings/elastic__node_crypto.d.ts",
|
"../typings/**/*",
|
||||||
"typings/**/*",
|
|
||||||
"../packages/kbn-test/types/ftr_globals/**/*"
|
"../packages/kbn-test/types/ftr_globals/**/*"
|
||||||
],
|
],
|
||||||
"exclude": ["plugin_functional/plugins/**/*", "interpreter_functional/plugins/**/*"],
|
"exclude": ["plugin_functional/plugins/**/*", "interpreter_functional/plugins/**/*"],
|
||||||
|
|
28
test/typings/rison_node.d.ts
vendored
28
test/typings/rison_node.d.ts
vendored
|
@ -1,28 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
|
||||||
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
|
||||||
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
|
||||||
* Side Public License, v 1.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare module 'rison-node' {
|
|
||||||
export type RisonValue = undefined | null | boolean | number | string | RisonObject | RisonArray;
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
||||||
export interface RisonArray extends Array<RisonValue> {}
|
|
||||||
|
|
||||||
export interface RisonObject {
|
|
||||||
[key: string]: RisonValue;
|
|
||||||
}
|
|
||||||
|
|
||||||
export const decode: (input: string) => RisonValue;
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
||||||
export const decode_object: (input: string) => RisonObject;
|
|
||||||
|
|
||||||
export const encode: <Input extends RisonValue>(input: Input) => string;
|
|
||||||
|
|
||||||
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
||||||
export const encode_object: <Input extends RisonObject>(input: Input) => string;
|
|
||||||
}
|
|
|
@ -3,11 +3,25 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"incremental": false
|
"incremental": false
|
||||||
},
|
},
|
||||||
"include": ["kibana.d.ts", "src/**/*", "typings/**/*"],
|
"include": [
|
||||||
|
"kibana.d.ts",
|
||||||
|
"typings/**/*",
|
||||||
|
|
||||||
|
"src/cli/**/*",
|
||||||
|
"src/dev/**/*",
|
||||||
|
"src/fixtures/**/*",
|
||||||
|
"src/legacy/**/*",
|
||||||
|
"src/optimize/**/*",
|
||||||
|
|
||||||
|
"x-pack/mocks.ts",
|
||||||
|
"x-pack/typings/**/*",
|
||||||
|
"x-pack/tasks/**/*",
|
||||||
|
"x-pack/plugins/cases/**/*",
|
||||||
|
"x-pack/plugins/lists/**/*",
|
||||||
|
"x-pack/plugins/security_solution/**/*",
|
||||||
|
],
|
||||||
"exclude": [
|
"exclude": [
|
||||||
"src/**/__fixtures__/**/*",
|
"x-pack/plugins/security_solution/cypress/**/*"
|
||||||
"src/core/**/*",
|
|
||||||
"src/plugins/**/*"
|
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "./src/core/tsconfig.json" },
|
{ "path": "./src/core/tsconfig.json" },
|
||||||
|
@ -64,5 +78,64 @@
|
||||||
{ "path": "./src/plugins/visualize/tsconfig.json" },
|
{ "path": "./src/plugins/visualize/tsconfig.json" },
|
||||||
{ "path": "./src/plugins/index_pattern_management/tsconfig.json" },
|
{ "path": "./src/plugins/index_pattern_management/tsconfig.json" },
|
||||||
{ "path": "./src/plugins/index_pattern_field_editor/tsconfig.json" },
|
{ "path": "./src/plugins/index_pattern_field_editor/tsconfig.json" },
|
||||||
|
|
||||||
|
{ "path": "./x-pack/plugins/actions/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/alerting/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/apm/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/beats_management/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/canvas/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/cloud/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/console_extensions/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/data_enhanced/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/dashboard_mode/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/discover_enhanced/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/drilldowns/url_drilldown/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/embeddable_enhanced/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/encrypted_saved_objects/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/enterprise_search/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/event_log/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/features/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/file_upload/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/fleet/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/global_search_bar/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/global_search_providers/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/global_search/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/graph/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/grokdebugger/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/infra/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/ingest_pipelines/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/lens/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/license_management/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/licensing/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/logstash/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/maps_legacy_licensing/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/maps/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/ml/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/monitoring/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/observability/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/osquery/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/painless_lab/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/saved_objects_tagging/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/searchprofiler/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/security/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/snapshot_restore/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/spaces/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/stack_alerts/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/task_manager/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/telemetry_collection_xpack/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/transform/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/translations/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/triggers_actions_ui/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/ui_actions_enhanced/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/upgrade_assistant/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/runtime_fields/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/index_management/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/watcher/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/rollup/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/remote_clusters/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/cross_cluster_replication/tsconfig.json"},
|
||||||
|
{ "path": "./x-pack/plugins/index_lifecycle_management/tsconfig.json"},
|
||||||
|
{ "path": "./x-pack/plugins/uptime/tsconfig.json" },
|
||||||
|
{ "path": "./x-pack/plugins/xpack_legacy/tsconfig.json" }
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,14 +6,4 @@
|
||||||
* Side Public License, v 1.
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare module '*.html' {
|
declare module 'cytoscape-dagre';
|
||||||
const template: string;
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
|
||||||
export default template;
|
|
||||||
}
|
|
||||||
|
|
||||||
type MethodKeysOf<T> = {
|
|
||||||
[K in keyof T]: T[K] extends (...args: any[]) => any ? K : never;
|
|
||||||
}[keyof T];
|
|
||||||
|
|
||||||
type PublicMethodsOf<T> = Pick<T, MethodKeysOf<T>>;
|
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
* or more contributor license agreements. Licensed under the Elastic License
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||||
* 2.0.
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Unionize, UnionToIntersection } from 'utility-types';
|
import { Unionize, UnionToIntersection } from 'utility-types';
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
* or more contributor license agreements. Licensed under the Elastic License
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||||
* 2.0.
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ValuesType } from 'utility-types';
|
import { ValuesType } from 'utility-types';
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
* or more contributor license agreements. Licensed under the Elastic License
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||||
* 2.0.
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// This type needs to still exist due to apollo-link-http-common hasn't yet updated
|
// This type needs to still exist due to apollo-link-http-common hasn't yet updated
|
2
typings/index.d.ts
vendored
2
typings/index.d.ts
vendored
|
@ -24,6 +24,8 @@ declare module '*.svg' {
|
||||||
export default content;
|
export default content;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare module 'axios/lib/adapters/xhr';
|
||||||
|
|
||||||
// Storybook references this module. It's @ts-ignored in the codebase but when
|
// Storybook references this module. It's @ts-ignored in the codebase but when
|
||||||
// built into its dist it strips that out. Add it here to avoid a type checking
|
// built into its dist it strips that out. Add it here to avoid a type checking
|
||||||
// error.
|
// error.
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
* or more contributor license agreements. Licensed under the Elastic License
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||||
* 2.0.
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare module 'js-levenshtein' {
|
declare module 'js-levenshtein' {
|
|
@ -1,8 +1,9 @@
|
||||||
/*
|
/*
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
* or more contributor license agreements. Licensed under the Elastic License
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
* 2.0 and the Server Side Public License, v 1; you may not use this file except
|
||||||
* 2.0.
|
* in compliance with, at your election, the Elastic License 2.0 or the Server
|
||||||
|
* Side Public License, v 1.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare module 'react-vis';
|
declare module 'react-vis';
|
|
@ -9,7 +9,7 @@
|
||||||
"public/**/*.tsx",
|
"public/**/*.tsx",
|
||||||
"server/**/*.ts",
|
"server/**/*.ts",
|
||||||
"common/**/*.ts",
|
"common/**/*.ts",
|
||||||
"../../typings/**/*",
|
"../../../typings/**/*",
|
||||||
],
|
],
|
||||||
"exclude": [],
|
"exclude": [],
|
||||||
"references": [
|
"references": [
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"public/**/*.ts",
|
"public/**/*.ts",
|
||||||
"public/**/*.tsx",
|
"public/**/*.tsx",
|
||||||
"server/**/*.ts",
|
"server/**/*.ts",
|
||||||
"../../typings/**/*"
|
"../../../typings/**/*"
|
||||||
],
|
],
|
||||||
"exclude": [],
|
"exclude": [],
|
||||||
"references": [
|
"references": [
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
"public/**/*.ts",
|
"public/**/*.ts",
|
||||||
"public/**/*.tsx",
|
"public/**/*.tsx",
|
||||||
"server/**/*.ts",
|
"server/**/*.ts",
|
||||||
"../../typings/**/*"
|
"../../../typings/**/*"
|
||||||
],
|
],
|
||||||
"exclude": [],
|
"exclude": [],
|
||||||
"references": [
|
"references": [
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
ERROR_GROUP_ID,
|
ERROR_GROUP_ID,
|
||||||
PROCESSOR_EVENT,
|
PROCESSOR_EVENT,
|
||||||
|
|
|
@ -19,7 +19,7 @@ import { EuiThemeProvider } from '../../../../../src/plugins/kibana_react/common
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
} from '../../../../typings/elasticsearch';
|
} from '../../../../../typings/elasticsearch';
|
||||||
import { PromiseReturnType } from '../../../observability/typings/common';
|
import { PromiseReturnType } from '../../../observability/typings/common';
|
||||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||||
import { APMConfig } from '../../server';
|
import { APMConfig } from '../../server';
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { ApiKeyAuth, BasicAuth } from '@elastic/elasticsearch/lib/pool';
|
||||||
import {
|
import {
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
} from '../../../../typings/elasticsearch';
|
} from '../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
export type ESClient = ReturnType<typeof getEsClient>;
|
export type ESClient = ReturnType<typeof getEsClient>;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { ThresholdMetActionGroupId } from '../../../common/alert_types';
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
} from '../../../../../typings/elasticsearch';
|
} from '../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
AlertInstanceContext,
|
AlertInstanceContext,
|
||||||
AlertInstanceState,
|
AlertInstanceState,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { MetricsAggregationResponsePart } from '../../../../../../typings/elasticsearch/aggregations';
|
import { MetricsAggregationResponsePart } from '../../../../../../../typings/elasticsearch/aggregations';
|
||||||
import {
|
import {
|
||||||
PROCESSOR_EVENT,
|
PROCESSOR_EVENT,
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { RequestParams } from '@elastic/elasticsearch';
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
} from '../../../../../../typings/elasticsearch';
|
} from '../../../../../../../typings/elasticsearch';
|
||||||
import { ApmIndicesConfig } from '../../settings/apm_indices/get_apm_indices';
|
import { ApmIndicesConfig } from '../../settings/apm_indices/get_apm_indices';
|
||||||
import { tasks } from './tasks';
|
import { tasks } from './tasks';
|
||||||
import { APMDataTelemetry } from '../types';
|
import { APMDataTelemetry } from '../types';
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import { ValuesType } from 'utility-types';
|
import { ValuesType } from 'utility-types';
|
||||||
import { flatten, merge, sortBy, sum, pickBy } from 'lodash';
|
import { flatten, merge, sortBy, sum, pickBy } from 'lodash';
|
||||||
import { AggregationOptionsByType } from '../../../../../../typings/elasticsearch/aggregations';
|
import { AggregationOptionsByType } from '../../../../../../../typings/elasticsearch/aggregations';
|
||||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||||
import { TelemetryTask } from '.';
|
import { TelemetryTask } from '.';
|
||||||
import { AGENT_NAMES, RUM_AGENT_NAMES } from '../../../../common/agent_name';
|
import { AGENT_NAMES, RUM_AGENT_NAMES } from '../../../../common/agent_name';
|
||||||
|
|
|
@ -11,8 +11,8 @@ import {
|
||||||
processSignificantTermAggs,
|
processSignificantTermAggs,
|
||||||
TopSigTerm,
|
TopSigTerm,
|
||||||
} from '../process_significant_term_aggs';
|
} from '../process_significant_term_aggs';
|
||||||
import { AggregationOptionsByType } from '../../../../../../typings/elasticsearch/aggregations';
|
import { AggregationOptionsByType } from '../../../../../../../typings/elasticsearch/aggregations';
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
environmentQuery,
|
environmentQuery,
|
||||||
rangeQuery,
|
rangeQuery,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import { TRANSACTION_DURATION } from '../../../../common/elasticsearch_fieldnames';
|
import { TRANSACTION_DURATION } from '../../../../common/elasticsearch_fieldnames';
|
||||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||||
import { withApmSpan } from '../../../utils/with_apm_span';
|
import { withApmSpan } from '../../../utils/with_apm_span';
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { isEmpty, dropRightWhile } from 'lodash';
|
import { isEmpty, dropRightWhile } from 'lodash';
|
||||||
import { AggregationOptionsByType } from '../../../../../../typings/elasticsearch/aggregations';
|
import { AggregationOptionsByType } from '../../../../../../../typings/elasticsearch/aggregations';
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import { TRANSACTION_DURATION } from '../../../../common/elasticsearch_fieldnames';
|
import { TRANSACTION_DURATION } from '../../../../common/elasticsearch_fieldnames';
|
||||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||||
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
import { Setup, SetupTimeRange } from '../../helpers/setup_request';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import { TRANSACTION_DURATION } from '../../../../common/elasticsearch_fieldnames';
|
import { TRANSACTION_DURATION } from '../../../../common/elasticsearch_fieldnames';
|
||||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||||
import { withApmSpan } from '../../../utils/with_apm_span';
|
import { withApmSpan } from '../../../utils/with_apm_span';
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AggregationOptionsByType } from '../../../../../../typings/elasticsearch/aggregations';
|
import { AggregationOptionsByType } from '../../../../../../../typings/elasticsearch/aggregations';
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
environmentQuery,
|
environmentQuery,
|
||||||
rangeQuery,
|
rangeQuery,
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { orderBy } from 'lodash';
|
||||||
import {
|
import {
|
||||||
AggregationOptionsByType,
|
AggregationOptionsByType,
|
||||||
AggregationResultOf,
|
AggregationResultOf,
|
||||||
} from '../../../../../typings/elasticsearch/aggregations';
|
} from '../../../../../../typings/elasticsearch/aggregations';
|
||||||
|
|
||||||
export interface TopSigTerm {
|
export interface TopSigTerm {
|
||||||
fieldName: string;
|
fieldName: string;
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
ERROR_GROUP_ID,
|
ERROR_GROUP_ID,
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SortOptions } from '../../../../../typings/elasticsearch/aggregations';
|
import { SortOptions } from '../../../../../../typings/elasticsearch/aggregations';
|
||||||
import {
|
import {
|
||||||
ERROR_CULPRIT,
|
ERROR_CULPRIT,
|
||||||
ERROR_EXC_HANDLED,
|
ERROR_EXC_HANDLED,
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { OBSERVER_VERSION_MAJOR } from '../../../../../common/elasticsearch_fiel
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESFilter,
|
ESFilter,
|
||||||
} from '../../../../../../../typings/elasticsearch';
|
} from '../../../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Adds a range query to the ES request to exclude legacy data
|
Adds a range query to the ES request to exclude legacy data
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
} from '../../../../../../../typings/elasticsearch';
|
} from '../../../../../../../../typings/elasticsearch';
|
||||||
import { unwrapEsResponse } from '../../../../../../observability/server';
|
import { unwrapEsResponse } from '../../../../../../observability/server';
|
||||||
import { ProcessorEvent } from '../../../../../common/processor_event';
|
import { ProcessorEvent } from '../../../../../common/processor_event';
|
||||||
import { APMError } from '../../../../../typings/es_schemas/ui/apm_error';
|
import { APMError } from '../../../../../typings/es_schemas/ui/apm_error';
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { ProcessorEvent } from '../../../../../common/processor_event';
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESFilter,
|
ESFilter,
|
||||||
} from '../../../../../../../typings/elasticsearch';
|
} from '../../../../../../../../typings/elasticsearch';
|
||||||
import { APMEventESSearchRequest } from '.';
|
import { APMEventESSearchRequest } from '.';
|
||||||
import {
|
import {
|
||||||
ApmIndicesConfig,
|
ApmIndicesConfig,
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { APMRequestHandlerContext } from '../../../../routes/typings';
|
||||||
import {
|
import {
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
} from '../../../../../../../typings/elasticsearch';
|
} from '../../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
callAsyncWithDebug,
|
callAsyncWithDebug,
|
||||||
getDebugBody,
|
getDebugBody,
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { EventOutcome } from '../../../common/event_outcome';
|
||||||
import {
|
import {
|
||||||
AggregationOptionsByType,
|
AggregationOptionsByType,
|
||||||
AggregationResultOf,
|
AggregationResultOf,
|
||||||
} from '../../../../../typings/elasticsearch/aggregations';
|
} from '../../../../../../typings/elasticsearch/aggregations';
|
||||||
|
|
||||||
export const getOutcomeAggregation = () => ({
|
export const getOutcomeAggregation = () => ({
|
||||||
terms: {
|
terms: {
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Overwrite, Unionize } from 'utility-types';
|
import { Overwrite, Unionize } from 'utility-types';
|
||||||
import { AggregationOptionsByType } from '../../../../../typings/elasticsearch';
|
import { AggregationOptionsByType } from '../../../../../../typings/elasticsearch';
|
||||||
import { getMetricsProjection } from '../../projections/metrics';
|
import { getMetricsProjection } from '../../projections/metrics';
|
||||||
import { mergeProjection } from '../../projections/util/merge_projection';
|
import { mergeProjection } from '../../projections/util/merge_projection';
|
||||||
import { APMEventESSearchRequest } from '../helpers/create_es_client/create_apm_event_client';
|
import { APMEventESSearchRequest } from '../helpers/create_es_client/create_apm_event_client';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import theme from '@elastic/eui/dist/eui_theme_light.json';
|
import theme from '@elastic/eui/dist/eui_theme_light.json';
|
||||||
import { ESSearchResponse } from '../../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
||||||
import { getVizColorForIndex } from '../../../common/viz_colors';
|
import { getVizColorForIndex } from '../../../common/viz_colors';
|
||||||
import { GenericMetricsRequest } from './fetch_and_transform_metrics';
|
import { GenericMetricsRequest } from './fetch_and_transform_metrics';
|
||||||
import { ChartBase } from './types';
|
import { ChartBase } from './types';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import { UIFilters } from '../../../../typings/ui_filters';
|
import { UIFilters } from '../../../../typings/ui_filters';
|
||||||
import { localUIFilters, localUIFilterNames } from './local_ui_filters/config';
|
import { localUIFilters, localUIFilterNames } from './local_ui_filters/config';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import Boom from '@hapi/boom';
|
import Boom from '@hapi/boom';
|
||||||
import { sortBy, uniqBy } from 'lodash';
|
import { sortBy, uniqBy } from 'lodash';
|
||||||
import { ESSearchResponse } from '../../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
||||||
import { MlPluginSetup } from '../../../../ml/server';
|
import { MlPluginSetup } from '../../../../ml/server';
|
||||||
import { PromiseReturnType } from '../../../../observability/typings/common';
|
import { PromiseReturnType } from '../../../../observability/typings/common';
|
||||||
import { getSeverity, ML_ERRORS } from '../../../common/anomaly_detection';
|
import { getSeverity, ML_ERRORS } from '../../../common/anomaly_detection';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
METRIC_CGROUP_MEMORY_USAGE_BYTES,
|
METRIC_CGROUP_MEMORY_USAGE_BYTES,
|
||||||
METRIC_SYSTEM_CPU_PERCENT,
|
METRIC_SYSTEM_CPU_PERCENT,
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import Boom from '@hapi/boom';
|
import Boom from '@hapi/boom';
|
||||||
import { sortBy, take, uniq } from 'lodash';
|
import { sortBy, take, uniq } from 'lodash';
|
||||||
import { ESFilter } from '../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
SERVICE_ENVIRONMENT,
|
SERVICE_ENVIRONMENT,
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { isFiniteNumber } from '../../../../common/utils/is_finite_number';
|
import { isFiniteNumber } from '../../../../common/utils/is_finite_number';
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import { Annotation, AnnotationType } from '../../../../common/annotations';
|
import { Annotation, AnnotationType } from '../../../../common/annotations';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -12,7 +12,7 @@ import {
|
||||||
unwrapEsResponse,
|
unwrapEsResponse,
|
||||||
WrappedElasticsearchClientError,
|
WrappedElasticsearchClientError,
|
||||||
} from '../../../../../observability/server';
|
} from '../../../../../observability/server';
|
||||||
import { ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../../../typings/elasticsearch';
|
||||||
import { Annotation as ESAnnotation } from '../../../../../observability/common/annotations';
|
import { Annotation as ESAnnotation } from '../../../../../observability/common/annotations';
|
||||||
import { ScopedAnnotationsClient } from '../../../../../observability/server';
|
import { ScopedAnnotationsClient } from '../../../../../observability/server';
|
||||||
import { Annotation, AnnotationType } from '../../../../common/annotations';
|
import { Annotation, AnnotationType } from '../../../../common/annotations';
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
} from '../../../../../../typings/elasticsearch';
|
} from '../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
inspectSearchParams,
|
inspectSearchParams,
|
||||||
SearchParamsMock,
|
SearchParamsMock,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AggregationOptionsByType } from '../../../../../../typings/elasticsearch';
|
import { AggregationOptionsByType } from '../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
environmentQuery,
|
environmentQuery,
|
||||||
rangeQuery,
|
rangeQuery,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ProcessorEvent } from '../../../common/processor_event';
|
import { ProcessorEvent } from '../../../common/processor_event';
|
||||||
import { SortOptions } from '../../../../../typings/elasticsearch';
|
import { SortOptions } from '../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
AGENT,
|
AGENT,
|
||||||
CLOUD,
|
CLOUD,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
TRANSACTION_TYPE,
|
TRANSACTION_TYPE,
|
||||||
|
|
|
@ -15,7 +15,7 @@ import {
|
||||||
getValueTypeConfig,
|
getValueTypeConfig,
|
||||||
} from '../../../../common/profiling';
|
} from '../../../../common/profiling';
|
||||||
import { ProcessorEvent } from '../../../../common/processor_event';
|
import { ProcessorEvent } from '../../../../common/processor_event';
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
PROFILE_STACK,
|
PROFILE_STACK,
|
||||||
PROFILE_TOP_ID,
|
PROFILE_TOP_ID,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESSearchHit } from '../../../../../../typings/elasticsearch';
|
import { ESSearchHit } from '../../../../../../../typings/elasticsearch';
|
||||||
import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types';
|
import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types';
|
||||||
|
|
||||||
// needed for backwards compatability
|
// needed for backwards compatability
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESSearchHit } from '../../../../../../typings/elasticsearch';
|
import { ESSearchHit } from '../../../../../../../typings/elasticsearch';
|
||||||
import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types';
|
import { AgentConfiguration } from '../../../../common/agent_configuration/configuration_types';
|
||||||
import {
|
import {
|
||||||
SERVICE_ENVIRONMENT,
|
SERVICE_ENVIRONMENT,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESSearchHit } from '../../../../../../typings/elasticsearch';
|
import { ESSearchHit } from '../../../../../../../typings/elasticsearch';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
SERVICE_ENVIRONMENT,
|
SERVICE_ENVIRONMENT,
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import { sortBy, take } from 'lodash';
|
import { sortBy, take } from 'lodash';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { Unionize } from 'utility-types';
|
import { Unionize } from 'utility-types';
|
||||||
import { AggregationOptionsByType } from '../../../../../typings/elasticsearch';
|
import { AggregationOptionsByType } from '../../../../../../typings/elasticsearch';
|
||||||
import { PromiseReturnType } from '../../../../observability/typings/common';
|
import { PromiseReturnType } from '../../../../observability/typings/common';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import { merge } from 'lodash';
|
import { merge } from 'lodash';
|
||||||
import { TRANSACTION_TYPE } from '../../../common/elasticsearch_fieldnames';
|
import { TRANSACTION_TYPE } from '../../../common/elasticsearch_fieldnames';
|
||||||
import { arrayUnionToCallable } from '../../../common/utils/array_union_to_callable';
|
import { arrayUnionToCallable } from '../../../common/utils/array_union_to_callable';
|
||||||
import { AggregationInputMap } from '../../../../../typings/elasticsearch';
|
import { AggregationInputMap } from '../../../../../../typings/elasticsearch';
|
||||||
import { TransactionGroupRequestBase, TransactionGroupSetup } from './fetcher';
|
import { TransactionGroupRequestBase, TransactionGroupSetup } from './fetcher';
|
||||||
import { getTransactionDurationFieldForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
import { getTransactionDurationFieldForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||||
import { withApmSpan } from '../../utils/with_apm_span';
|
import { withApmSpan } from '../../utils/with_apm_span';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../../../typings/elasticsearch';
|
||||||
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
||||||
import { rangeQuery } from '../../../../server/utils/queries';
|
import { rangeQuery } from '../../../../server/utils/queries';
|
||||||
import { withApmSpan } from '../../../utils/with_apm_span';
|
import { withApmSpan } from '../../../utils/with_apm_span';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {
|
||||||
AggregationOptionsByType,
|
AggregationOptionsByType,
|
||||||
AggregationInputMap,
|
AggregationInputMap,
|
||||||
ESSearchBody,
|
ESSearchBody,
|
||||||
} from '../../../../typings/elasticsearch';
|
} from '../../../../../typings/elasticsearch';
|
||||||
import { APMEventESSearchRequest } from '../lib/helpers/create_es_client/create_apm_event_client';
|
import { APMEventESSearchRequest } from '../lib/helpers/create_es_client/create_apm_event_client';
|
||||||
|
|
||||||
export type Projection = Omit<APMEventESSearchRequest, 'body'> & {
|
export type Projection = Omit<APMEventESSearchRequest, 'body'> & {
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { DeepPartial } from 'utility-types';
|
||||||
import {
|
import {
|
||||||
AggregationInputMap,
|
AggregationInputMap,
|
||||||
ESSearchBody,
|
ESSearchBody,
|
||||||
} from '../../../../../../typings/elasticsearch';
|
} from '../../../../../../../typings/elasticsearch';
|
||||||
import { APMEventESSearchRequest } from '../../../lib/helpers/create_es_client/create_apm_event_client';
|
import { APMEventESSearchRequest } from '../../../lib/helpers/create_es_client/create_apm_event_client';
|
||||||
import { Projection } from '../../typings';
|
import { Projection } from '../../typings';
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { esKuery } from '../../../../../src/plugins/data/server';
|
import { esKuery } from '../../../../../src/plugins/data/server';
|
||||||
import { ESFilter } from '../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../typings/elasticsearch';
|
||||||
import { SERVICE_ENVIRONMENT } from '../../common/elasticsearch_fieldnames';
|
import { SERVICE_ENVIRONMENT } from '../../common/elasticsearch_fieldnames';
|
||||||
import {
|
import {
|
||||||
ENVIRONMENT_ALL,
|
ENVIRONMENT_ALL,
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { PromiseReturnType } from '../../../observability/typings/common';
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
} from '../../../../typings/elasticsearch';
|
} from '../../../../../typings/elasticsearch';
|
||||||
import { UIFilters } from '../../typings/ui_filters';
|
import { UIFilters } from '../../typings/ui_filters';
|
||||||
|
|
||||||
interface Options {
|
interface Options {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"declarationMap": true
|
"declarationMap": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"../../typings/**/*",
|
"../../../typings/**/*",
|
||||||
"common/**/*",
|
"common/**/*",
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"scripts/**/*",
|
"scripts/**/*",
|
||||||
|
|
|
@ -14,7 +14,7 @@ import { appContextService, agentPolicyService } from '../../services';
|
||||||
import type { FleetServerAgent } from '../../../common';
|
import type { FleetServerAgent } from '../../../common';
|
||||||
import { isAgentUpgradeable, SO_SEARCH_LIMIT } from '../../../common';
|
import { isAgentUpgradeable, SO_SEARCH_LIMIT } from '../../../common';
|
||||||
import { AGENT_SAVED_OBJECT_TYPE, AGENTS_INDEX } from '../../constants';
|
import { AGENT_SAVED_OBJECT_TYPE, AGENTS_INDEX } from '../../constants';
|
||||||
import type { ESSearchHit } from '../../../../../typings/elasticsearch';
|
import type { ESSearchHit } from '../../../../../../typings/elasticsearch';
|
||||||
import { escapeSearchQueryPhrase, normalizeKuery } from '../saved_object';
|
import { escapeSearchQueryPhrase, normalizeKuery } from '../saved_object';
|
||||||
import type { KueryNode } from '../../../../../../src/plugins/data/server';
|
import type { KueryNode } from '../../../../../../src/plugins/data/server';
|
||||||
import { esKuery } from '../../../../../../src/plugins/data/server';
|
import { esKuery } from '../../../../../../src/plugins/data/server';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { ESSearchHit } from '../../../../../typings/elasticsearch';
|
import type { ESSearchHit } from '../../../../../../typings/elasticsearch';
|
||||||
import type { Agent, AgentSOAttributes, FleetServerAgent } from '../../types';
|
import type { Agent, AgentSOAttributes, FleetServerAgent } from '../../types';
|
||||||
|
|
||||||
export function searchHitToAgent(hit: ESSearchHit<FleetServerAgent>): Agent {
|
export function searchHitToAgent(hit: ESSearchHit<FleetServerAgent>): Agent {
|
||||||
|
|
|
@ -12,7 +12,7 @@ import type { GetResponse } from 'elasticsearch';
|
||||||
import { ResponseError } from '@elastic/elasticsearch/lib/errors';
|
import { ResponseError } from '@elastic/elasticsearch/lib/errors';
|
||||||
import type { SavedObjectsClientContract, ElasticsearchClient } from 'src/core/server';
|
import type { SavedObjectsClientContract, ElasticsearchClient } from 'src/core/server';
|
||||||
|
|
||||||
import type { ESSearchResponse as SearchResponse } from '../../../../../typings/elasticsearch';
|
import type { ESSearchResponse as SearchResponse } from '../../../../../../typings/elasticsearch';
|
||||||
import type { EnrollmentAPIKey, FleetServerEnrollmentAPIKey } from '../../types';
|
import type { EnrollmentAPIKey, FleetServerEnrollmentAPIKey } from '../../types';
|
||||||
import { ENROLLMENT_API_KEYS_INDEX } from '../../constants';
|
import { ENROLLMENT_API_KEYS_INDEX } from '../../constants';
|
||||||
import { agentPolicyService } from '../agent_policy';
|
import { agentPolicyService } from '../agent_policy';
|
||||||
|
|
|
@ -16,7 +16,7 @@ import type { ElasticsearchClient } from 'kibana/server';
|
||||||
|
|
||||||
import type { ListResult } from '../../../common';
|
import type { ListResult } from '../../../common';
|
||||||
import { FLEET_SERVER_ARTIFACTS_INDEX } from '../../../common';
|
import { FLEET_SERVER_ARTIFACTS_INDEX } from '../../../common';
|
||||||
import type { ESSearchHit, ESSearchResponse } from '../../../../../typings/elasticsearch';
|
import type { ESSearchHit, ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
import { ArtifactsElasticsearchError } from '../../errors';
|
import { ArtifactsElasticsearchError } from '../../errors';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { ESSearchHit } from '../../../../../typings/elasticsearch';
|
import type { ESSearchHit } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
import type { Artifact, ArtifactElasticsearchProperties } from './types';
|
import type { Artifact, ArtifactElasticsearchProperties } from './types';
|
||||||
import { ARTIFACT_DOWNLOAD_RELATIVE_PATH } from './constants';
|
import { ARTIFACT_DOWNLOAD_RELATIVE_PATH } from './constants';
|
||||||
|
|
|
@ -10,7 +10,7 @@ import type { ApiResponse } from '@elastic/elasticsearch';
|
||||||
import { ResponseError } from '@elastic/elasticsearch/lib/errors';
|
import { ResponseError } from '@elastic/elasticsearch/lib/errors';
|
||||||
|
|
||||||
import { elasticsearchServiceMock } from '../../../../../../src/core/server/mocks';
|
import { elasticsearchServiceMock } from '../../../../../../src/core/server/mocks';
|
||||||
import type { ESSearchHit, ESSearchResponse } from '../../../../../typings/elasticsearch';
|
import type { ESSearchHit, ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
import type { Artifact, ArtifactElasticsearchProperties, ArtifactsClientInterface } from './types';
|
import type { Artifact, ArtifactElasticsearchProperties, ArtifactsClientInterface } from './types';
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
"server/**/*.json",
|
"server/**/*.json",
|
||||||
"scripts/**/*",
|
"scripts/**/*",
|
||||||
"package.json",
|
"package.json",
|
||||||
"../../typings/**/*"
|
"../../../typings/**/*"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
"include": [
|
"include": [
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"server/**/*",
|
"server/**/*",
|
||||||
"../../typings/**/*",
|
"../../../typings/**/*",
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"common/**/*",
|
"common/**/*",
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"server/**/*",
|
"server/**/*",
|
||||||
"../../typings/**/*",
|
"../../../typings/**/*",
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"common/**/*",
|
"common/**/*",
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"server/**/*",
|
"server/**/*",
|
||||||
"../../typings/**/*",
|
"../../../typings/**/*",
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"server/**/*",
|
"server/**/*",
|
||||||
"test/**/*",
|
"test/**/*",
|
||||||
"../../typings/**/*",
|
"../../../typings/**/*",
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"declarationMap": true
|
"declarationMap": true
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"../../typings/**/*",
|
"../../../typings/**/*",
|
||||||
"common/**/*",
|
"common/**/*",
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"scripts/**/*",
|
"scripts/**/*",
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"server/**/*",
|
"server/**/*",
|
||||||
"__jest__/**/*",
|
"__jest__/**/*",
|
||||||
"../../typings/**/*"
|
"../../../typings/**/*"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { schema } from '@kbn/config-schema';
|
||||||
import { CoreSetup } from 'src/core/server';
|
import { CoreSetup } from 'src/core/server';
|
||||||
import { IFieldType } from 'src/plugins/data/common';
|
import { IFieldType } from 'src/plugins/data/common';
|
||||||
import { SavedObjectNotFound } from '../../../../../src/plugins/kibana_utils/common';
|
import { SavedObjectNotFound } from '../../../../../src/plugins/kibana_utils/common';
|
||||||
import { ESSearchResponse } from '../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../typings/elasticsearch';
|
||||||
import { FieldStatsResponse, BASE_API_URL } from '../../common';
|
import { FieldStatsResponse, BASE_API_URL } from '../../common';
|
||||||
import { PluginStartContract } from '../plugin';
|
import { PluginStartContract } from '../plugin';
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@ import {
|
||||||
} from '../../../task_manager/server';
|
} from '../../../task_manager/server';
|
||||||
|
|
||||||
import { getVisualizationCounts } from './visualization_counts';
|
import { getVisualizationCounts } from './visualization_counts';
|
||||||
import { ESSearchResponse } from '../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
// This task is responsible for running daily and aggregating all the Lens click event objects
|
// This task is responsible for running daily and aggregating all the Lens click event objects
|
||||||
// into daily rolled-up documents, which will be used in reporting click stats
|
// into daily rolled-up documents, which will be used in reporting click stats
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"common/**/*",
|
"common/**/*",
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"server/**/*",
|
"server/**/*",
|
||||||
"../../typings/**/*"
|
"../../../typings/**/*"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Filter } from 'src/plugins/data/common';
|
import { Filter } from 'src/plugins/data/common';
|
||||||
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../../typings/elasticsearch';
|
||||||
import { ThresholdSignalHistory, ThresholdSignalHistoryRecord } from '../types';
|
import { ThresholdSignalHistory, ThresholdSignalHistoryRecord } from '../types';
|
||||||
|
|
||||||
export const getThresholdBucketFilters = async ({
|
export const getThresholdBucketFilters = async ({
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
||||||
import { getExceptionListItemSchemaMock } from '../../../../lists/common/schemas/response/exception_list_item_schema.mock';
|
import { getExceptionListItemSchemaMock } from '../../../../lists/common/schemas/response/exception_list_item_schema.mock';
|
||||||
import { getAnomalies, AnomaliesSearchParams } from '.';
|
import { getAnomalies, AnomaliesSearchParams } from '.';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"server/**/*",
|
"server/**/*",
|
||||||
"test/**/*",
|
"test/**/*",
|
||||||
"../../typings/**/*",
|
"../../../typings/**/*",
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -5,8 +5,8 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESSearchBody, ESSearchRequest } from '../../../typings/elasticsearch';
|
import { ESSearchBody, ESSearchRequest } from '../../../../typings/elasticsearch';
|
||||||
import { SortOrder } from '../../../typings/elasticsearch/aggregations';
|
import { SortOrder } from '../../../../typings/elasticsearch/aggregations';
|
||||||
|
|
||||||
type BuildSortedEventsQueryOpts = Pick<ESSearchBody, 'aggs' | 'track_total_hits'> &
|
type BuildSortedEventsQueryOpts = Pick<ESSearchBody, 'aggs' | 'track_total_hits'> &
|
||||||
Pick<Required<ESSearchRequest>, 'index' | 'size'>;
|
Pick<Required<ESSearchRequest>, 'index' | 'size'>;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { AlertExecutorOptions, AlertInstanceContext } from '../../../../alerting/server';
|
import { AlertExecutorOptions, AlertInstanceContext } from '../../../../alerting/server';
|
||||||
import { EsQueryAlertParams } from './alert_type_params';
|
import { EsQueryAlertParams } from './alert_type_params';
|
||||||
import { ESSearchHit } from '../../../../../typings/elasticsearch';
|
import { ESSearchHit } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
// alert type context provided to actions
|
// alert type context provided to actions
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ import { loggingSystemMock } from '../../../../../../src/core/server/mocks';
|
||||||
import { getAlertType, ConditionMetAlertInstanceId, ActionGroupId } from './alert_type';
|
import { getAlertType, ConditionMetAlertInstanceId, ActionGroupId } from './alert_type';
|
||||||
import { EsQueryAlertParams, EsQueryAlertState } from './alert_type_params';
|
import { EsQueryAlertParams, EsQueryAlertState } from './alert_type_params';
|
||||||
import { ActionContext } from './action_context';
|
import { ActionContext } from './action_context';
|
||||||
import { ESSearchResponse, ESSearchRequest } from '../../../../../typings/elasticsearch';
|
import { ESSearchResponse, ESSearchRequest } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
describe('alertType', () => {
|
describe('alertType', () => {
|
||||||
const logger = loggingSystemMock.create().get();
|
const logger = loggingSystemMock.create().get();
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { Logger } from 'src/core/server';
|
import { Logger } from 'src/core/server';
|
||||||
import { ESSearchResponse } from '../../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
||||||
import { AlertType, AlertExecutorOptions } from '../../types';
|
import { AlertType, AlertExecutorOptions } from '../../types';
|
||||||
import { ActionContext, EsQueryAlertActionContext, addMessages } from './action_context';
|
import { ActionContext, EsQueryAlertActionContext, addMessages } from './action_context';
|
||||||
import {
|
import {
|
||||||
|
@ -19,7 +19,7 @@ import { STACK_ALERTS_FEATURE_ID } from '../../../common';
|
||||||
import { ComparatorFns, getHumanReadableComparator } from '../lib';
|
import { ComparatorFns, getHumanReadableComparator } from '../lib';
|
||||||
import { parseDuration } from '../../../../alerting/server';
|
import { parseDuration } from '../../../../alerting/server';
|
||||||
import { buildSortedEventsQuery } from '../../../common/build_sorted_events_query';
|
import { buildSortedEventsQuery } from '../../../common/build_sorted_events_query';
|
||||||
import { ESSearchHit } from '../../../../../typings/elasticsearch';
|
import { ESSearchHit } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
export const ES_QUERY_ID = '.es-query';
|
export const ES_QUERY_ID = '.es-query';
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ import {
|
||||||
estimateRecurringTaskScheduling,
|
estimateRecurringTaskScheduling,
|
||||||
} from './workload_statistics';
|
} from './workload_statistics';
|
||||||
import { ConcreteTaskInstance } from '../task';
|
import { ConcreteTaskInstance } from '../task';
|
||||||
import { AggregationResultOf, ESSearchResponse } from '../../../../typings/elasticsearch';
|
import { AggregationResultOf, ESSearchResponse } from '../../../../../typings/elasticsearch';
|
||||||
import { times } from 'lodash';
|
import { times } from 'lodash';
|
||||||
import { taskStoreMock } from '../task_store.mock';
|
import { taskStoreMock } from '../task_store.mock';
|
||||||
import { of, Subject } from 'rxjs';
|
import { of, Subject } from 'rxjs';
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { JsonObject } from 'src/plugins/kibana_utils/common';
|
||||||
import { keyBy, mapValues } from 'lodash';
|
import { keyBy, mapValues } from 'lodash';
|
||||||
import { AggregatedStatProvider } from './runtime_statistics_aggregator';
|
import { AggregatedStatProvider } from './runtime_statistics_aggregator';
|
||||||
import { parseIntervalAsSecond, asInterval, parseIntervalAsMillisecond } from '../lib/intervals';
|
import { parseIntervalAsSecond, asInterval, parseIntervalAsMillisecond } from '../lib/intervals';
|
||||||
import { AggregationResultOf } from '../../../../typings/elasticsearch';
|
import { AggregationResultOf } from '../../../../../typings/elasticsearch';
|
||||||
import { HealthStatus } from './monitoring_stats_stream';
|
import { HealthStatus } from './monitoring_stats_stream';
|
||||||
import { TaskStore } from '../task_store';
|
import { TaskStore } from '../task_store';
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@ import {
|
||||||
} from './task';
|
} from './task';
|
||||||
|
|
||||||
import { TaskTypeDictionary } from './task_type_dictionary';
|
import { TaskTypeDictionary } from './task_type_dictionary';
|
||||||
import { ESSearchResponse, ESSearchBody } from '../../../typings/elasticsearch';
|
import { ESSearchResponse, ESSearchBody } from '../../../../typings/elasticsearch';
|
||||||
|
|
||||||
export interface StoreOpts {
|
export interface StoreOpts {
|
||||||
esClient: ElasticsearchClient;
|
esClient: ElasticsearchClient;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"public/**/*",
|
"public/**/*",
|
||||||
"server/**/*",
|
"server/**/*",
|
||||||
"common/**/*",
|
"common/**/*",
|
||||||
"../../typings/**/*"
|
"../../../typings/**/*"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -16,7 +16,7 @@ import { UMBackendFrameworkAdapter } from './adapters';
|
||||||
import { UMLicenseCheck } from './domains';
|
import { UMLicenseCheck } from './domains';
|
||||||
import { UptimeRequests } from './requests';
|
import { UptimeRequests } from './requests';
|
||||||
import { savedObjectsAdapter } from './saved_objects';
|
import { savedObjectsAdapter } from './saved_objects';
|
||||||
import { ESSearchResponse } from '../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
export interface UMDomainLibs {
|
export interface UMDomainLibs {
|
||||||
requests: UptimeRequests;
|
requests: UptimeRequests;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import { UMElasticsearchQueryFn } from '../adapters';
|
import { UMElasticsearchQueryFn } from '../adapters';
|
||||||
import { GetMonitorAvailabilityParams, Ping } from '../../../common/runtime_types';
|
import { GetMonitorAvailabilityParams, Ping } from '../../../common/runtime_types';
|
||||||
import { AfterKey } from './get_monitor_status';
|
import { AfterKey } from './get_monitor_status';
|
||||||
import { SortOptions } from '../../../../../typings/elasticsearch';
|
import { SortOptions } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
export interface AvailabilityKey {
|
export interface AvailabilityKey {
|
||||||
monitorId: string;
|
monitorId: string;
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { UMElasticsearchQueryFn } from '../adapters';
|
||||||
import { MonitorDetails, Ping } from '../../../common/runtime_types';
|
import { MonitorDetails, Ping } from '../../../common/runtime_types';
|
||||||
import { formatFilterString } from '../alerts/status_check';
|
import { formatFilterString } from '../alerts/status_check';
|
||||||
import { UptimeESClient } from '../lib';
|
import { UptimeESClient } from '../lib';
|
||||||
import { ESSearchBody } from '../../../../../typings/elasticsearch';
|
import { ESSearchBody } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
export interface GetMonitorDetailsParams {
|
export interface GetMonitorDetailsParams {
|
||||||
monitorId: string;
|
monitorId: string;
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import { UMElasticsearchQueryFn } from '../adapters';
|
import { UMElasticsearchQueryFn } from '../adapters';
|
||||||
import { MonitorLocations, MonitorLocation } from '../../../common/runtime_types';
|
import { MonitorLocations, MonitorLocation } from '../../../common/runtime_types';
|
||||||
import { UNNAMED_LOCATION } from '../../../common/constants';
|
import { UNNAMED_LOCATION } from '../../../common/constants';
|
||||||
import { SortOptions } from '../../../../../typings/elasticsearch';
|
import { SortOptions } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch data for the monitor page title.
|
* Fetch data for the monitor page title.
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { UMElasticsearchQueryFn } from '../adapters';
|
||||||
import { CONTEXT_DEFAULTS } from '../../../common/constants';
|
import { CONTEXT_DEFAULTS } from '../../../common/constants';
|
||||||
import { Snapshot } from '../../../common/runtime_types';
|
import { Snapshot } from '../../../common/runtime_types';
|
||||||
import { QueryContext } from './search';
|
import { QueryContext } from './search';
|
||||||
import { ESFilter } from '../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
export interface GetSnapshotCountParams {
|
export interface GetSnapshotCountParams {
|
||||||
dateRangeStart: string;
|
dateRangeStart: string;
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { CursorPagination } from './types';
|
||||||
import { parseRelativeDate } from '../../helper';
|
import { parseRelativeDate } from '../../helper';
|
||||||
import { CursorDirection, SortOrder } from '../../../../common/runtime_types';
|
import { CursorDirection, SortOrder } from '../../../../common/runtime_types';
|
||||||
import { UptimeESClient } from '../../lib';
|
import { UptimeESClient } from '../../lib';
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
||||||
|
|
||||||
export class QueryContext {
|
export class QueryContext {
|
||||||
callES: UptimeESClient;
|
callES: UptimeESClient;
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
"common/**/*",
|
"common/**/*",
|
||||||
"tests_client_integration/**/*",
|
"tests_client_integration/**/*",
|
||||||
"__fixtures__/*",
|
"__fixtures__/*",
|
||||||
"../../typings/**/*"
|
"../../../typings/**/*"
|
||||||
],
|
],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../../src/core/tsconfig.json" },
|
{ "path": "../../../src/core/tsconfig.json" },
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import expect from '@kbn/expect';
|
import expect from '@kbn/expect';
|
||||||
import { JsonObject } from 'src/plugins/kibana_utils/common';
|
import { JsonObject } from 'src/plugins/kibana_utils/common';
|
||||||
import { Annotation } from '../../../../plugins/observability/common/annotations';
|
import { Annotation } from '../../../../plugins/observability/common/annotations';
|
||||||
import { ESSearchHit } from '../../../../typings/elasticsearch';
|
import { ESSearchHit } from '../../../../../typings/elasticsearch';
|
||||||
import { FtrProviderContext } from '../../common/ftr_provider_context';
|
import { FtrProviderContext } from '../../common/ftr_provider_context';
|
||||||
|
|
||||||
const DEFAULT_INDEX_NAME = 'observability-annotations';
|
const DEFAULT_INDEX_NAME = 'observability-annotations';
|
||||||
|
|
|
@ -3,9 +3,9 @@
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
// overhead is too significant
|
// overhead is too significant
|
||||||
"incremental": false,
|
"incremental": false,
|
||||||
"types": ["node", "flot"]
|
"types": ["node"]
|
||||||
},
|
},
|
||||||
"include": ["**/*", "../typings/**/*", "../../packages/kbn-test/types/ftr_globals/**/*"],
|
"include": ["**/*", "../../typings/**/*", "../../packages/kbn-test/types/ftr_globals/**/*"],
|
||||||
"references": [
|
"references": [
|
||||||
{ "path": "../../src/core/tsconfig.json" },
|
{ "path": "../../src/core/tsconfig.json" },
|
||||||
{ "path": "../../src/plugins/bfetch/tsconfig.json" },
|
{ "path": "../../src/plugins/bfetch/tsconfig.json" },
|
||||||
|
|
|
@ -1,117 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "../tsconfig.base.json",
|
|
||||||
"include": [
|
|
||||||
"mocks.ts",
|
|
||||||
"typings/**/*",
|
|
||||||
"tasks/**/*",
|
|
||||||
"plugins/cases/**/*",
|
|
||||||
"plugins/lists/**/*",
|
|
||||||
"plugins/security_solution/**/*"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"test/**/*",
|
|
||||||
"plugins/apm/e2e/cypress/**/*",
|
|
||||||
"plugins/apm/ftr_e2e/**/*",
|
|
||||||
"plugins/apm/scripts/**/*",
|
|
||||||
"plugins/security_solution/cypress/**/*"
|
|
||||||
],
|
|
||||||
"compilerOptions": {
|
|
||||||
// overhead is too significant
|
|
||||||
"incremental": false
|
|
||||||
},
|
|
||||||
"references": [
|
|
||||||
{ "path": "../src/core/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/bfetch/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/charts/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/console/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/dashboard/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/data/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/dev_tools/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/discover/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/embeddable/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/es_ui_shared/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/expressions/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/home/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/index_pattern_management/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/inspector/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/kibana_legacy/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/kibana_overview/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/kibana_react/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/kibana_usage_collection/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/kibana_utils/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/legacy_export/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/management/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/navigation/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/newsfeed/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/presentation_util/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/saved_objects_management/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/saved_objects_tagging_oss/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/saved_objects/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/security_oss/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/share/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/telemetry_collection_manager/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/telemetry_management_section/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/telemetry/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/ui_actions/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/url_forwarding/tsconfig.json" },
|
|
||||||
{ "path": "../src/plugins/usage_collection/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/actions/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/alerting/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/apm/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/beats_management/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/canvas/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/cloud/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/console_extensions/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/data_enhanced/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/dashboard_mode/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/discover_enhanced/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/drilldowns/url_drilldown/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/embeddable_enhanced/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/encrypted_saved_objects/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/enterprise_search/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/event_log/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/features/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/file_upload/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/fleet/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/global_search_bar/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/global_search_providers/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/global_search/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/graph/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/grokdebugger/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/infra/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/ingest_pipelines/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/lens/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/license_management/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/licensing/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/logstash/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/maps_legacy_licensing/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/maps/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/ml/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/monitoring/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/observability/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/osquery/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/painless_lab/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/saved_objects_tagging/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/searchprofiler/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/security/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/snapshot_restore/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/spaces/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/stack_alerts/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/task_manager/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/telemetry_collection_xpack/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/transform/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/translations/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/triggers_actions_ui/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/ui_actions_enhanced/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/upgrade_assistant/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/runtime_fields/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/index_management/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/watcher/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/rollup/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/remote_clusters/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/cross_cluster_replication/tsconfig.json"},
|
|
||||||
{ "path": "./plugins/index_lifecycle_management/tsconfig.json"},
|
|
||||||
{ "path": "./plugins/uptime/tsconfig.json" },
|
|
||||||
{ "path": "./plugins/xpack_legacy/tsconfig.json" }
|
|
||||||
]
|
|
||||||
}
|
|
16
x-pack/typings/@elastic/eui/index.d.ts
vendored
16
x-pack/typings/@elastic/eui/index.d.ts
vendored
|
@ -1,16 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
||||||
* 2.0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// TODO: Remove once typescript definitions are in EUI
|
|
||||||
|
|
||||||
declare module '@elastic/eui/lib/services' {
|
|
||||||
export const RIGHT_ALIGNMENT: any;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module '@elastic/eui/lib/services/format' {
|
|
||||||
export const dateFormatAliases: any;
|
|
||||||
}
|
|
8
x-pack/typings/cytoscape_dagre.d.ts
vendored
8
x-pack/typings/cytoscape_dagre.d.ts
vendored
|
@ -1,8 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
||||||
* 2.0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare module 'cytoscape-dagre';
|
|
33
x-pack/typings/index.d.ts
vendored
33
x-pack/typings/index.d.ts
vendored
|
@ -1,33 +0,0 @@
|
||||||
/*
|
|
||||||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
||||||
* or more contributor license agreements. Licensed under the Elastic License
|
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
||||||
* 2.0.
|
|
||||||
*/
|
|
||||||
|
|
||||||
declare module '*.html' {
|
|
||||||
const template: string;
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
|
||||||
export default template;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module '*.png' {
|
|
||||||
const content: string;
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
|
||||||
export default content;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module '*.svg' {
|
|
||||||
const content: string;
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
|
||||||
export default content;
|
|
||||||
}
|
|
||||||
|
|
||||||
declare module 'axios/lib/adapters/xhr';
|
|
||||||
|
|
||||||
// Storybook references this module. It's @ts-ignored in the codebase but when
|
|
||||||
// built into its dist it strips that out. Add it here to avoid a type checking
|
|
||||||
// error.
|
|
||||||
//
|
|
||||||
// See https://github.com/storybookjs/storybook/issues/11684
|
|
||||||
declare module 'react-syntax-highlighter/dist/cjs/create-element';
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue