mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Synthetics] adjust synthetics api routes to use /internal prefix (#159135)
## Summary Adds missing `/internal` prefixes to synthetics api routes
This commit is contained in:
parent
d1da0ee836
commit
f48b742be1
2 changed files with 5 additions and 5 deletions
|
@ -11,11 +11,11 @@ export enum SYNTHETICS_API_URLS {
|
|||
PING_STATUSES = '/internal/synthetics/ping_statuses',
|
||||
OVERVIEW_STATUS = `/internal/synthetics/overview_status`,
|
||||
INDEX_SIZE = `/internal/synthetics/index_size`,
|
||||
PARAMS = `/synthetics/params`,
|
||||
PRIVATE_LOCATIONS = `/synthetics/private_locations`,
|
||||
PARAMS = `/internal/synthetics/params`,
|
||||
PRIVATE_LOCATIONS = `/internal/synthetics/private_locations`,
|
||||
PRIVATE_LOCATIONS_MONITORS = `/internal/synthetics/private_locations/monitors`,
|
||||
SYNC_GLOBAL_PARAMS = `/synthetics/sync_global_params`,
|
||||
ENABLE_DEFAULT_ALERTING = `/synthetics/enable_default_alerting`,
|
||||
SYNC_GLOBAL_PARAMS = `/internal/synthetics/sync_global_params`,
|
||||
ENABLE_DEFAULT_ALERTING = `/internal/synthetics/enable_default_alerting`,
|
||||
JOURNEY = `/internal/synthetics/journey/{checkGroup}`,
|
||||
SYNTHETICS_SUCCESSFUL_CHECK = `/internal/synthetics/synthetics/check/success`,
|
||||
JOURNEY_SCREENSHOT_BLOCKS = `/internal/synthetics/journey/screenshot/block`,
|
||||
|
|
|
@ -36,7 +36,7 @@ export const getSyntheticsFilters: SyntheticsRestApiRouteFactory = () => ({
|
|||
method: 'GET',
|
||||
path: SYNTHETICS_API_URLS.FILTERS,
|
||||
validate: {},
|
||||
handler: async ({ savedObjectsClient, request, response, server }): Promise<any> => {
|
||||
handler: async ({ savedObjectsClient }): Promise<any> => {
|
||||
const data = await savedObjectsClient.find({
|
||||
type: syntheticsMonitorType,
|
||||
perPage: 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue