Skip to content

Commit

Permalink
[Synthetics] Clean up common dir (elastic#162692)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jul 31, 2023
1 parent 0367514 commit fa01462
Show file tree
Hide file tree
Showing 43 changed files with 57 additions and 953 deletions.
27 changes: 0 additions & 27 deletions x-pack/plugins/synthetics/common/constants/chart_format_limits.ts

This file was deleted.

3 changes: 0 additions & 3 deletions x-pack/plugins/synthetics/common/constants/index.ts
Expand Up @@ -5,12 +5,9 @@
* 2.0.
*/

export { CHART_FORMAT_LIMITS } from './chart_format_limits';
export { CLIENT_DEFAULTS } from './client_defaults';
export { CONTEXT_DEFAULTS } from './context_defaults';
export * from './capabilities';
export * from './settings_defaults';
export { QUERY } from './query';
export * from './ui';
export * from './rest_api';
export * from './synthetics';
28 changes: 0 additions & 28 deletions x-pack/plugins/synthetics/common/constants/query.ts

This file was deleted.

37 changes: 0 additions & 37 deletions x-pack/plugins/synthetics/common/constants/rest_api.ts

This file was deleted.

Expand Up @@ -45,4 +45,11 @@ export enum SYNTHETICS_API_URLS {
SYNTHETICS_MONITORS_PROJECT = '/api/synthetics/project/{projectName}/monitors',
SYNTHETICS_MONITORS_PROJECT_UPDATE = '/api/synthetics/project/{projectName}/monitors/_bulk_update',
SYNTHETICS_MONITORS_PROJECT_DELETE = '/api/synthetics/project/{projectName}/monitors/_bulk_delete',

DYNAMIC_SETTINGS = `/internal/uptime/dynamic_settings`,
RULE_CONNECTORS = '/api/actions/connectors',
CREATE_RULE = '/api/alerting/rule',
DELETE_RULE = '/api/alerting/rule/',
RULES_FIND = '/api/alerting/rules/_find',
CONNECTOR_TYPES = '/api/actions/connector_types',
}
15 changes: 0 additions & 15 deletions x-pack/plugins/synthetics/common/constants/ui.ts
Expand Up @@ -42,8 +42,6 @@ export const SYNTHETIC_CHECK_STEPS_ROUTE = '/journey/:checkGroupId/steps';

export const TEST_RUN_DETAILS_ROUTE = '/monitor/:monitorId/test-run/:checkGroupId';

export const MAPPING_ERROR_ROUTE = '/mapping-error';

export const ERROR_DETAILS_ROUTE = '/monitor/:monitorId/errors/:errorStateId';

export enum STATUS {
Expand All @@ -61,10 +59,6 @@ export enum MONITOR_TYPES {
BROWSER = 'browser',
}

export const ML_JOB_ID = 'high_latency_by_geo';

export const ML_MODULE_ID = 'uptime_heartbeat';

export const UNNAMED_LOCATION = 'Unnamed-location';

export enum CERT_STATUS {
Expand All @@ -74,15 +68,6 @@ export enum CERT_STATUS {
TOO_OLD = 'TOO_OLD',
}

export const KQL_SYNTAX_LOCAL_STORAGE = 'xpack.uptime.kql.syntax';

export const FILTER_FIELDS = {
TAGS: 'tags',
PORT: 'url.port',
LOCATION: 'observer.geo.name',
TYPE: 'monitor.type',
};

export const SYNTHETICS_INDEX_PATTERN = 'synthetics-*';

export const LICENSE_NOT_ACTIVE_ERROR = 'License not active';
Expand Down
49 changes: 0 additions & 49 deletions x-pack/plugins/synthetics/common/constants/uptime_alerts.ts

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions x-pack/plugins/synthetics/common/lib/assert_close_to.test.ts

This file was deleted.

17 changes: 0 additions & 17 deletions x-pack/plugins/synthetics/common/lib/assert_close_to.ts

This file was deleted.

This file was deleted.

46 changes: 0 additions & 46 deletions x-pack/plugins/synthetics/common/lib/get_histogram_interval.ts

This file was deleted.

2 changes: 0 additions & 2 deletions x-pack/plugins/synthetics/common/lib/index.ts
Expand Up @@ -7,5 +7,3 @@

export * from './combine_filters_and_user_search';
export * from './stringify_kueries';

export { getMLJobId } from './ml';
35 changes: 0 additions & 35 deletions x-pack/plugins/synthetics/common/lib/ml.test.ts

This file was deleted.

28 changes: 0 additions & 28 deletions x-pack/plugins/synthetics/common/lib/ml.ts

This file was deleted.

0 comments on commit fa01462

Please sign in to comment.