mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[APM] Convert all apm files to follow snake convention (#123648)
* [APM] Convert all apm files to follow snake convention * Fix uppecase filename * Fix broken paths in api integration tests * Fix uppercase filenames * Disable import/no-extraneous-dependencies eslint error
This commit is contained in:
parent
624a50abd7
commit
69c5cfec2b
244 changed files with 307 additions and 247 deletions
|
@ -58,9 +58,6 @@ export const IGNORE_FILE_GLOBS = [
|
|||
// filename must match upstream filenames from lodash
|
||||
'packages/elastic-safer-lodash-set/**/*',
|
||||
|
||||
// TODO fix file names in APM to remove these
|
||||
'x-pack/plugins/apm/public/**/*',
|
||||
|
||||
'x-pack/plugins/maps/server/fonts/**/*',
|
||||
|
||||
// Bazel default files
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import { FETCH_STATUS } from '../../public/hooks/use_fetcher';
|
||||
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
|
||||
import type { APIReturnType } from '../../public/services/rest/createCallApmApi';
|
||||
import type { APIReturnType } from '../../public/services/rest/create_call_apm_api';
|
||||
import { ENVIRONMENT_ALL } from '../environment_filter_values';
|
||||
|
||||
export enum AnomalyDetectionSetupState {
|
||||
|
|
|
@ -13,10 +13,10 @@ import { createMemoryHistory } from 'history';
|
|||
import { Observable } from 'rxjs';
|
||||
import { AppMountParameters, DocLinksStart, HttpStart } from 'src/core/public';
|
||||
import { mockApmPluginContextValue } from '../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { createCallApmApi } from '../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../services/rest/create_call_apm_api';
|
||||
import { renderApp as renderApmApp } from './';
|
||||
import { UXAppRoot } from './uxApp';
|
||||
import { disableConsoleWarning } from '../utils/testHelpers';
|
||||
import { UXAppRoot } from './ux_app';
|
||||
import { disableConsoleWarning } from '../utils/test_helpers';
|
||||
import { dataPluginMock } from 'src/plugins/data/public/mocks';
|
||||
import { embeddablePluginMock } from 'src/plugins/embeddable/public/mocks';
|
||||
import { ApmPluginSetupDeps, ApmPluginStartDeps } from '../plugin';
|
||||
|
|
|
@ -16,10 +16,10 @@ import {
|
|||
APP_WRAPPER_CLASS,
|
||||
} from '../../../../../src/core/public';
|
||||
import { ApmPluginSetupDeps, ApmPluginStartDeps } from '../plugin';
|
||||
import { createCallApmApi } from '../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../services/rest/create_call_apm_api';
|
||||
import { createStaticDataView } from '../services/rest/data_view';
|
||||
import { setHelpExtension } from '../setHelpExtension';
|
||||
import { setReadonlyBadge } from '../updateBadge';
|
||||
import { setHelpExtension } from '../set_help_extension';
|
||||
import { setReadonlyBadge } from '../update_badge';
|
||||
import { ApmAppRoot } from '../components/routing/app_root';
|
||||
import { KibanaThemeProvider } from '../../../../../src/plugins/kibana_react/public';
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import {
|
|||
useUiSetting$,
|
||||
} from '../../../../../src/plugins/kibana_react/public';
|
||||
import { APMRouteDefinition } from '../application/routes';
|
||||
import { ScrollToTopOnPathChange } from '../components/app/main/ScrollToTopOnPathChange';
|
||||
import { ScrollToTopOnPathChange } from '../components/app/main/scroll_to_top_on_path_change';
|
||||
import {
|
||||
RumHome,
|
||||
DASHBOARD_LABEL,
|
||||
|
@ -30,7 +30,7 @@ import { ApmPluginContext } from '../context/apm_plugin/apm_plugin_context';
|
|||
import { UrlParamsProvider } from '../context/url_params_context/url_params_context';
|
||||
import { ConfigSchema } from '../index';
|
||||
import { ApmPluginSetupDeps, ApmPluginStartDeps } from '../plugin';
|
||||
import { createCallApmApi } from '../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../services/rest/create_call_apm_api';
|
||||
import { createStaticDataView } from '../services/rest/data_view';
|
||||
import { UXActionMenu } from '../components/app/rum_dashboard/action_menu';
|
||||
import { redirectTo } from '../components/routing/redirect_to';
|
|
@ -11,7 +11,7 @@ import { RuleParams, ErrorCountAlertTrigger } from '.';
|
|||
import { CoreStart } from '../../../../../../../src/core/public';
|
||||
import { createKibanaReactContext } from '../../../../../../../src/plugins/kibana_react/public';
|
||||
import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values';
|
||||
import { createCallApmApi } from '../../../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
|
||||
import { AlertMetadata } from '../helper';
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ import { ForLastExpression } from '../../../../../triggers_actions_ui/public';
|
|||
import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values';
|
||||
import { asInteger } from '../../../../common/utils/formatters';
|
||||
import { useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { createCallApmApi } from '../../../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
import { ChartPreview } from '../chart_preview';
|
||||
import { EnvironmentField, IsAboveField, ServiceField } from '../fields';
|
||||
import { AlertMetadata, getIntervalAndTimeRange, TimeUnit } from '../helper';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import React from 'react';
|
||||
import { ServiceField, TransactionTypeField } from './fields';
|
||||
import { render } from '@testing-library/react';
|
||||
import { expectTextsInDocument } from '../../utils/testHelpers';
|
||||
import { expectTextsInDocument } from '../../utils/test_helpers';
|
||||
|
||||
describe('alerting fields', () => {
|
||||
describe('Service Field', () => {
|
||||
|
|
|
@ -15,7 +15,7 @@ import { ForLastExpression } from '../../../../../triggers_actions_ui/public';
|
|||
import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values';
|
||||
import { getDurationFormatter } from '../../../../common/utils/formatters';
|
||||
import { useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { createCallApmApi } from '../../../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
import {
|
||||
getMaxY,
|
||||
getResponseTimeTickFormatter,
|
||||
|
|
|
@ -12,7 +12,7 @@ import { CoreStart } from '../../../../../../../src/core/public';
|
|||
import { useKibana } from '../../../../../../../src/plugins/kibana_react/public';
|
||||
import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values';
|
||||
import { ANOMALY_SEVERITY } from '../../../../common/ml_constants';
|
||||
import { createCallApmApi } from '../../../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
import {
|
||||
EnvironmentField,
|
||||
ServiceField,
|
||||
|
|
|
@ -13,7 +13,7 @@ import { ForLastExpression } from '../../../../../triggers_actions_ui/public';
|
|||
import { ENVIRONMENT_ALL } from '../../../../common/environment_filter_values';
|
||||
import { asPercent } from '../../../../common/utils/formatters';
|
||||
import { useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { createCallApmApi } from '../../../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
import { ChartPreview } from '../chart_preview';
|
||||
import {
|
||||
EnvironmentField,
|
||||
|
|
|
@ -34,7 +34,7 @@ import { FailedTransactionsCorrelation } from '../../../../common/correlations/f
|
|||
import { FieldStats } from '../../../../common/correlations/field_stats_types';
|
||||
|
||||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { useLocalStorage } from '../../../hooks/useLocalStorage';
|
||||
import { useLocalStorage } from '../../../hooks/use_local_storage';
|
||||
import { FETCH_STATUS } from '../../../hooks/use_fetcher';
|
||||
import { useTheme } from '../../../hooks/use_theme';
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
mockApmPluginContextValue,
|
||||
MockApmPluginContextWrapper,
|
||||
} from '../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { delay } from '../../../utils/testHelpers';
|
||||
import { delay } from '../../../utils/test_helpers';
|
||||
|
||||
import { fromQuery } from '../../shared/links/url_helpers';
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import type {
|
|||
FailedTransactionsCorrelationsResponse,
|
||||
} from '../../../../common/correlations/failed_transactions_correlations/types';
|
||||
|
||||
import { callApmApi } from '../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
|
||||
import {
|
||||
getInitialResponse,
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
mockApmPluginContextValue,
|
||||
MockApmPluginContextWrapper,
|
||||
} from '../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { delay } from '../../../utils/testHelpers';
|
||||
import { delay } from '../../../utils/test_helpers';
|
||||
|
||||
import { fromQuery } from '../../shared/links/url_helpers';
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@ import type {
|
|||
LatencyCorrelationsResponse,
|
||||
} from '../../../../common/correlations/latency_correlations/types';
|
||||
|
||||
import { callApmApi } from '../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
|
||||
import {
|
||||
getInitialResponse,
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { shallow } from 'enzyme';
|
||||
import React from 'react';
|
||||
import { mockMoment } from '../../../../utils/testHelpers';
|
||||
import { mockMoment } from '../../../../utils/test_helpers';
|
||||
import { DetailView } from './index';
|
||||
|
||||
describe('DetailView', () => {
|
||||
|
|
|
@ -20,7 +20,7 @@ import { first } from 'lodash';
|
|||
import React from 'react';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { euiStyled } from '../../../../../../../../src/plugins/kibana_react/common';
|
||||
import type { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import type { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import type { APMError } from '../../../../../typings/es_schemas/ui/apm_error';
|
||||
import type { ApmUrlParams } from '../../../../context/url_params_context/types';
|
||||
import { TransactionDetailLink } from '../../../shared/links/apm/transaction_detail_link';
|
||||
|
@ -37,7 +37,7 @@ import {
|
|||
exceptionStacktraceTab,
|
||||
getTabs,
|
||||
logStacktraceTab,
|
||||
} from './ErrorTabs';
|
||||
} from './error_tabs';
|
||||
import { ExceptionStacktrace } from './exception_stacktrace';
|
||||
|
||||
const HeaderContainer = euiStyled.div`
|
||||
|
|
|
@ -15,7 +15,7 @@ import { ErrorDistribution } from './';
|
|||
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
|
||||
export default {
|
||||
title: 'app/ErrorGroupDetails/Distribution',
|
||||
title: 'app/ErrorGroupDetails/distribution',
|
||||
component: ErrorDistribution,
|
||||
decorators: [
|
||||
(Story: ComponentType) => {
|
|
@ -19,7 +19,7 @@ import React, { Suspense, useState } from 'react';
|
|||
import { ALERT_RULE_TYPE_ID } from '@kbn/rule-data-utils';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { useTheme } from '../../../../hooks/use_theme';
|
||||
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
import { AlertType } from '../../../../../common/alert_types';
|
|
@ -26,9 +26,9 @@ import { useApmRouter } from '../../../hooks/use_apm_router';
|
|||
import { useErrorGroupDistributionFetcher } from '../../../hooks/use_error_group_distribution_fetcher';
|
||||
import { useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import type { APIReturnType } from '../../../services/rest/createCallApmApi';
|
||||
import type { APIReturnType } from '../../../services/rest/create_call_apm_api';
|
||||
import { DetailView } from './detail_view';
|
||||
import { ErrorDistribution } from './Distribution';
|
||||
import { ErrorDistribution } from './distribution';
|
||||
|
||||
const Titles = euiStyled.div`
|
||||
margin-bottom: ${({ theme }) => theme.eui.euiSizeL};
|
||||
|
|
|
@ -17,7 +17,7 @@ import { asInteger } from '../../../../../common/utils/formatters';
|
|||
import { euiStyled } from '../../../../../../../../src/plugins/kibana_react/common';
|
||||
import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { truncate, unit } from '../../../../utils/style';
|
||||
import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link';
|
||||
import { ErrorOverviewLink } from '../../../shared/links/apm/error_overview_link';
|
||||
|
|
|
@ -21,10 +21,10 @@ import { useApmParams } from '../../../hooks/use_apm_params';
|
|||
import { useErrorGroupDistributionFetcher } from '../../../hooks/use_error_group_distribution_fetcher';
|
||||
import { useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import { APIReturnType } from '../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../services/rest/create_call_apm_api';
|
||||
import { FailedTransactionRateChart } from '../../shared/charts/failed_transaction_rate_chart';
|
||||
import { getTimeRangeComparison } from '../../shared/time_comparison/get_time_range_comparison';
|
||||
import { ErrorDistribution } from '../error_group_details/Distribution';
|
||||
import { ErrorDistribution } from '../error_group_details/distribution';
|
||||
import { ErrorGroupList } from './error_group_list';
|
||||
|
||||
type ErrorGroupMainStatistics =
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { useMemo } from 'react';
|
||||
import { callApi } from '../../../../services/rest/callApi';
|
||||
import { callApi } from '../../../../services/rest/call_api';
|
||||
import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { FetchOptions } from '../../../../../common/fetch_options';
|
||||
|
||||
|
|
|
@ -11,9 +11,9 @@ import {
|
|||
UxFetchDataResponse,
|
||||
UXHasDataResponse,
|
||||
} from '../../../../../observability/public/';
|
||||
import { callApmApi } from '../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
|
||||
export { createCallApmApi } from '../../../services/rest/createCallApmApi';
|
||||
export { createCallApmApi } from '../../../services/rest/create_call_apm_api';
|
||||
|
||||
export const fetchUxOverviewDate = async ({
|
||||
absoluteTime,
|
||||
|
|
|
@ -18,7 +18,7 @@ import { toMountPoint } from '../../../../../../../src/plugins/kibana_react/publ
|
|||
import { useAnomalyDetectionJobsContext } from '../../../context/anomaly_detection_jobs/use_anomaly_detection_jobs_context';
|
||||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_params';
|
||||
import { useLocalStorage } from '../../../hooks/useLocalStorage';
|
||||
import { useLocalStorage } from '../../../hooks/use_local_storage';
|
||||
import { useAnyOfApmParams } from '../../../hooks/use_apm_params';
|
||||
import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
* 2.0.
|
||||
*/
|
||||
|
||||
import { APIReturnType } from '../../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../../services/rest/create_call_apm_api';
|
||||
|
||||
type ServiceListAPIResponse = APIReturnType<'GET /internal/apm/services'>;
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ import {
|
|||
import { useApmParams } from '../../../../hooks/use_apm_params';
|
||||
import { Breakpoints, useBreakpoints } from '../../../../hooks/use_breakpoints';
|
||||
import { useFallbackToTransactionsFetcher } from '../../../../hooks/use_fallback_to_transactions_fetcher';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { unit } from '../../../../utils/style';
|
||||
import { ApmRoutes } from '../../../routing/apm_route_config';
|
||||
import { AggregatedTransactionsBadge } from '../../../shared/aggregated_transactions_badge';
|
||||
|
@ -41,11 +41,11 @@ import { ListMetric } from '../../../shared/list_metric';
|
|||
import { ITableColumn, ManagedTable } from '../../../shared/managed_table';
|
||||
import { ServiceLink } from '../../../shared/service_link';
|
||||
import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip';
|
||||
import { HealthBadge } from './HealthBadge';
|
||||
import {
|
||||
ChartType,
|
||||
getTimeSeriesColor,
|
||||
} from '../../../shared/charts/helper/get_timeseries_color';
|
||||
import { HealthBadge } from './health_badge';
|
||||
|
||||
type ServiceListAPIResponse = APIReturnType<'GET /internal/apm/services'>;
|
||||
type Items = ServiceListAPIResponse['items'];
|
||||
|
|
|
@ -13,7 +13,7 @@ import moment from 'moment';
|
|||
import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { useApmServiceContext } from '../../../context/apm_service/use_apm_service_context';
|
||||
import { LogStream } from '../../../../../infra/public';
|
||||
import { APIReturnType } from '../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../services/rest/create_call_apm_api';
|
||||
|
||||
import {
|
||||
CONTAINER_ID,
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { useContext, useEffect } from 'react';
|
||||
import { CytoscapeContext } from '../Cytoscape';
|
||||
import { CytoscapeContext } from '../cytoscape';
|
||||
|
||||
// Component to center map on load
|
||||
export function Centerer() {
|
||||
|
|
|
@ -7,11 +7,11 @@
|
|||
|
||||
import cytoscape from 'cytoscape';
|
||||
import React from 'react';
|
||||
import { Cytoscape } from '../Cytoscape';
|
||||
import { Cytoscape } from '../cytoscape';
|
||||
import { Centerer } from './centerer';
|
||||
|
||||
export default {
|
||||
title: 'app/ServiceMap/Cytoscape',
|
||||
title: 'app/ServiceMap/cytoscape',
|
||||
component: Cytoscape,
|
||||
};
|
||||
|
|
@ -22,7 +22,7 @@ import {
|
|||
CodeEditor,
|
||||
createKibanaReactContext,
|
||||
} from '../../../../../../../../src/plugins/kibana_react/public';
|
||||
import { Cytoscape } from '../Cytoscape';
|
||||
import { Cytoscape } from '../cytoscape';
|
||||
import { Centerer } from './centerer';
|
||||
import exampleResponseHipsterStore from './example_response_hipster_store.json';
|
||||
import exampleResponseOpbeansBeats from './example_response_opbeans_beats.json';
|
||||
|
|
|
@ -12,8 +12,8 @@ import React, { ReactNode } from 'react';
|
|||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { ThemeContext } from 'styled-components';
|
||||
import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { Controls } from './Controls';
|
||||
import { CytoscapeContext } from './Cytoscape';
|
||||
import { Controls } from './controls';
|
||||
import { CytoscapeContext } from './cytoscape';
|
||||
|
||||
const cy = cytoscape({
|
||||
elements: [{ classes: 'primary', data: { id: 'test node' } }],
|
|
@ -14,7 +14,7 @@ import { useTheme } from '../../../hooks/use_theme';
|
|||
import { getLegacyApmHref } from '../../shared/links/apm/apm_link';
|
||||
import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_params';
|
||||
import { APMQueryParams } from '../../shared/links/url_helpers';
|
||||
import { CytoscapeContext } from './Cytoscape';
|
||||
import { CytoscapeContext } from './cytoscape';
|
||||
import { getAnimationOptions, getNodeHeight } from './cytoscape_options';
|
||||
import { useAnyOfApmParams } from '../../../hooks/use_apm_params';
|
||||
|
|
@ -10,9 +10,9 @@ import cytoscape from 'cytoscape';
|
|||
import React, { ReactNode } from 'react';
|
||||
import { MemoryRouter } from 'react-router-dom';
|
||||
import { MockApmPluginContextWrapper } from '../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { renderWithTheme } from '../../../utils/testHelpers';
|
||||
import { CytoscapeContext } from './Cytoscape';
|
||||
import { EmptyBanner } from './EmptyBanner';
|
||||
import { renderWithTheme } from '../../../utils/test_helpers';
|
||||
import { CytoscapeContext } from './cytoscape';
|
||||
import { EmptyBanner } from './empty_banner';
|
||||
|
||||
const cy = cytoscape({});
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import React, { useContext, useEffect, useState } from 'react';
|
|||
import { EuiCallOut, EuiLink } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common';
|
||||
import { CytoscapeContext } from './Cytoscape';
|
||||
import { CytoscapeContext } from './cytoscape';
|
||||
import { useTheme } from '../../../hooks/use_theme';
|
||||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
|
|
@ -21,14 +21,14 @@ import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher';
|
|||
import { useLicenseContext } from '../../../context/license/use_license_context';
|
||||
import { useTheme } from '../../../hooks/use_theme';
|
||||
import { LicensePrompt } from '../../shared/license_prompt';
|
||||
import { Controls } from './Controls';
|
||||
import { Cytoscape } from './Cytoscape';
|
||||
import { Controls } from './controls';
|
||||
import { Cytoscape } from './cytoscape';
|
||||
import { getCytoscapeDivStyle } from './cytoscape_options';
|
||||
import { EmptyBanner } from './EmptyBanner';
|
||||
import { EmptyBanner } from './empty_banner';
|
||||
import { EmptyPrompt } from './empty_prompt';
|
||||
import { Popover } from './Popover';
|
||||
import { Popover } from './popover';
|
||||
import { TimeoutPrompt } from './timeout_prompt';
|
||||
import { useRefDimensions } from './useRefDimensions';
|
||||
import { useRefDimensions } from './use_ref_dimensions';
|
||||
import { SearchBar } from '../../shared/search_bar';
|
||||
import { useServiceName } from '../../../hooks/use_service_name';
|
||||
import { useApmParams } from '../../../hooks/use_apm_params';
|
||||
|
|
|
@ -18,7 +18,7 @@ import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher';
|
|||
import { ApmRoutes } from '../../../routing/apm_route_config';
|
||||
import { StatsList } from './stats_list';
|
||||
import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
|
||||
type BackendReturn = APIReturnType<'GET /internal/apm/service-map/backend'>;
|
||||
|
|
@ -28,7 +28,7 @@ import {
|
|||
} from '../../../../../common/elasticsearch_fieldnames';
|
||||
import { Environment } from '../../../../../common/environment_rt';
|
||||
import { useTheme } from '../../../../hooks/use_theme';
|
||||
import { CytoscapeContext } from '../Cytoscape';
|
||||
import { CytoscapeContext } from '../cytoscape';
|
||||
import { getAnimationOptions, popoverWidth } from '../cytoscape_options';
|
||||
import { BackendContents } from './backend_contents';
|
||||
import { ExternalsListContents } from './externals_list_contents';
|
|
@ -15,8 +15,8 @@ import { createKibanaReactContext } from '../../../../../../../../src/plugins/ki
|
|||
import { ENVIRONMENT_ALL } from '../../../../../common/environment_filter_values';
|
||||
import { MockApmPluginContextWrapper } from '../../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { MockUrlParamsContextProvider } from '../../../../context/url_params_context/mock_url_params_context_provider';
|
||||
import { createCallApmApi } from '../../../../services/rest/createCallApmApi';
|
||||
import { CytoscapeContext } from '../Cytoscape';
|
||||
import { createCallApmApi } from '../../../../services/rest/create_call_apm_api';
|
||||
import { CytoscapeContext } from '../cytoscape';
|
||||
import exampleGroupedConnectionsData from '../__stories__/example_grouped_connections.json';
|
||||
|
||||
interface Args {
|
||||
|
@ -24,7 +24,7 @@ interface Args {
|
|||
}
|
||||
|
||||
const stories: Meta<Args> = {
|
||||
title: 'app/ServiceMap/Popover',
|
||||
title: 'app/ServiceMap/popover',
|
||||
component: Popover,
|
||||
decorators: [
|
||||
(StoryComponent) => {
|
|
@ -8,7 +8,7 @@
|
|||
import { composeStories } from '@storybook/testing-react';
|
||||
import { render, screen, waitFor } from '@testing-library/react';
|
||||
import React from 'react';
|
||||
import * as stories from './Popover.stories';
|
||||
import * as stories from './popover.stories';
|
||||
|
||||
const { Backend, ExternalsList, Resource, Service } = composeStories(stories);
|
||||
|
|
@ -23,7 +23,7 @@ import { AnomalyDetection } from './anomaly_detection';
|
|||
import { StatsList } from './stats_list';
|
||||
import { useTimeRange } from '../../../../hooks/use_time_range';
|
||||
import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
|
||||
type ServiceNodeReturn =
|
||||
APIReturnType<'GET /internal/apm/service-map/service/{serviceName}'>;
|
|
@ -20,12 +20,12 @@ import {
|
|||
asTransactionRate,
|
||||
} from '../../../../../common/utils/formatters';
|
||||
import { Coordinate } from '../../../../../typings/timeseries';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { SparkPlot } from '../../../shared/charts/spark_plot';
|
||||
import {
|
||||
ChartType,
|
||||
getTimeSeriesColor,
|
||||
} from '../../../shared/charts/helper/get_timeseries_color';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
|
||||
type ServiceNodeReturn =
|
||||
APIReturnType<'GET /internal/apm/service-map/service/{serviceName}'>;
|
|
@ -9,7 +9,7 @@ import { EuiBasicTableColumn, RIGHT_ALIGNMENT } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { asInteger } from '../../../../../common/utils/formatters';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { SparkPlot } from '../../../shared/charts/spark_plot';
|
||||
import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link';
|
||||
import { TimestampTooltip } from '../../../shared/timestamp_tooltip';
|
||||
|
|
|
@ -18,7 +18,7 @@ import uuid from 'uuid';
|
|||
import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { ErrorOverviewLink } from '../../../shared/links/apm/error_overview_link';
|
||||
import { getTimeRangeComparison } from '../../../shared/time_comparison/get_time_range_comparison';
|
||||
import { OverviewTableContainer } from '../../../shared/overview_table_container';
|
||||
|
|
|
@ -14,7 +14,7 @@ import { useLegacyUrlParams } from '../../../context/url_params_context/use_url_
|
|||
import { useApmParams } from '../../../hooks/use_apm_params';
|
||||
import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import { APIReturnType } from '../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../services/rest/create_call_apm_api';
|
||||
import { InstancesLatencyDistributionChart } from '../../shared/charts/instances_latency_distribution_chart';
|
||||
import { getTimeRangeComparison } from '../../shared/time_comparison/get_time_range_comparison';
|
||||
import {
|
||||
|
|
|
@ -24,7 +24,7 @@ import {
|
|||
asPercent,
|
||||
asTransactionRate,
|
||||
} from '../../../../../common/utils/formatters';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { MetricOverviewLink } from '../../../shared/links/apm/metric_overview_link';
|
||||
import { ServiceNodeMetricOverviewLink } from '../../../shared/links/apm/service_node_metric_overview_link';
|
||||
import { ListMetric } from '../../../shared/list_metric';
|
||||
|
|
|
@ -16,7 +16,7 @@ import React, { ReactNode, useEffect, useState } from 'react';
|
|||
import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import {
|
||||
PAGE_SIZE,
|
||||
SortDirection,
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { IBasePath } from 'kibana/public';
|
||||
import moment from 'moment';
|
||||
import { APIReturnType } from '../../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../../services/rest/create_call_apm_api';
|
||||
import { getInfraHref } from '../../../../shared/links/infra_link';
|
||||
import {
|
||||
Action,
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
*/
|
||||
import React from 'react';
|
||||
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import {
|
||||
expectTextsInDocument,
|
||||
expectTextsNotInDocument,
|
||||
renderWithTheme,
|
||||
} from '../../../../utils/testHelpers';
|
||||
} from '../../../../utils/test_helpers';
|
||||
import { InstanceDetails } from './intance_details';
|
||||
import * as useInstanceDetailsFetcher from './use_instance_details_fetcher';
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ import {
|
|||
} from '../../../../../common/elasticsearch_fieldnames';
|
||||
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
import { useTheme } from '../../../../hooks/use_theme';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { getAgentIcon } from '../../../shared/agent_icon/get_agent_icon';
|
||||
import { KeyValueFilterList } from '../../../shared/key_value_filter_list';
|
||||
import { pushNewItemToKueryBar } from '../../../shared/kuery_bar/utils';
|
||||
|
|
|
@ -14,7 +14,7 @@ import { useApmServiceContext } from '../../../context/apm_service/use_apm_servi
|
|||
import { useApmParams } from '../../../hooks/use_apm_params';
|
||||
import { useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import { APIReturnType } from '../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../services/rest/create_call_apm_api';
|
||||
import { ServiceProfilingFlamegraph } from './service_profiling_flamegraph';
|
||||
import { ServiceProfilingTimeline } from './service_profiling_timeline';
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ import React from 'react';
|
|||
import { CoreStart } from 'kibana/public';
|
||||
import { AgentConfiguration } from '../../../../../../common/agent_configuration/configuration_types';
|
||||
import { FETCH_STATUS } from '../../../../../hooks/use_fetcher';
|
||||
import { createCallApmApi } from '../../../../../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../../../../../services/rest/create_call_apm_api';
|
||||
import { AgentConfigurationCreateEdit } from './index';
|
||||
import {
|
||||
ApmPluginContext,
|
||||
|
@ -18,7 +18,7 @@ import {
|
|||
} from '../../../../../context/apm_plugin/apm_plugin_context';
|
||||
|
||||
storiesOf(
|
||||
'app/Settings/AgentConfigurations/AgentConfigurationCreateEdit',
|
||||
'app/settings/AgentConfigurations/agent_configuration_create_edit',
|
||||
module
|
||||
)
|
||||
.addDecorator((storyFn) => {
|
|
@ -17,8 +17,8 @@ import {
|
|||
} from '../../../../../../common/agent_configuration/configuration_types';
|
||||
import { FetcherResult } from '../../../../../hooks/use_fetcher';
|
||||
import { fromQuery, toQuery } from '../../../../shared/links/url_helpers';
|
||||
import { ServicePage } from './ServicePage/ServicePage';
|
||||
import { SettingsPage } from './SettingsPage/SettingsPage';
|
||||
import { ServicePage } from './service_page/service_page';
|
||||
import { SettingsPage } from './settings_page/settings_page';
|
||||
|
||||
type PageStep = 'choose-service-step' | 'choose-settings-step' | 'review-step';
|
||||
|
|
@ -16,7 +16,7 @@ import {
|
|||
getOptionLabel,
|
||||
} from '../../../../../../../common/agent_configuration/all_option';
|
||||
import { useFetcher, FETCH_STATUS } from '../../../../../../hooks/use_fetcher';
|
||||
import { FormRowSelect } from './FormRowSelect';
|
||||
import { FormRowSelect } from './form_row_select';
|
||||
import { APMLink } from '../../../../../shared/links/apm/apm_link';
|
||||
|
||||
interface Props {
|
|
@ -12,7 +12,7 @@ import {
|
|||
getOptionLabel,
|
||||
omitAllOption,
|
||||
} from '../../../../../../../common/agent_configuration/all_option';
|
||||
import { callApmApi } from '../../../../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../../../../services/rest/create_call_apm_api';
|
||||
|
||||
export async function saveConfig({
|
||||
config,
|
|
@ -34,8 +34,8 @@ import {
|
|||
import { AgentName } from '../../../../../../../typings/es_schemas/ui/fields/agent';
|
||||
import { useApmPluginContext } from '../../../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { FETCH_STATUS } from '../../../../../../hooks/use_fetcher';
|
||||
import { saveConfig } from './saveConfig';
|
||||
import { SettingFormRow } from './SettingFormRow';
|
||||
import { saveConfig } from './save_config';
|
||||
import { SettingFormRow } from './setting_form_row';
|
||||
|
||||
function removeEmpty(obj: { [key: string]: any }) {
|
||||
return Object.fromEntries(
|
|
@ -20,7 +20,7 @@ import React from 'react';
|
|||
import { useApmRouter } from '../../../../hooks/use_apm_router';
|
||||
import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { useFetcher } from '../../../../hooks/use_fetcher';
|
||||
import { AgentConfigurationList } from './List';
|
||||
import { AgentConfigurationList } from './list';
|
||||
|
||||
const INITIAL_DATA = { configurations: [] };
|
||||
|
|
@ -13,7 +13,7 @@ import { getOptionLabel } from '../../../../../../common/agent_configuration/all
|
|||
import {
|
||||
APIReturnType,
|
||||
callApmApi,
|
||||
} from '../../../../../services/rest/createCallApmApi';
|
||||
} from '../../../../../services/rest/create_call_apm_api';
|
||||
import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
|
||||
type Config =
|
|
@ -18,7 +18,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import { isEmpty } from 'lodash';
|
||||
import React, { useState } from 'react';
|
||||
import { useApmRouter } from '../../../../../hooks/use_apm_router';
|
||||
import { APIReturnType } from '../../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../../services/rest/create_call_apm_api';
|
||||
import { getOptionLabel } from '../../../../../../common/agent_configuration/all_option';
|
||||
import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { FETCH_STATUS } from '../../../../../hooks/use_fetcher';
|
||||
|
@ -26,7 +26,7 @@ import { useTheme } from '../../../../../hooks/use_theme';
|
|||
import { LoadingStatePrompt } from '../../../../shared/loading_state_prompt';
|
||||
import { ITableColumn, ManagedTable } from '../../../../shared/managed_table';
|
||||
import { TimestampTooltip } from '../../../../shared/timestamp_tooltip';
|
||||
import { ConfirmDeleteModal } from './ConfirmDeleteModal';
|
||||
import { ConfirmDeleteModal } from './confirm_delete_modal';
|
||||
|
||||
type Config =
|
||||
APIReturnType<'GET /api/apm/settings/agent-configuration'>['configurations'][0];
|
|
@ -9,7 +9,7 @@ import React, { useState } from 'react';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { EuiConfirmModal } from '@elastic/eui';
|
||||
import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { callApmApi } from '../../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../../services/rest/create_call_apm_api';
|
||||
import { ApiKey } from '../../../../../../security/common/model';
|
||||
|
||||
interface Props {
|
|
@ -27,7 +27,7 @@ import {
|
|||
htmlIdGenerator,
|
||||
} from '@elastic/eui';
|
||||
import { isEmpty } from 'lodash';
|
||||
import { callApmApi } from '../../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../../services/rest/create_call_apm_api';
|
||||
import { CreateApiKeyResponse } from '../../../../../common/agent_key_types';
|
||||
import { useCurrentUser } from '../../../../hooks/use_current_user';
|
||||
import { PrivilegeType } from '../../../../../common/privilege_type';
|
|
@ -20,7 +20,7 @@ import {
|
|||
EuiEmptyPrompt,
|
||||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { ML_ERRORS } from '../../../../../common/anomaly_detection';
|
||||
import { useFetcher, FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context';
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { NotificationsStart } from 'kibana/public';
|
||||
import { callApmApi } from '../../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../../services/rest/create_call_apm_api';
|
||||
|
||||
const errorToastTitle = i18n.translate(
|
||||
'xpack.apm.anomalyDetection.createJobs.failed.title',
|
|
@ -13,7 +13,7 @@ import { JobsList } from './jobs_list';
|
|||
import { AddEnvironments } from './add_environments';
|
||||
import { LicensePrompt } from '../../../shared/license_prompt';
|
||||
import { useLicenseContext } from '../../../../context/license/use_license_context';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { APIReturnType } from '../../../../services/rest/create_call_apm_api';
|
||||
import { useAnomalyDetectionJobsContext } from '../../../../context/anomaly_detection_jobs/use_anomaly_detection_jobs_context';
|
||||
|
||||
export type AnomalyDetectionApiResponse =
|
|
@ -26,7 +26,7 @@ import { getEnvironmentLabel } from '../../../../../common/environment_filter_va
|
|||
import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
import { useMlManageJobsHref } from '../../../../hooks/use_ml_manage_jobs_href';
|
||||
import { callApmApi } from '../../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../../services/rest/create_call_apm_api';
|
||||
import { MLExplorerLink } from '../../../shared/links/machine_learning_links/mlexplorer_link';
|
||||
import { MLManageJobsLink } from '../../../shared/links/machine_learning_links/mlmanage_jobs_link';
|
||||
import { LoadingStatePrompt } from '../../../shared/loading_state_prompt';
|
|
@ -22,11 +22,11 @@ import { i18n } from '@kbn/i18n';
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { useFetcher } from '../../../../hooks/use_fetcher';
|
||||
import { clearCache } from '../../../../services/rest/callApi';
|
||||
import { clearCache } from '../../../../services/rest/call_api';
|
||||
import {
|
||||
APIReturnType,
|
||||
callApmApi,
|
||||
} from '../../../../services/rest/createCallApmApi';
|
||||
} from '../../../../services/rest/create_call_apm_api';
|
||||
|
||||
const APM_INDEX_LABELS = [
|
||||
{
|
|
@ -10,8 +10,8 @@ import React, { ReactNode } from 'react';
|
|||
import { act } from 'react-dom/test-utils';
|
||||
import { EuiThemeProvider } from '../../../../../../../../../src/plugins/kibana_react/common';
|
||||
import { MockApmPluginContextWrapper } from '../../../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import * as apmApi from '../../../../../services/rest/createCallApmApi';
|
||||
import { DeleteButton } from './DeleteButton';
|
||||
import * as apmApi from '../../../../../services/rest/create_call_apm_api';
|
||||
import { DeleteButton } from './delete_button';
|
||||
|
||||
function Wrapper({ children }: { children?: ReactNode }) {
|
||||
return (
|
|
@ -9,7 +9,7 @@ import { EuiButtonEmpty } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { NotificationsStart } from 'kibana/public';
|
||||
import React, { useState } from 'react';
|
||||
import { callApmApi } from '../../../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../../../services/rest/create_call_apm_api';
|
||||
import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { useTheme } from '../../../../../hooks/use_theme';
|
||||
|
|
@ -14,7 +14,7 @@ import {
|
|||
EuiButton,
|
||||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { DeleteButton } from './DeleteButton';
|
||||
import { DeleteButton } from './delete_button';
|
||||
|
||||
export function FlyoutFooter({
|
||||
onClose,
|
|
@ -17,12 +17,12 @@ import { i18n } from '@kbn/i18n';
|
|||
import React, { useState } from 'react';
|
||||
import { Filter } from '../../../../../../common/custom_link/custom_link_types';
|
||||
import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { FiltersSection } from './FiltersSection';
|
||||
import { FlyoutFooter } from './FlyoutFooter';
|
||||
import { LinkSection } from './LinkSection';
|
||||
import { saveCustomLink } from './saveCustomLink';
|
||||
import { FiltersSection } from './filters_section';
|
||||
import { FlyoutFooter } from './flyout_footer';
|
||||
import { LinkSection } from './link_section';
|
||||
import { saveCustomLink } from './save_custom_link';
|
||||
import { LinkPreview } from './link_preview';
|
||||
import { Documentation } from './Documentation';
|
||||
import { Documentation } from './documentation';
|
||||
|
||||
interface Props {
|
||||
onClose: () => void;
|
|
@ -7,12 +7,12 @@
|
|||
|
||||
import React, { ComponentProps } from 'react';
|
||||
import { CoreStart } from 'kibana/public';
|
||||
import { createCallApmApi } from '../../../../../services/rest/createCallApmApi';
|
||||
import { createCallApmApi } from '../../../../../services/rest/create_call_apm_api';
|
||||
import { LinkPreview } from './link_preview';
|
||||
|
||||
export default {
|
||||
title:
|
||||
'app/Settings/CustomizeUI/CustomLink/CreateEditCustomLinkFlyout/LinkPreview',
|
||||
'app/settings/CustomizeUI/CustomLink/CreateEditCustomLinkFlyout/LinkPreview',
|
||||
component: LinkPreview,
|
||||
};
|
||||
|
|
@ -21,7 +21,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import { debounce } from 'lodash';
|
||||
import { Filter } from '../../../../../../common/custom_link/custom_link_types';
|
||||
import { Transaction } from '../../../../../../typings/es_schemas/ui/transaction';
|
||||
import { callApmApi } from '../../../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../../../services/rest/create_call_apm_api';
|
||||
import { replaceTemplateVariables, convertFiltersToQuery } from './helper';
|
||||
|
||||
export interface LinkPreviewProps {
|
|
@ -15,7 +15,7 @@ import {
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { CustomLink } from '../../../../../../common/custom_link/custom_link_types';
|
||||
import { Documentation } from './Documentation';
|
||||
import { Documentation } from './documentation';
|
||||
|
||||
interface InputField {
|
||||
name: keyof CustomLink;
|
|
@ -11,7 +11,7 @@ import {
|
|||
Filter,
|
||||
CustomLink,
|
||||
} from '../../../../../../common/custom_link/custom_link_types';
|
||||
import { callApmApi } from '../../../../../services/rest/createCallApmApi';
|
||||
import { callApmApi } from '../../../../../services/rest/create_call_apm_api';
|
||||
|
||||
export async function saveCustomLink({
|
||||
id,
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue