mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
## Summary Multi space monitors !! Fixes https://github.com/elastic/kibana/issues/164294 User will be able to choose in which space monitors will be available !! <img width="1728" alt="image" src="https://github.com/user-attachments/assets/f01ac226-ed54-4e96-b6f4-27f0134a9be5" /> ### Technical This is being done by registering another saved object type and for existing monitors it will continue to work as right now but for newly created monitors user will have ability to specify spaces or choose multiple spaces or all. ### Testing 1. Create few monitors before this PR in multiple spaces 2. Create multiple monitors in multiple spaces after this PR 3. Make sure filtering, editing and deleting, creating works as expected on both set of monitors --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
126 lines
6.2 KiB
TypeScript
126 lines
6.2 KiB
TypeScript
/*
|
|
* 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 { syntheticsInspectStatusRuleRoute } from './rules/inspect_status_rule';
|
|
import { syntheticsInspectTLSRuleRoute } from './rules/inspect_tls_rule';
|
|
import { syntheticsGetLatestTestRunRoute } from './pings/get_latest_test_run';
|
|
import { deleteSyntheticsParamsBulkRoute } from './settings/params/delete_params_bulk';
|
|
import { deleteSyntheticsMonitorBulkRoute } from './monitor_cruds/bulk_cruds/delete_monitor_bulk';
|
|
import {
|
|
createGetDynamicSettingsRoute,
|
|
createPostDynamicSettingsRoute,
|
|
} from './settings/dynamic_settings';
|
|
import { getSyntheticsParamsRoute } from './settings/params/params';
|
|
import { editSyntheticsParamsRoute } from './settings/params/edit_param';
|
|
import { getConnectorTypesRoute } from './default_alerts/get_connector_types';
|
|
import { getActionConnectorsRoute } from './default_alerts/get_action_connectors';
|
|
import { SyntheticsRestApiRouteFactory } from './types';
|
|
import { getSyntheticsCertsRoute } from './certs/get_certificates';
|
|
import { getSyntheticsSuggestionsRoute } from './suggestions/suggestions_route';
|
|
import { getAgentPoliciesRoute } from './settings/private_locations/get_agent_policies';
|
|
import { inspectSyntheticsMonitorRoute } from './monitor_cruds/inspect_monitor';
|
|
import { deletePackagePolicyRoute } from './monitor_cruds/delete_integration';
|
|
import { createJourneyScreenshotRoute } from './pings/journey_screenshots';
|
|
import { createJourneyScreenshotBlocksRoute } from './pings/journey_screenshot_blocks';
|
|
import { createLastSuccessfulCheckRoute } from './pings/last_successful_check';
|
|
import { createJourneyFailedStepsRoute, createJourneyRoute } from './pings/journeys';
|
|
import { updateDefaultAlertingRoute } from './default_alerts/update_default_alert';
|
|
import { getIndexSizesRoute } from './settings/settings';
|
|
import { getAPIKeySyntheticsRoute } from './monitor_cruds/get_api_key';
|
|
import { getServiceLocationsRoute } from './synthetics_service/get_service_locations';
|
|
import { deleteSyntheticsMonitorRoute } from './monitor_cruds/delete_monitor';
|
|
import {
|
|
disableSyntheticsRoute,
|
|
getSyntheticsEnablementRoute,
|
|
} from './synthetics_service/enablement';
|
|
import { getSyntheticsMonitorRoute } from './monitor_cruds/get_monitor';
|
|
import { deleteSyntheticsMonitorProjectRoute } from './monitor_cruds/project_monitor/delete_monitor_project';
|
|
import { getSyntheticsProjectMonitorsRoute } from './monitor_cruds/project_monitor/get_monitor_project';
|
|
import { runOnceSyntheticsMonitorRoute } from './synthetics_service/run_once_monitor';
|
|
import { getServiceAllowedRoute } from './synthetics_service/get_service_allowed';
|
|
import { testNowMonitorRoute } from './synthetics_service/test_now_monitor';
|
|
import { installIndexTemplatesRoute } from './synthetics_service/install_index_templates';
|
|
import { editSyntheticsMonitorRoute } from './monitor_cruds/edit_monitor';
|
|
import { addSyntheticsMonitorRoute } from './monitor_cruds/add_monitor';
|
|
import { addSyntheticsProjectMonitorRoute } from './monitor_cruds/project_monitor/add_monitor_project';
|
|
import { syntheticsGetPingsRoute, syntheticsGetPingHeatmapRoute } from './pings';
|
|
import { createGetCurrentStatusRoute } from './overview_status/overview_status';
|
|
import { getHasIntegrationMonitorsRoute } from './fleet/get_has_integration_monitors';
|
|
import { enableDefaultAlertingRoute } from './default_alerts/enable_default_alert';
|
|
import { getDefaultAlertingRoute } from './default_alerts/get_default_alert';
|
|
import { createNetworkEventsRoute } from './network_events';
|
|
import { addPrivateLocationRoute } from './settings/private_locations/add_private_location';
|
|
import { deletePrivateLocationRoute } from './settings/private_locations/delete_private_location';
|
|
import { editPrivateLocationRoute } from './settings/private_locations/edit_private_location';
|
|
import { getPrivateLocationsRoute } from './settings/private_locations/get_private_locations';
|
|
import { getSyntheticsFilters } from './filters/filters';
|
|
import { getAllSyntheticsMonitorRoute } from './monitor_cruds/get_monitors_list';
|
|
import { getLocationMonitors } from './settings/private_locations/get_location_monitors';
|
|
import { addSyntheticsParamsRoute } from './settings/params/add_param';
|
|
import { deleteSyntheticsParamsRoute } from './settings/params/delete_param';
|
|
import { createOverviewTrendsRoute } from './overview_trends/overview_trends';
|
|
|
|
export const syntheticsAppRestApiRoutes: SyntheticsRestApiRouteFactory[] = [
|
|
addSyntheticsProjectMonitorRoute,
|
|
getSyntheticsEnablementRoute,
|
|
deleteSyntheticsMonitorProjectRoute,
|
|
disableSyntheticsRoute,
|
|
getServiceLocationsRoute,
|
|
getSyntheticsProjectMonitorsRoute,
|
|
installIndexTemplatesRoute,
|
|
runOnceSyntheticsMonitorRoute,
|
|
testNowMonitorRoute,
|
|
getServiceAllowedRoute,
|
|
getAPIKeySyntheticsRoute,
|
|
syntheticsGetPingsRoute,
|
|
getHasIntegrationMonitorsRoute,
|
|
createGetCurrentStatusRoute,
|
|
getIndexSizesRoute,
|
|
enableDefaultAlertingRoute,
|
|
getDefaultAlertingRoute,
|
|
updateDefaultAlertingRoute,
|
|
createJourneyRoute,
|
|
createLastSuccessfulCheckRoute,
|
|
createJourneyScreenshotBlocksRoute,
|
|
createJourneyFailedStepsRoute,
|
|
createNetworkEventsRoute,
|
|
createJourneyScreenshotRoute,
|
|
deletePackagePolicyRoute,
|
|
getLocationMonitors,
|
|
getSyntheticsFilters,
|
|
inspectSyntheticsMonitorRoute,
|
|
getAgentPoliciesRoute,
|
|
getSyntheticsCertsRoute,
|
|
getSyntheticsSuggestionsRoute,
|
|
getActionConnectorsRoute,
|
|
getConnectorTypesRoute,
|
|
createGetDynamicSettingsRoute,
|
|
createPostDynamicSettingsRoute,
|
|
syntheticsGetPingHeatmapRoute,
|
|
createOverviewTrendsRoute,
|
|
syntheticsInspectStatusRuleRoute,
|
|
syntheticsInspectTLSRuleRoute,
|
|
];
|
|
|
|
export const syntheticsAppPublicRestApiRoutes: SyntheticsRestApiRouteFactory[] = [
|
|
getSyntheticsParamsRoute,
|
|
editSyntheticsParamsRoute,
|
|
addSyntheticsParamsRoute,
|
|
deleteSyntheticsParamsRoute,
|
|
addPrivateLocationRoute,
|
|
deletePrivateLocationRoute,
|
|
editPrivateLocationRoute,
|
|
getPrivateLocationsRoute,
|
|
getAllSyntheticsMonitorRoute,
|
|
getSyntheticsMonitorRoute,
|
|
addSyntheticsMonitorRoute,
|
|
editSyntheticsMonitorRoute,
|
|
deleteSyntheticsMonitorRoute,
|
|
deleteSyntheticsMonitorBulkRoute,
|
|
deleteSyntheticsParamsBulkRoute,
|
|
syntheticsGetLatestTestRunRoute,
|
|
];
|