2018-10-17 12:07:50 +02:00
|
|
|
/*
|
|
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
2021-02-04 03:12:39 +01:00
|
|
|
* 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.
|
2018-10-17 12:07:50 +02:00
|
|
|
*/
|
|
|
|
|
2019-05-20 20:20:49 +02:00
|
|
|
import { initIpToHostName } from './routes/ip_to_hostname';
|
2018-10-17 12:07:50 +02:00
|
|
|
import { InfraBackendLibs } from './lib/infra_types';
|
2019-11-25 17:05:51 +01:00
|
|
|
import {
|
2020-01-13 20:15:15 +01:00
|
|
|
initGetLogEntryCategoriesRoute,
|
|
|
|
initGetLogEntryCategoryDatasetsRoute,
|
2020-09-24 17:02:23 +02:00
|
|
|
initGetLogEntryCategoryDatasetsStatsRoute,
|
2020-03-11 20:07:55 +01:00
|
|
|
initGetLogEntryCategoryExamplesRoute,
|
2020-07-13 19:09:10 +02:00
|
|
|
initGetLogEntryExamplesRoute,
|
2020-05-04 13:29:28 +02:00
|
|
|
initValidateLogAnalysisDatasetsRoute,
|
2019-12-10 19:21:10 +01:00
|
|
|
initValidateLogAnalysisIndicesRoute,
|
2020-07-13 19:09:10 +02:00
|
|
|
initGetLogEntryAnomaliesRoute,
|
2020-07-14 16:26:22 +02:00
|
|
|
initGetLogEntryAnomaliesDatasetsRoute,
|
2019-11-25 17:05:51 +01:00
|
|
|
} from './routes/log_analysis';
|
2020-09-23 20:27:28 +02:00
|
|
|
import { initGetK8sAnomaliesRoute } from './routes/infra_ml';
|
|
|
|
import { initGetHostsAnomaliesRoute } from './routes/infra_ml';
|
2019-05-08 18:23:45 +02:00
|
|
|
import { initMetricExplorerRoute } from './routes/metrics_explorer';
|
2020-10-29 21:55:50 +01:00
|
|
|
import { initMetricsAPIRoute } from './routes/metrics_api';
|
2019-08-02 18:13:08 +02:00
|
|
|
import { initMetadataRoute } from './routes/metadata';
|
2019-12-04 21:32:38 +01:00
|
|
|
import { initSnapshotRoute } from './routes/snapshot';
|
|
|
|
import { initNodeDetailsRoute } from './routes/node_details';
|
2019-12-18 12:30:27 +01:00
|
|
|
import {
|
2020-01-03 18:12:47 +01:00
|
|
|
initLogEntriesHighlightsRoute,
|
2019-12-18 12:30:27 +01:00
|
|
|
initLogEntriesSummaryRoute,
|
|
|
|
initLogEntriesSummaryHighlightsRoute,
|
|
|
|
} from './routes/log_entries';
|
2019-12-16 20:55:26 +01:00
|
|
|
import { initInventoryMetaRoute } from './routes/inventory_metadata';
|
2020-04-28 11:12:50 +02:00
|
|
|
import { initLogSourceConfigurationRoutes, initLogSourceStatusRoutes } from './routes/log_sources';
|
2021-03-25 19:59:18 +01:00
|
|
|
import { initMetricsSourceConfigurationRoutes } from './routes/metrics_sources';
|
2020-12-10 20:35:27 +01:00
|
|
|
import { initOverviewRoute } from './routes/overview';
|
2020-06-15 20:17:04 +02:00
|
|
|
import { initAlertPreviewRoute } from './routes/alerting';
|
2020-08-25 12:23:57 +02:00
|
|
|
import { initGetLogAlertsChartPreviewDataRoute } from './routes/log_alerts';
|
2020-11-18 17:41:28 +01:00
|
|
|
import { initProcessListRoute } from './routes/process_list';
|
2018-10-17 12:07:50 +02:00
|
|
|
|
|
|
|
export const initInfraServer = (libs: InfraBackendLibs) => {
|
2019-05-20 20:20:49 +02:00
|
|
|
initIpToHostName(libs);
|
2020-01-13 20:15:15 +01:00
|
|
|
initGetLogEntryCategoriesRoute(libs);
|
|
|
|
initGetLogEntryCategoryDatasetsRoute(libs);
|
2020-09-24 17:02:23 +02:00
|
|
|
initGetLogEntryCategoryDatasetsStatsRoute(libs);
|
2020-03-11 20:07:55 +01:00
|
|
|
initGetLogEntryCategoryExamplesRoute(libs);
|
2020-07-13 19:09:10 +02:00
|
|
|
initGetLogEntryAnomaliesRoute(libs);
|
2020-07-14 16:26:22 +02:00
|
|
|
initGetLogEntryAnomaliesDatasetsRoute(libs);
|
2020-09-23 20:27:28 +02:00
|
|
|
initGetK8sAnomaliesRoute(libs);
|
|
|
|
initGetHostsAnomaliesRoute(libs);
|
2019-12-04 21:32:38 +01:00
|
|
|
initSnapshotRoute(libs);
|
|
|
|
initNodeDetailsRoute(libs);
|
2021-03-25 19:59:18 +01:00
|
|
|
initMetricsSourceConfigurationRoutes(libs);
|
2020-05-04 13:29:28 +02:00
|
|
|
initValidateLogAnalysisDatasetsRoute(libs);
|
2019-12-10 19:21:10 +01:00
|
|
|
initValidateLogAnalysisIndicesRoute(libs);
|
2020-07-13 19:09:10 +02:00
|
|
|
initGetLogEntryExamplesRoute(libs);
|
2020-01-03 18:12:47 +01:00
|
|
|
initLogEntriesHighlightsRoute(libs);
|
2019-12-18 12:30:27 +01:00
|
|
|
initLogEntriesSummaryRoute(libs);
|
|
|
|
initLogEntriesSummaryHighlightsRoute(libs);
|
2019-05-08 18:23:45 +02:00
|
|
|
initMetricExplorerRoute(libs);
|
2020-10-29 21:55:50 +01:00
|
|
|
initMetricsAPIRoute(libs);
|
2019-08-02 18:13:08 +02:00
|
|
|
initMetadataRoute(libs);
|
2019-12-16 20:55:26 +01:00
|
|
|
initInventoryMetaRoute(libs);
|
2020-04-28 11:12:50 +02:00
|
|
|
initLogSourceConfigurationRoutes(libs);
|
|
|
|
initLogSourceStatusRoutes(libs);
|
2020-06-15 20:17:04 +02:00
|
|
|
initAlertPreviewRoute(libs);
|
2020-08-25 12:23:57 +02:00
|
|
|
initGetLogAlertsChartPreviewDataRoute(libs);
|
2020-11-18 17:41:28 +01:00
|
|
|
initProcessListRoute(libs);
|
2020-12-10 20:35:27 +01:00
|
|
|
initOverviewRoute(libs);
|
2018-10-17 12:07:50 +02:00
|
|
|
};
|