mirror of
https://github.com/elastic/kibana.git
synced 2025-06-28 03:01:21 -04:00
Move ES aggregation types to src/core (#102597)
This commit is contained in:
parent
0561648156
commit
02033e2b4b
70 changed files with 71 additions and 70 deletions
1
.github/CODEOWNERS
vendored
1
.github/CODEOWNERS
vendored
|
@ -76,6 +76,7 @@
|
||||||
/src/plugins/apm_oss/ @elastic/apm-ui
|
/src/plugins/apm_oss/ @elastic/apm-ui
|
||||||
/src/apm.js @elastic/kibana-core @vigneshshanmugam
|
/src/apm.js @elastic/kibana-core @vigneshshanmugam
|
||||||
/packages/kbn-apm-config-loader/ @elastic/kibana-core @vigneshshanmugam
|
/packages/kbn-apm-config-loader/ @elastic/kibana-core @vigneshshanmugam
|
||||||
|
/src/core/types/elasticsearch @elastic/apm-ui
|
||||||
#CC# /src/plugins/apm_oss/ @elastic/apm-ui
|
#CC# /src/plugins/apm_oss/ @elastic/apm-ui
|
||||||
#CC# /x-pack/plugins/observability/ @elastic/apm-ui
|
#CC# /x-pack/plugins/observability/ @elastic/apm-ui
|
||||||
|
|
||||||
|
|
|
@ -29,4 +29,4 @@ export type ESSearchResponse<
|
||||||
TOptions extends { restTotalHitsAsInt: boolean } = { restTotalHitsAsInt: false }
|
TOptions extends { restTotalHitsAsInt: boolean } = { restTotalHitsAsInt: false }
|
||||||
> = InferSearchResponseOf<TDocument, TSearchRequest, TOptions>;
|
> = InferSearchResponseOf<TDocument, TSearchRequest, TOptions>;
|
||||||
|
|
||||||
export { InferSearchResponseOf, AggregationResultOf, SearchHit };
|
export type { InferSearchResponseOf, AggregationResultOf, SearchHit };
|
|
@ -15,7 +15,7 @@ import {
|
||||||
EuiFlexItem,
|
EuiFlexItem,
|
||||||
} from '@elastic/eui';
|
} from '@elastic/eui';
|
||||||
import { i18n } from '@kbn/i18n';
|
import { i18n } from '@kbn/i18n';
|
||||||
import { ESFilter } from 'typings/elasticsearch';
|
import { ESFilter } from 'src/core/types/elasticsearch';
|
||||||
import { useLocalUIFilters } from '../hooks/useLocalUIFilters';
|
import { useLocalUIFilters } from '../hooks/useLocalUIFilters';
|
||||||
import {
|
import {
|
||||||
uxFiltersByName,
|
uxFiltersByName,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from 'typings/elasticsearch';
|
import { ESFilter } from 'src/core/types/elasticsearch';
|
||||||
import { SERVICE_ENVIRONMENT } from '../../../../../common/elasticsearch_fieldnames';
|
import { SERVICE_ENVIRONMENT } from '../../../../../common/elasticsearch_fieldnames';
|
||||||
import {
|
import {
|
||||||
ENVIRONMENT_ALL,
|
ENVIRONMENT_ALL,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../src/core/types/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 '../../../../../src/core/types/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 '../../../../../src/core/types/elasticsearch';
|
||||||
|
|
||||||
export type ESClient = ReturnType<typeof getEsClient>;
|
export type ESClient = ReturnType<typeof getEsClient>;
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
} from '../../../../../../typings/elasticsearch';
|
} from '../../../../../../src/core/types/elasticsearch';
|
||||||
import { AlertServices } from '../../../../alerting/server';
|
import { AlertServices } from '../../../../alerting/server';
|
||||||
|
|
||||||
export async function alertingEsClient<TParams extends ESSearchRequest>({
|
export async function alertingEsClient<TParams extends ESSearchRequest>({
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import { schema } from '@kbn/config-schema';
|
import { schema } from '@kbn/config-schema';
|
||||||
import { compact } from 'lodash';
|
import { compact } from 'lodash';
|
||||||
import { ESSearchResponse } from 'typings/elasticsearch';
|
import { ESSearchResponse } from 'src/core/types/elasticsearch';
|
||||||
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
||||||
import {
|
import {
|
||||||
ALERT_EVALUATION_THRESHOLD,
|
ALERT_EVALUATION_THRESHOLD,
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { IndicesStats } from '@elastic/elasticsearch/api/requestParams';
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
} from '../../../../../../../typings/elasticsearch';
|
} from '../../../../../../../src/core/types/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';
|
||||||
|
|
|
@ -11,8 +11,8 @@ import {
|
||||||
processSignificantTermAggs,
|
processSignificantTermAggs,
|
||||||
TopSigTerm,
|
TopSigTerm,
|
||||||
} from '../process_significant_term_aggs';
|
} from '../process_significant_term_aggs';
|
||||||
import { AggregationOptionsByType } from '../../../../../../../typings/elasticsearch';
|
import { AggregationOptionsByType } from '../../../../../../../src/core/types/elasticsearch';
|
||||||
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../src/core/types/elasticsearch';
|
||||||
import { EVENT_OUTCOME } from '../../../../common/elasticsearch_fieldnames';
|
import { EVENT_OUTCOME } 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';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
import { Setup, SetupTimeRange } from '../helpers/setup_request';
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../src/core/types/elasticsearch';
|
||||||
import { environmentQuery, rangeQuery, kqlQuery } from '../../utils/queries';
|
import { environmentQuery, rangeQuery, kqlQuery } from '../../utils/queries';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AggregationOptionsByType } from '../../../../../../../typings/elasticsearch';
|
import { AggregationOptionsByType } from '../../../../../../../src/core/types/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 { getDurationForPercentile } from './get_duration_for_percentile';
|
import { getDurationForPercentile } from './get_duration_for_percentile';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../src/core/types/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,8 +5,8 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AggregationOptionsByType } from '../../../../../../../typings/elasticsearch';
|
import { AggregationOptionsByType } from '../../../../../../../src/core/types/elasticsearch';
|
||||||
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../src/core/types/elasticsearch';
|
||||||
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';
|
||||||
import { TopSigTerm } from '../process_significant_term_aggs';
|
import { TopSigTerm } from '../process_significant_term_aggs';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../src/core/types/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';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { orderBy } from 'lodash';
|
||||||
import {
|
import {
|
||||||
AggregationOptionsByType,
|
AggregationOptionsByType,
|
||||||
AggregationResultOf,
|
AggregationResultOf,
|
||||||
} from '../../../../../../typings/elasticsearch';
|
} from '../../../../../../src/core/types/elasticsearch';
|
||||||
|
|
||||||
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 '../../../../../../../src/core/types/elasticsearch';
|
||||||
import {
|
import {
|
||||||
ERROR_GROUP_ID,
|
ERROR_GROUP_ID,
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -10,7 +10,7 @@ import { OBSERVER_VERSION_MAJOR } from '../../../../../common/elasticsearch_fiel
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
ESFilter,
|
ESFilter,
|
||||||
} from '../../../../../../../../typings/elasticsearch';
|
} from '../../../../../../../../src/core/types/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
|
||||||
|
|
|
@ -15,7 +15,7 @@ import {
|
||||||
import {
|
import {
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
InferSearchResponseOf,
|
InferSearchResponseOf,
|
||||||
} from '../../../../../../../../typings/elasticsearch';
|
} from '../../../../../../../../src/core/types/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 '../../../../../../../../src/core/types/elasticsearch';
|
||||||
import { APMEventESSearchRequest } from '.';
|
import { APMEventESSearchRequest } from '.';
|
||||||
import {
|
import {
|
||||||
ApmIndicesConfig,
|
ApmIndicesConfig,
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { APMRouteHandlerResources } from '../../../../routes/typings';
|
||||||
import {
|
import {
|
||||||
ESSearchResponse,
|
ESSearchResponse,
|
||||||
ESSearchRequest,
|
ESSearchRequest,
|
||||||
} from '../../../../../../../../typings/elasticsearch';
|
} from '../../../../../../../../src/core/types/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';
|
} from '../../../../../../src/core/types/elasticsearch';
|
||||||
|
|
||||||
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 '../../../../../../src/core/types/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 '../../../../../../src/core/types/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';
|
||||||
|
|
|
@ -9,7 +9,7 @@ import {
|
||||||
uxLocalUIFilterNames,
|
uxLocalUIFilterNames,
|
||||||
uxLocalUIFilters,
|
uxLocalUIFilters,
|
||||||
} from '../../../../common/ux_ui_filter';
|
} from '../../../../common/ux_ui_filter';
|
||||||
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../src/core/types/elasticsearch';
|
||||||
import { UxUIFilters } from '../../../../typings/ui_filters';
|
import { UxUIFilters } from '../../../../typings/ui_filters';
|
||||||
import { environmentQuery } from '../../../utils/queries';
|
import { environmentQuery } from '../../../utils/queries';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Boom from '@hapi/boom';
|
import Boom from '@hapi/boom';
|
||||||
import { sortBy, uniqBy } from 'lodash';
|
import { sortBy, uniqBy } from 'lodash';
|
||||||
import { estypes } from '@elastic/elasticsearch';
|
import { estypes } from '@elastic/elasticsearch';
|
||||||
import { ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../../src/core/types/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 '../../../../../../src/core/types/elasticsearch';
|
||||||
import {
|
import {
|
||||||
METRIC_CGROUP_MEMORY_USAGE_BYTES,
|
METRIC_CGROUP_MEMORY_USAGE_BYTES,
|
||||||
METRIC_SYSTEM_CPU_PERCENT,
|
METRIC_SYSTEM_CPU_PERCENT,
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import Boom from '@hapi/boom';
|
import Boom from '@hapi/boom';
|
||||||
import { sortBy, take, uniq } from 'lodash';
|
import { sortBy, take, uniq } from 'lodash';
|
||||||
import { asMutableArray } from '../../../common/utils/as_mutable_array';
|
import { asMutableArray } from '../../../common/utils/as_mutable_array';
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../src/core/types/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 '../../../../../../../src/core/types/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 '../../../../../../../src/core/types/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 '../../../../../../../src/core/types/elasticsearch';
|
||||||
import {
|
import {
|
||||||
inspectSearchParams,
|
inspectSearchParams,
|
||||||
SearchParamsMock,
|
SearchParamsMock,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { AggregationOptionsByType } from 'typings/elasticsearch';
|
import { AggregationOptionsByType } from 'src/core/types/elasticsearch';
|
||||||
import {
|
import {
|
||||||
METRIC_CGROUP_MEMORY_USAGE_BYTES,
|
METRIC_CGROUP_MEMORY_USAGE_BYTES,
|
||||||
METRIC_PROCESS_CPU_PERCENT,
|
METRIC_PROCESS_CPU_PERCENT,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../src/core/types/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 '../../../../../../../src/core/types/elasticsearch';
|
||||||
import {
|
import {
|
||||||
PROFILE_STACK,
|
PROFILE_STACK,
|
||||||
PROFILE_TOP_ID,
|
PROFILE_TOP_ID,
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { SearchHit } from '../../../../../../../typings/elasticsearch';
|
import { SearchHit } from '../../../../../../../src/core/types/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 { SearchHit } from '../../../../../../../typings/elasticsearch';
|
import { SearchHit } from '../../../../../../../src/core/types/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 { SearchHit } from '../../../../../../../typings/elasticsearch';
|
import { SearchHit } from '../../../../../../../src/core/types/elasticsearch';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
SERVICE_ENVIRONMENT,
|
SERVICE_ENVIRONMENT,
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { sortBy, take } from 'lodash';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
import { Unionize } from 'utility-types';
|
import { Unionize } from 'utility-types';
|
||||||
import { asMutableArray } from '../../../common/utils/as_mutable_array';
|
import { asMutableArray } from '../../../common/utils/as_mutable_array';
|
||||||
import { AggregationOptionsByType } from '../../../../../../typings/elasticsearch';
|
import { AggregationOptionsByType } from '../../../../../../src/core/types/elasticsearch';
|
||||||
import { PromiseReturnType } from '../../../../observability/typings/common';
|
import { PromiseReturnType } from '../../../../observability/typings/common';
|
||||||
import {
|
import {
|
||||||
SERVICE_NAME,
|
SERVICE_NAME,
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
||||||
import { ESSearchResponse } from '../../../../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../../../src/core/types/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 { asMutableArray } from '../../../../common/utils/as_mutable_array';
|
import { asMutableArray } from '../../../../common/utils/as_mutable_array';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate';
|
import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset_previous_period_coordinate';
|
||||||
import { ESFilter } from '../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../src/core/types/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 '../../../../../../../src/core/types/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 { estypes } from '@elastic/elasticsearch';
|
import { estypes } from '@elastic/elasticsearch';
|
||||||
import { AggregationOptionsByType } from '../../../../../typings/elasticsearch';
|
import { AggregationOptionsByType } from '../../../../../src/core/types/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'> & {
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ESFilter } from '../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../src/core/types/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 '../../../../../src/core/types/elasticsearch';
|
||||||
import { UxUIFilters } from '../../typings/ui_filters';
|
import { UxUIFilters } from '../../typings/ui_filters';
|
||||||
|
|
||||||
interface Options {
|
interface Options {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import type { estypes } from '@elastic/elasticsearch';
|
import type { estypes } from '@elastic/elasticsearch';
|
||||||
|
|
||||||
import type { SearchHit } from '../../../../../../typings/elasticsearch';
|
import type { SearchHit } from '../../../../../../src/core/types/elasticsearch';
|
||||||
import type { Agent, AgentSOAttributes, FleetServerAgent } from '../../types';
|
import type { Agent, AgentSOAttributes, FleetServerAgent } from '../../types';
|
||||||
|
|
||||||
type FleetServerAgentESResponse =
|
type FleetServerAgentESResponse =
|
||||||
|
|
|
@ -12,7 +12,7 @@ import { ResponseError } from '@elastic/elasticsearch/lib/errors';
|
||||||
import type { SavedObjectsClientContract, ElasticsearchClient } from 'src/core/server';
|
import type { SavedObjectsClientContract, ElasticsearchClient } from 'src/core/server';
|
||||||
|
|
||||||
import { esKuery } from '../../../../../../src/plugins/data/server';
|
import { esKuery } from '../../../../../../src/plugins/data/server';
|
||||||
import type { ESSearchResponse as SearchResponse } from '../../../../../../typings/elasticsearch';
|
import type { ESSearchResponse as SearchResponse } from '../../../../../../src/core/types/elasticsearch';
|
||||||
import type { EnrollmentAPIKey, FleetServerEnrollmentAPIKey } from '../../types';
|
import type { EnrollmentAPIKey, FleetServerEnrollmentAPIKey } from '../../types';
|
||||||
import { IngestManagerError } from '../../errors';
|
import { IngestManagerError } from '../../errors';
|
||||||
import { ENROLLMENT_API_KEYS_INDEX } from '../../constants';
|
import { ENROLLMENT_API_KEYS_INDEX } from '../../constants';
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type { SearchHit } from '../../../../../../typings/elasticsearch';
|
import type { SearchHit } from '../../../../../../src/core/types/elasticsearch';
|
||||||
|
|
||||||
import type { Artifact, ArtifactElasticsearchProperties, NewArtifact } from './types';
|
import type { Artifact, ArtifactElasticsearchProperties, NewArtifact } 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 { SearchHit, ESSearchResponse } from '../../../../../../typings/elasticsearch';
|
import type { SearchHit, ESSearchResponse } from '../../../../../../src/core/types/elasticsearch';
|
||||||
|
|
||||||
import type { Artifact, ArtifactElasticsearchProperties, ArtifactsClientInterface } from './types';
|
import type { Artifact, ArtifactElasticsearchProperties, ArtifactsClientInterface } from './types';
|
||||||
import { newArtifactToElasticsearchProperties } from './mappings';
|
import { newArtifactToElasticsearchProperties } from './mappings';
|
||||||
|
|
|
@ -10,7 +10,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 '../../../../../src/core/types/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 '../../../../../src/core/types/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
|
||||||
|
|
|
@ -11,7 +11,7 @@ import { isEmpty } from 'lodash';
|
||||||
import FieldValueSuggestions from '../../../field_value_suggestions';
|
import FieldValueSuggestions from '../../../field_value_suggestions';
|
||||||
import { useSeriesStorage } from '../../hooks/use_series_storage';
|
import { useSeriesStorage } from '../../hooks/use_series_storage';
|
||||||
import { useAppIndexPatternContext } from '../../hooks/use_app_index_pattern';
|
import { useAppIndexPatternContext } from '../../hooks/use_app_index_pattern';
|
||||||
import { ESFilter } from '../../../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../../../src/core/types/elasticsearch';
|
||||||
import { PersistableFilter } from '../../../../../../../lens/common';
|
import { PersistableFilter } from '../../../../../../../lens/common';
|
||||||
import { ExistsFilter } from '../../../../../../../../../src/plugins/data/common/es_query/filters';
|
import { ExistsFilter } from '../../../../../../../../../src/plugins/data/common/es_query/filters';
|
||||||
import { buildPhrasesFilter } from '../../configurations/utils';
|
import { buildPhrasesFilter } from '../../configurations/utils';
|
||||||
|
|
|
@ -18,7 +18,7 @@ import { DataSeries, UrlFilter } from '../../types';
|
||||||
import { FilterValueButton } from './filter_value_btn';
|
import { FilterValueButton } from './filter_value_btn';
|
||||||
import { useValuesList } from '../../../../../hooks/use_values_list';
|
import { useValuesList } from '../../../../../hooks/use_values_list';
|
||||||
import { euiStyled } from '../../../../../../../../../src/plugins/kibana_react/common';
|
import { euiStyled } from '../../../../../../../../../src/plugins/kibana_react/common';
|
||||||
import { ESFilter } from '../../../../../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../../../../../src/core/types/elasticsearch';
|
||||||
import { PersistableFilter } from '../../../../../../../lens/common';
|
import { PersistableFilter } from '../../../../../../../lens/common';
|
||||||
import { ExistsFilter } from '../../../../../../../../../src/plugins/data/common/es_query/filters';
|
import { ExistsFilter } from '../../../../../../../../../src/plugins/data/common/es_query/filters';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import { PopoverAnchorPosition } from '@elastic/eui';
|
import { PopoverAnchorPosition } from '@elastic/eui';
|
||||||
import { Dispatch, SetStateAction } from 'react';
|
import { Dispatch, SetStateAction } from 'react';
|
||||||
import { ESFilter } from 'typings/elasticsearch';
|
import { ESFilter } from 'src/core/types/elasticsearch';
|
||||||
|
|
||||||
interface CommonProps {
|
interface CommonProps {
|
||||||
selectedValue?: string[];
|
selectedValue?: string[];
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
import { estypes } from '@elastic/elasticsearch';
|
import { estypes } from '@elastic/elasticsearch';
|
||||||
import { DataPublicPluginStart } from '../../../../../src/plugins/data/public';
|
import { DataPublicPluginStart } from '../../../../../src/plugins/data/public';
|
||||||
import { ESSearchResponse } from '../../../../../typings/elasticsearch';
|
import { ESSearchResponse } from '../../../../../src/core/types/elasticsearch';
|
||||||
import { useKibana } from '../../../../../src/plugins/kibana_react/public';
|
import { useKibana } from '../../../../../src/plugins/kibana_react/public';
|
||||||
import { isCompleteResponse } from '../../../../../src/plugins/data/common';
|
import { isCompleteResponse } from '../../../../../src/plugins/data/common';
|
||||||
import { useFetcher } from './use_fetcher';
|
import { useFetcher } from './use_fetcher';
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import { capitalize, union } from 'lodash';
|
import { capitalize, union } from 'lodash';
|
||||||
import { useEffect, useState } from 'react';
|
import { useEffect, useState } from 'react';
|
||||||
import useDebounce from 'react-use/lib/useDebounce';
|
import useDebounce from 'react-use/lib/useDebounce';
|
||||||
import { ESFilter } from '../../../../../typings/elasticsearch';
|
import { ESFilter } from '../../../../../src/core/types/elasticsearch';
|
||||||
import { createEsParams, useEsSearch } from './use_es_search';
|
import { createEsParams, useEsSearch } from './use_es_search';
|
||||||
|
|
||||||
export interface Props {
|
export interface Props {
|
||||||
|
|
|
@ -9,7 +9,7 @@ import { ApiResponse } from '@elastic/elasticsearch';
|
||||||
import { BulkRequest, BulkResponse } from '@elastic/elasticsearch/api/types';
|
import { BulkRequest, BulkResponse } from '@elastic/elasticsearch/api/types';
|
||||||
import { ElasticsearchClient } from 'kibana/server';
|
import { ElasticsearchClient } from 'kibana/server';
|
||||||
import { FieldDescriptor } from 'src/plugins/data/server';
|
import { FieldDescriptor } from 'src/plugins/data/server';
|
||||||
import { ESSearchRequest, ESSearchResponse } from 'typings/elasticsearch';
|
import { ESSearchRequest, ESSearchResponse } from 'src/core/types/elasticsearch';
|
||||||
import { TechnicalRuleDataFieldName } from '../../common/technical_rule_data_field_names';
|
import { TechnicalRuleDataFieldName } from '../../common/technical_rule_data_field_names';
|
||||||
|
|
||||||
export interface RuleDataReader {
|
export interface RuleDataReader {
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
* 2.0; you may not use this file except in compliance with the Elastic License
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
import { ESSearchRequest } from 'typings/elasticsearch';
|
import { ESSearchRequest } from 'src/core/types/elasticsearch';
|
||||||
import v4 from 'uuid/v4';
|
import v4 from 'uuid/v4';
|
||||||
import { Logger } from '@kbn/logging';
|
import { Logger } from '@kbn/logging';
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
import type { estypes } from '@elastic/elasticsearch';
|
import type { estypes } from '@elastic/elasticsearch';
|
||||||
import { schema } from '@kbn/config-schema';
|
import { schema } from '@kbn/config-schema';
|
||||||
import { Logger } from '@kbn/logging';
|
import { Logger } from '@kbn/logging';
|
||||||
import { ESSearchRequest } from 'typings/elasticsearch';
|
import { ESSearchRequest } from 'src/core/types/elasticsearch';
|
||||||
|
|
||||||
import { buildEsQuery, IIndexPattern } from '../../../../../../../src/plugins/data/common';
|
import { buildEsQuery, IIndexPattern } from '../../../../../../../src/plugins/data/common';
|
||||||
|
|
||||||
|
|
|
@ -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 '../../../../../../../../src/core/types/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 '../../../../../../src/core/types/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 '.';
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
* 2.0.
|
* 2.0.
|
||||||
*/
|
*/
|
||||||
import { estypes } from '@elastic/elasticsearch';
|
import { estypes } from '@elastic/elasticsearch';
|
||||||
import type { ESSearchRequest } from '../../../../typings/elasticsearch';
|
import type { ESSearchRequest } from '../../../../src/core/types/elasticsearch';
|
||||||
|
|
||||||
interface BuildSortedEventsQueryOpts {
|
interface BuildSortedEventsQueryOpts {
|
||||||
aggs?: Record<string, estypes.AggregationsAggregationContainer>;
|
aggs?: Record<string, estypes.AggregationsAggregationContainer>;
|
||||||
|
|
|
@ -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 '../../../../../../src/core/types/elasticsearch';
|
||||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||||
import { elasticsearchClientMock } from '../../../../../../src/core/server/elasticsearch/client/mocks';
|
import { elasticsearchClientMock } from '../../../../../../src/core/server/elasticsearch/client/mocks';
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { keyBy, mapValues } from 'lodash';
|
||||||
import { estypes } from '@elastic/elasticsearch';
|
import { estypes } from '@elastic/elasticsearch';
|
||||||
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 '../../../../../src/core/types/elasticsearch';
|
||||||
import { HealthStatus } from './monitoring_stats_stream';
|
import { HealthStatus } from './monitoring_stats_stream';
|
||||||
import { TaskStore } from '../task_store';
|
import { TaskStore } from '../task_store';
|
||||||
import { createRunningAveragedStat } from './task_run_calcultors';
|
import { createRunningAveragedStat } from './task_run_calcultors';
|
||||||
|
|
|
@ -17,7 +17,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 '../../../../../src/core/types/elasticsearch';
|
||||||
|
|
||||||
export interface UMDomainLibs {
|
export interface UMDomainLibs {
|
||||||
requests: UptimeRequests;
|
requests: UptimeRequests;
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
||||||
import { SearchHit } from '../../../../../../typings/elasticsearch';
|
import { SearchHit } from '../../../../../../src/core/types/elasticsearch';
|
||||||
import { asMutableArray } from '../../../common/utils/as_mutable_array';
|
import { asMutableArray } from '../../../common/utils/as_mutable_array';
|
||||||
import { UMElasticsearchQueryFn } from '../adapters/framework';
|
import { UMElasticsearchQueryFn } from '../adapters/framework';
|
||||||
import { Ping } from '../../../common/runtime_types';
|
import { Ping } from '../../../common/runtime_types';
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
import { QueryDslQueryContainer } from '@elastic/elasticsearch/api/types';
|
||||||
import { SearchHit } from 'typings/elasticsearch/search';
|
import { SearchHit } from 'src/core/types/elasticsearch/search';
|
||||||
import { asMutableArray } from '../../../common/utils/as_mutable_array';
|
import { asMutableArray } from '../../../common/utils/as_mutable_array';
|
||||||
import { UMElasticsearchQueryFn } from '../adapters/framework';
|
import { UMElasticsearchQueryFn } from '../adapters/framework';
|
||||||
import { Ping } from '../../../common/runtime_types';
|
import { Ping } from '../../../common/runtime_types';
|
||||||
|
|
|
@ -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 '../../../../../../src/core/types/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 '../../../../../../../src/core/types/elasticsearch';
|
||||||
|
|
||||||
export class QueryContext {
|
export class QueryContext {
|
||||||
callES: UptimeESClient;
|
callES: UptimeESClient;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue