diff --git a/examples/guided_onboarding_example/public/components/main.tsx b/examples/guided_onboarding_example/public/components/main.tsx index bf409520d8833..d172cfbb0c8f3 100644 --- a/examples/guided_onboarding_example/public/components/main.tsx +++ b/examples/guided_onboarding_example/public/components/main.tsx @@ -37,7 +37,6 @@ interface MainProps { } const exampleGuideIds: GuideId[] = [ - 'appSearch', 'websiteSearch', 'databaseSearch', 'siem', diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx b/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx index f7b3a72052537..2c60bd7e377fe 100644 --- a/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx +++ b/packages/kbn-guided-onboarding/src/components/landing_page/classic_version/guide_cards.constants.tsx @@ -72,22 +72,6 @@ export const guideCards: GuideCardConstants[] = [ telemetryId: 'onboarding--search--ai', order: 7, }, - { - solution: 'search', - icon: 'wrench', - title: ( - , - }} - /> - ), - guideId: 'appSearch', - telemetryId: 'onboarding--search--application', - order: 10, - }, { solution: 'search', icon: 'search', diff --git a/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx b/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx index 4728b70c338aa..ed52a70dfdc4e 100644 --- a/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx +++ b/packages/kbn-guided-onboarding/src/components/landing_page/guide/guide_cards.constants.tsx @@ -84,22 +84,6 @@ export const guideCards: GuideCardConstants[] = [ telemetryId: 'onboarding--search--ai', order: 7, }, - { - solution: 'search', - icon: 'wrench', - title: ( - , - }} - /> - ), - guideId: 'appSearch', - telemetryId: 'onboarding--search--application', - order: 10, - }, { solution: 'search', icon: 'search', diff --git a/packages/kbn-guided-onboarding/src/types.ts b/packages/kbn-guided-onboarding/src/types.ts index 9d53f30aed209..f9f1cbc2053bd 100644 --- a/packages/kbn-guided-onboarding/src/types.ts +++ b/packages/kbn-guided-onboarding/src/types.ts @@ -7,13 +7,7 @@ * License v3.0 only", or the "Server Side Public License, v 1". */ -export type GuideId = - | 'kubernetes' - | 'siem' - | 'appSearch' - | 'websiteSearch' - | 'databaseSearch' - | 'testGuide'; +export type GuideId = 'kubernetes' | 'siem' | 'websiteSearch' | 'databaseSearch' | 'testGuide'; type KubernetesStepIds = 'add_data' | 'view_dashboard' | 'tour_observability'; type SiemStepIds = 'add_data' | 'rules' | 'alertsCases'; diff --git a/src/plugins/guided_onboarding/README.md b/src/plugins/guided_onboarding/README.md index f5e1ae42e71ab..6310d22469bf3 100755 --- a/src/plugins/guided_onboarding/README.md +++ b/src/plugins/guided_onboarding/README.md @@ -118,7 +118,7 @@ The value of the parameter `indexID` needs to be passed to the API service when ## Guides config -To use the API service, you need to know a guide ID (currently one of `appSearch`, `websiteSearch`, `databaseSearch`, `kubernetes`, `siem`) and a step ID (for example, `add_data`, `search_experience`, `rules` etc). The consumers of guided onboarding register their guide configs themselves and have therefore full control over the guide ID and step IDs used for their guide. For more details on registering a guide config, see below. +To use the API service, you need to know a guide ID (currently one of `websiteSearch`, `databaseSearch`, `kubernetes`, `siem`) and a step ID (for example, `add_data`, `search_experience`, `rules` etc). The consumers of guided onboarding register their guide configs themselves and have therefore full control over the guide ID and step IDs used for their guide. For more details on registering a guide config, see below. ## Server side: register a guide config diff --git a/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts b/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts index dd327dd4706d5..3f79619d29137 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/application_usage/schema.ts @@ -145,8 +145,6 @@ export const applicationUsageSchema = { enterpriseSearchVectorSearch: commonSchema, enterpriseSearchElasticsearch: commonSchema, entity_manager: commonSchema, - appSearch: commonSchema, - workplaceSearch: commonSchema, searchExperiences: commonSchema, graph: commonSchema, logs: commonSchema, diff --git a/src/plugins/kibana_usage_collection/server/collectors/ui_metric/schema.ts b/src/plugins/kibana_usage_collection/server/collectors/ui_metric/schema.ts index 009e3918b9fab..f5119b5cd15ae 100644 --- a/src/plugins/kibana_usage_collection/server/collectors/ui_metric/schema.ts +++ b/src/plugins/kibana_usage_collection/server/collectors/ui_metric/schema.ts @@ -36,8 +36,6 @@ const uiMetricFromDataPluginSchema: MakeSchemaFrom = { csm: commonSchema, canvas: commonSchema, enterpriseSearch: commonSchema, - appSearch: commonSchema, - workplaceSearch: commonSchema, graph: commonSchema, logs: commonSchema, metrics: commonSchema, diff --git a/src/plugins/telemetry/schema/oss_plugins.json b/src/plugins/telemetry/schema/oss_plugins.json index 8ba1367641679..6e4164389b8a5 100644 --- a/src/plugins/telemetry/schema/oss_plugins.json +++ b/src/plugins/telemetry/schema/oss_plugins.json @@ -3277,268 +3277,6 @@ } } }, - "appSearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, - "workplaceSearch": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "Always `main`" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen over the last 90 days" - } - }, - "views": { - "type": "array", - "items": { - "properties": { - "appId": { - "type": "keyword", - "_meta": { - "description": "The application being tracked" - } - }, - "viewId": { - "type": "keyword", - "_meta": { - "description": "The application view being tracked" - } - }, - "clicks_total": { - "type": "long", - "_meta": { - "description": "General number of clicks in the application sub view since we started counting them" - } - }, - "clicks_7_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 7 days" - } - }, - "clicks_30_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 30 days" - } - }, - "clicks_90_days": { - "type": "long", - "_meta": { - "description": "General number of clicks in the active application sub view over the last 90 days" - } - }, - "minutes_on_screen_total": { - "type": "float", - "_meta": { - "description": "Minutes the application sub view is active and on-screen since we started counting them." - } - }, - "minutes_on_screen_7_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 7 days" - } - }, - "minutes_on_screen_30_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 30 days" - } - }, - "minutes_on_screen_90_days": { - "type": "float", - "_meta": { - "description": "Minutes the application is active and on-screen active application sub view over the last 90 days" - } - } - } - } - } - } - }, "searchExperiences": { "properties": { "appId": { @@ -11968,44 +11706,6 @@ } } }, - "appSearch": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, - "workplaceSearch": { - "type": "array", - "items": { - "properties": { - "key": { - "type": "keyword", - "_meta": { - "description": "The event that is tracked" - } - }, - "value": { - "type": "long", - "_meta": { - "description": "The value of the event" - } - } - } - } - }, "graph": { "type": "array", "items": { diff --git a/test/api_integration/apis/guided_onboarding/get_config.ts b/test/api_integration/apis/guided_onboarding/get_config.ts index 6ab2095e594b8..617401e34d70d 100644 --- a/test/api_integration/apis/guided_onboarding/get_config.ts +++ b/test/api_integration/apis/guided_onboarding/get_config.ts @@ -18,7 +18,7 @@ export default function testGetGuideConfig({ getService }: FtrProviderContext) { describe(`GET ${getConfigsPath}`, () => { // check that production guides are present - ['siem', 'appSearch', 'websiteSearch', 'databaseSearch', 'kubernetes'].map((guideId) => { + ['siem', 'websiteSearch', 'databaseSearch', 'kubernetes'].map((guideId) => { it(`returns config for ${guideId}`, async () => { const response = await supertest .get(`${getConfigsPath}/${guideId}`) diff --git a/test/api_integration/apis/guided_onboarding/get_guides.ts b/test/api_integration/apis/guided_onboarding/get_guides.ts index 029a4b2eb33b7..fef546d06844c 100644 --- a/test/api_integration/apis/guided_onboarding/get_guides.ts +++ b/test/api_integration/apis/guided_onboarding/get_guides.ts @@ -13,7 +13,6 @@ import { guideStateSavedObjectsType, pluginStateSavedObjectsType, } from '@kbn/guided-onboarding-plugin/server/saved_objects/guided_setup'; -import { appSearchGuideId } from '@kbn/enterprise-search-plugin/common/guided_onboarding/search_guide_config'; import { API_BASE_PATH } from '@kbn/guided-onboarding-plugin/common'; import { X_ELASTIC_INTERNAL_ORIGIN_REQUEST } from '@kbn/core-http-common'; import type { FtrProviderContext } from '../../ftr_provider_context'; @@ -42,19 +41,13 @@ export default function testGetGuidesState({ getService }: FtrProviderContext) { }); it('returns all created guides (active and inactive)', async () => { - await createGuides(kibanaServer, [ - testGuideStep1ActiveState, - { ...testGuideStep1ActiveState, guideId: appSearchGuideId }, - ]); + await createGuides(kibanaServer, [testGuideStep1ActiveState]); const response = await supertest .get(getGuidesPath) .set(X_ELASTIC_INTERNAL_ORIGIN_REQUEST, 'kibana') .expect(200); expect(response.body).not.to.be.empty(); - expect(response.body.state).to.eql([ - testGuideStep1ActiveState, - { ...testGuideStep1ActiveState, guideId: appSearchGuideId }, - ]); + expect(response.body.state).to.eql([testGuideStep1ActiveState]); }); }); } diff --git a/test/api_integration/apis/guided_onboarding/put_state.ts b/test/api_integration/apis/guided_onboarding/put_state.ts index c6682be76d528..b32229ed8670a 100644 --- a/test/api_integration/apis/guided_onboarding/put_state.ts +++ b/test/api_integration/apis/guided_onboarding/put_state.ts @@ -21,7 +21,6 @@ import { guideStateSavedObjectsType, } from '@kbn/guided-onboarding-plugin/server/saved_objects/guided_setup'; import { testGuideId } from '@kbn/guided-onboarding'; -import { appSearchGuideId } from '@kbn/enterprise-search-plugin/common/guided_onboarding/search_guide_config'; import { API_BASE_PATH } from '@kbn/guided-onboarding-plugin/common'; import { X_ELASTIC_INTERNAL_ORIGIN_REQUEST } from '@kbn/core-http-common'; import type { FtrProviderContext } from '../../ftr_provider_context'; @@ -135,10 +134,7 @@ export default function testPutState({ getService }: FtrProviderContext) { it('updates any existing active guides to inactive', async () => { // create an active guide and an inactive guide - await createGuides(kibanaServer, [ - testGuideStep1ActiveState, - { ...testGuideNotActiveState, guideId: appSearchGuideId }, - ]); + await createGuides(kibanaServer, [testGuideStep1ActiveState]); // Create a new guide with isActive: true await supertest @@ -160,17 +156,18 @@ export default function testPutState({ getService }: FtrProviderContext) { }); expect(testGuideSO.attributes.isActive).to.eql(false); - const searchGuideSO = await kibanaServer.savedObjects.get({ - type: guideStateSavedObjectsType, - id: appSearchGuideId, - }); - expect(searchGuideSO.attributes.isActive).to.eql(false); - - const kubernetesGuide = await kibanaServer.savedObjects.get({ - type: guideStateSavedObjectsType, - id: 'kubernetes', - }); - expect(kubernetesGuide.attributes.isActive).to.eql(true); + // TODO: Figure out what to do with this now that appSearchGuideId is gone + // const searchGuideSO = await kibanaServer.savedObjects.get({ + // type: guideStateSavedObjectsType, + // id: appSearchGuideId, + // }); + // expect(searchGuideSO.attributes.isActive).to.eql(false); + + // const kubernetesGuide = await kibanaServer.savedObjects.get({ + // type: guideStateSavedObjectsType, + // id: 'kubernetes', + // }); + // expect(kubernetesGuide.attributes.isActive).to.eql(true); }); it('saves dynamic params if provided', async () => { diff --git a/x-pack/plugins/enterprise_search/common/guided_onboarding/search_guide_config.ts b/x-pack/plugins/enterprise_search/common/guided_onboarding/search_guide_config.ts index d46ab70628fd1..5d6c5e9f11dfd 100644 --- a/x-pack/plugins/enterprise_search/common/guided_onboarding/search_guide_config.ts +++ b/x-pack/plugins/enterprise_search/common/guided_onboarding/search_guide_config.ts @@ -8,20 +8,15 @@ import type { GuideConfig, StepConfig } from '@kbn/guided-onboarding'; import { i18n } from '@kbn/i18n'; -export const appSearchGuideId = 'appSearch'; export const websiteSearchGuideId = 'websiteSearch'; export const databaseSearchGuideId = 'databaseSearch'; const apiRoutes = { - [appSearchGuideId]: '/search_indices/new_index/api', [databaseSearchGuideId]: '/connectors/select_connector', [websiteSearchGuideId]: '/crawlers', }; -export type EnterpriseSearchGuideIds = - | typeof appSearchGuideId - | typeof websiteSearchGuideId - | typeof databaseSearchGuideId; +export type EnterpriseSearchGuideIds = typeof websiteSearchGuideId | typeof databaseSearchGuideId; const getAddDataStep: (method?: EnterpriseSearchGuideIds) => StepConfig = (method) => { return { @@ -88,8 +83,6 @@ const getGuideConfig: (telemetryId: EnterpriseSearchGuideIds) => GuideConfig = ( }; }; -export const appSearchGuideConfig: GuideConfig = getGuideConfig(appSearchGuideId); - export const websiteSearchGuideConfig: GuideConfig = getGuideConfig(websiteSearchGuideId); export const databaseSearchGuideConfig: GuideConfig = getGuideConfig(databaseSearchGuideId); diff --git a/x-pack/plugins/monitoring/common/constants.ts b/x-pack/plugins/monitoring/common/constants.ts index 61dcf1a17df6b..a13d8079f4da1 100644 --- a/x-pack/plugins/monitoring/common/constants.ts +++ b/x-pack/plugins/monitoring/common/constants.ts @@ -170,7 +170,6 @@ export const CODE_PATH_LOGSTASH = 'logstash'; export const CODE_PATH_APM = 'apm'; export const CODE_PATH_LICENSE = 'license'; export const CODE_PATH_LOGS = 'logs'; -export const CODE_PATH_ENTERPRISE_SEARCH = 'enterprise_search'; /** * The header sent by telemetry service when hitting Elasticsearch to identify query source diff --git a/x-pack/plugins/monitoring/public/application/index.tsx b/x-pack/plugins/monitoring/public/application/index.tsx index 39969c550570e..fc6d7f6076937 100644 --- a/x-pack/plugins/monitoring/public/application/index.tsx +++ b/x-pack/plugins/monitoring/public/application/index.tsx @@ -17,7 +17,6 @@ import { CODE_PATH_APM, CODE_PATH_BEATS, CODE_PATH_ELASTICSEARCH, - CODE_PATH_ENTERPRISE_SEARCH, CODE_PATH_KIBANA, CODE_PATH_LOGSTASH, } from '../../common/constants'; @@ -43,7 +42,6 @@ import { ElasticsearchNodesPage } from './pages/elasticsearch/nodes_page'; import { ElasticsearchNodeAdvancedPage } from './pages/elasticsearch/node_advanced_page'; import { ElasticsearchNodePage } from './pages/elasticsearch/node_page'; import { ElasticsearchOverviewPage } from './pages/elasticsearch/overview'; -import { EntSearchOverviewPage } from './pages/enterprise_search/overview'; import { ClusterListing } from './pages/home/cluster_listing'; import { KibanaInstancePage } from './pages/kibana/instance'; import { KibanaInstancesPage } from './pages/kibana/instances'; @@ -325,13 +323,6 @@ const MonitoringApp: React.FC<{ fetchAllClusters={false} /> - - > = ( - props -) => { - return ; -}; diff --git a/x-pack/plugins/monitoring/public/application/pages/enterprise_search/overview.tsx b/x-pack/plugins/monitoring/public/application/pages/enterprise_search/overview.tsx deleted file mode 100644 index 4493ec12adba4..0000000000000 --- a/x-pack/plugins/monitoring/public/application/pages/enterprise_search/overview.tsx +++ /dev/null @@ -1,79 +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. - */ - -import React, { useContext, useState, useCallback, useEffect } from 'react'; -import { i18n } from '@kbn/i18n'; -import { find } from 'lodash'; -import { useKibana } from '@kbn/kibana-react-plugin/public'; -import { ComponentProps } from '../../route_init'; -import { EntSearchTemplate } from './ent_search_template'; -import { GlobalStateContext } from '../../contexts/global_state_context'; -import { useCharts } from '../../hooks/use_charts'; -import { EnterpriseSearchOverview } from '../../../components/enterprise_search/overview'; -import { useBreadcrumbContainerContext } from '../../hooks/use_breadcrumbs'; - -export const EntSearchOverviewPage: React.FC = ({ clusters }) => { - const globalState = useContext(GlobalStateContext); - const { zoomInfo, onBrush } = useCharts(); - const { services } = useKibana<{ data: any }>(); - const clusterUuid = globalState.cluster_uuid; - const ccs = globalState.ccs; - const { generate: generateBreadcrumbs } = useBreadcrumbContainerContext(); - const cluster = find(clusters, { - cluster_uuid: clusterUuid, - }) as any; - - const [data, setData] = useState(null); - - const title = i18n.translate('xpack.monitoring.entSearch.overview.routeTitle', { - defaultMessage: 'Enterprise Search - Overview', - }); - - const pageTitle = i18n.translate('xpack.monitoring.entSearch.overview.pageTitle', { - defaultMessage: 'Enterprise Search Overview', - }); - - useEffect(() => { - if (cluster) { - generateBreadcrumbs(cluster.cluster_name, { inEnterpriseSearch: true }); - } - }, [cluster, generateBreadcrumbs]); - - const getPageData = useCallback(async () => { - const bounds = services.data?.query.timefilter.timefilter.getBounds(); - const url = `../api/monitoring/v1/clusters/${clusterUuid}/enterprise_search`; - - const response = await services.http?.fetch(url, { - method: 'POST', - body: JSON.stringify({ - ccs, - timeRange: { - min: bounds.min.toISOString(), - max: bounds.max.toISOString(), - }, - }), - }); - - setData(response); - }, [ccs, clusterUuid, services.data?.query.timefilter.timefilter, services.http]); - - return ( - -
- { - // @ts-expect-error ts upgrade v4.7.4 - data && - } -
-
- ); -}; diff --git a/x-pack/plugins/monitoring/public/components/enterprise_search/overview/index.ts b/x-pack/plugins/monitoring/public/components/enterprise_search/overview/index.ts deleted file mode 100644 index ffea796a8904e..0000000000000 --- a/x-pack/plugins/monitoring/public/components/enterprise_search/overview/index.ts +++ /dev/null @@ -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. - */ - -export { EnterpriseSearchOverview } from './overview'; diff --git a/x-pack/plugins/monitoring/public/components/enterprise_search/overview/overview.tsx b/x-pack/plugins/monitoring/public/components/enterprise_search/overview/overview.tsx deleted file mode 100644 index 5c034b5ba3ad0..0000000000000 --- a/x-pack/plugins/monitoring/public/components/enterprise_search/overview/overview.tsx +++ /dev/null @@ -1,150 +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. - */ - -import React from 'react'; -import { - EuiPage, - EuiPageBody, - EuiPageSection, - EuiScreenReaderOnly, - EuiPanel, - EuiSpacer, - EuiFlexGrid, - EuiFlexItem, -} from '@elastic/eui'; -import { FormattedMessage } from '@kbn/i18n-react'; -import { MonitoringTimeseriesContainer } from '../../chart'; -import { Status } from './status'; - -export const EnterpriseSearchOverview: React.FC = ({ metrics, stats, ...rest }) => { - const lowLevelUsageMetrics = [ - metrics.enterprise_search_heap, - metrics.enterprise_search_jvm_finalizer_queue, - metrics.enterprise_search_gc_time, - metrics.enterprise_search_gc_rate, - metrics.enterprise_search_threads, - metrics.enterprise_search_threads_rate, - ]; - - const networkMetrics = [ - metrics.enterprise_search_http_traffic, - metrics.enterprise_search_http_responses, - metrics.enterprise_search_http_connections_current, - metrics.enterprise_search_http_connections_rate, - ]; - - const appSearchUsageMetrics = [metrics.app_search_total_engines, metrics.crawler_workers]; - - const workplaceSearchUsageMetrics = [metrics.workplace_search_total_sources]; - - return ( - - - -

- -

-
- - - - - - - - - -

- -

-
- - - - {networkMetrics.map((metric, index) => ( - - - - - ))} - -
- - - - - -

- -

-
- - - - {lowLevelUsageMetrics.map((metric, index) => ( - - - - - ))} - -
- - - - - -

- -

-
- - {appSearchUsageMetrics.map((metric, index) => ( - - - - - ))} - -
- - - - - -

- -

-
- - {workplaceSearchUsageMetrics.map((metric, index) => ( - - - - - ))} - -
-
-
- ); -}; diff --git a/x-pack/plugins/monitoring/public/components/enterprise_search/overview/status.tsx b/x-pack/plugins/monitoring/public/components/enterprise_search/overview/status.tsx deleted file mode 100644 index a5a704f6f1e23..0000000000000 --- a/x-pack/plugins/monitoring/public/components/enterprise_search/overview/status.tsx +++ /dev/null @@ -1,55 +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. - */ - -import React from 'react'; -import { i18n } from '@kbn/i18n'; -import { formatMetric } from '../../../lib/format_number'; -import { SummaryStatus } from '../../summary_status'; - -interface Props { - stats: { - totalInstances: number; - appSearchEngines: number; - workplaceSearchOrgSources: number; - workplaceSearchPrivateSources: number; - }; -} - -export function Status({ stats }: Props) { - const metrics = [ - { - label: i18n.translate('xpack.monitoring.entSearch.overview.instances', { - defaultMessage: 'Instances', - }), - value: formatMetric(stats.totalInstances, 'int_commas'), - 'data-test-subj': 'totalInstances', - }, - { - label: i18n.translate('xpack.monitoring.entSearch.overview.appSearchEngines', { - defaultMessage: 'App Search Engines', - }), - value: formatMetric(stats.appSearchEngines, 'int_commas'), - 'data-test-subj': 'appSearchEngines', - }, - { - label: i18n.translate('xpack.monitoring.entSearch.overview.workplaceSearchOrgSources', { - defaultMessage: 'Org Content Sources', - }), - value: formatMetric(stats.workplaceSearchOrgSources, 'int_commas'), - 'data-test-subj': 'workplaceSearchOrgSources', - }, - { - label: i18n.translate('xpack.monitoring.entSearch.overview.workplaceSearchPrivateSources', { - defaultMessage: 'Private Content Sources', - }), - value: formatMetric(stats.workplaceSearchPrivateSources, 'int_commas'), - 'data-test-subj': 'workplaceSearchPrivateSources', - }, - ]; - - return ; -}