mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[APM] Convert shared filenames and folders (#122911)
* [APM] Convert shared filenames and folders * Fix broken imports * Update snapshots * Fix broken imports
This commit is contained in:
parent
5a77714c4b
commit
46196f2bc5
225 changed files with 204 additions and 201 deletions
|
@ -46,7 +46,7 @@ To be able to use the parameters, you can use `useApmParams`, which will automat
|
|||
```ts
|
||||
const {
|
||||
path: { serviceName }, // string
|
||||
query: { transactionType } // string | undefined
|
||||
query: { transactionType }, // string | undefined
|
||||
} = useApmParams('/services/:serviceName');
|
||||
```
|
||||
|
||||
|
@ -64,13 +64,16 @@ For links that stay inside APM, the preferred way of linking is to call the `use
|
|||
|
||||
```ts
|
||||
const apmRouter = useApmRouter();
|
||||
const serviceOverviewLink = apmRouter.link('/services/:serviceName', { path: { serviceName: 'opbeans-java' }, query: { transactionType: 'request' }});
|
||||
const serviceOverviewLink = apmRouter.link('/services/:serviceName', {
|
||||
path: { serviceName: 'opbeans-java' },
|
||||
query: { transactionType: 'request' },
|
||||
});
|
||||
```
|
||||
|
||||
If you're not in React context, you can also import `apmRouter` directly and call its `link` function - but you have to prepend the basePath manually in that case.
|
||||
If you're not in React context, you can also import `apmRouter` directly and call its `link` function - but you have to prepend the basePath manually in that case.
|
||||
|
||||
We also have the [`getLegacyApmHref` function and `APMLink` component](../public/components/shared/Links/apm/APMLink.tsx), but we should consider them deprecated, in favor of `router.link`. Other components inside that directory contain other functions and components that provide the same functionality for linking to more specific sections inside the APM plugin.
|
||||
We also have the [`getLegacyApmHref` function and `APMLink` component](../public/components/shared/links/apm/APMLink.tsx), but we should consider them deprecated, in favor of `router.link`. Other components inside that directory contain other functions and components that provide the same functionality for linking to more specific sections inside the APM plugin.
|
||||
|
||||
### Cross-app linking
|
||||
|
||||
Other helpers and components in [the Links directory](../public/components/shared/Links) allow linking to other Kibana apps.
|
||||
Other helpers and components in [the Links directory](../public/components/shared/links) allow linking to other Kibana apps.
|
||||
|
|
|
@ -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/ScrollToTopOnPathChange';
|
||||
import {
|
||||
RumHome,
|
||||
DASHBOARD_LABEL,
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
EuiSelectOption,
|
||||
EuiFormRow,
|
||||
} from '@elastic/eui';
|
||||
import { SelectWithPlaceholder } from '../../../../../shared/SelectWithPlaceholder';
|
||||
import { SelectWithPlaceholder } from '../../../../../shared/select_with_placeholder';
|
||||
|
||||
interface Props {
|
||||
title: string;
|
||||
|
|
|
@ -17,7 +17,7 @@ import {
|
|||
} from '../../../../../../../common/agent_configuration/all_option';
|
||||
import { useFetcher, FETCH_STATUS } from '../../../../../../hooks/use_fetcher';
|
||||
import { FormRowSelect } from './FormRowSelect';
|
||||
import { APMLink } from '../../../../../shared/Links/apm/APMLink';
|
||||
import { APMLink } from '../../../../../shared/links/apm/apm_link';
|
||||
|
||||
interface Props {
|
||||
newConfig: AgentConfigurationIntake;
|
||||
|
|
|
@ -24,7 +24,7 @@ import {
|
|||
amountAndUnitToString,
|
||||
amountAndUnitToObject,
|
||||
} from '../../../../../../../common/agent_configuration/amount_and_unit';
|
||||
import { SelectWithPlaceholder } from '../../../../../shared/SelectWithPlaceholder';
|
||||
import { SelectWithPlaceholder } from '../../../../../shared/select_with_placeholder';
|
||||
|
||||
function FormRow({
|
||||
setting,
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
AgentConfigurationIntake,
|
||||
} from '../../../../../../common/agent_configuration/configuration_types';
|
||||
import { FetcherResult } from '../../../../../hooks/use_fetcher';
|
||||
import { fromQuery, toQuery } from '../../../../shared/Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../../../../shared/links/url_helpers';
|
||||
import { ServicePage } from './ServicePage/ServicePage';
|
||||
import { SettingsPage } from './SettingsPage/SettingsPage';
|
||||
|
||||
|
|
|
@ -23,9 +23,9 @@ import { getOptionLabel } from '../../../../../../common/agent_configuration/all
|
|||
import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { FETCH_STATUS } from '../../../../../hooks/use_fetcher';
|
||||
import { useTheme } from '../../../../../hooks/use_theme';
|
||||
import { LoadingStatePrompt } from '../../../../shared/LoadingStatePrompt';
|
||||
import { LoadingStatePrompt } from '../../../../shared/loading_state_prompt';
|
||||
import { ITableColumn, ManagedTable } from '../../../../shared/managed_table';
|
||||
import { TimestampTooltip } from '../../../../shared/TimestampTooltip';
|
||||
import { TimestampTooltip } from '../../../../shared/timestamp_tooltip';
|
||||
import { ConfirmDeleteModal } from './ConfirmDeleteModal';
|
||||
|
||||
type Config =
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
EuiBasicTableColumn,
|
||||
EuiInMemoryTableProps,
|
||||
} from '@elastic/eui';
|
||||
import { TimestampTooltip } from '../../../shared/TimestampTooltip';
|
||||
import { TimestampTooltip } from '../../../shared/timestamp_tooltip';
|
||||
import { ApiKey } from '../../../../../../security/common/model';
|
||||
import { ConfirmDeleteModal } from './confirm_delete_modal';
|
||||
|
||||
|
|
|
@ -27,9 +27,9 @@ import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plug
|
|||
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
import { useMlManageJobsHref } from '../../../../hooks/use_ml_manage_jobs_href';
|
||||
import { callApmApi } from '../../../../services/rest/createCallApmApi';
|
||||
import { MLExplorerLink } from '../../../shared/Links/MachineLearningLinks/MLExplorerLink';
|
||||
import { MLManageJobsLink } from '../../../shared/Links/MachineLearningLinks/MLManageJobsLink';
|
||||
import { LoadingStatePrompt } from '../../../shared/LoadingStatePrompt';
|
||||
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';
|
||||
import { ITableColumn, ManagedTable } from '../../../shared/managed_table';
|
||||
import { MLCallout, shouldDisplayMlCallout } from '../../../shared/ml_callout';
|
||||
import { AnomalyDetectionApiResponse } from './index';
|
||||
|
|
|
@ -8,7 +8,7 @@ import { EuiBadge, EuiFlexGroup, EuiFlexItem, EuiToolTip } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { DATAFEED_STATE, JOB_STATE } from '../../../../../../ml/common';
|
||||
import { MLManageJobsLink } from '../../../shared/Links/MachineLearningLinks/MLManageJobsLink';
|
||||
import { MLManageJobsLink } from '../../../shared/links/machine_learning_links/mlmanage_jobs_link';
|
||||
|
||||
export function JobsListStatus({
|
||||
jobId,
|
||||
|
|
|
@ -18,9 +18,9 @@ import { isEmpty } from 'lodash';
|
|||
import React, { useState } from 'react';
|
||||
import { CustomLink } from '../../../../../common/custom_link/custom_link_types';
|
||||
import { useApmPluginContext } from '../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { LoadingStatePrompt } from '../../../shared/LoadingStatePrompt';
|
||||
import { LoadingStatePrompt } from '../../../shared/loading_state_prompt';
|
||||
import { ITableColumn, ManagedTable } from '../../../shared/managed_table';
|
||||
import { TimestampTooltip } from '../../../shared/TimestampTooltip';
|
||||
import { TimestampTooltip } from '../../../shared/timestamp_tooltip';
|
||||
|
||||
interface Props {
|
||||
items: CustomLink[];
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import { useUiTracker } from '../../../../../../observability/public';
|
||||
import { ElasticDocsLink } from '../../../shared/Links/ElasticDocsLink';
|
||||
import { ElasticDocsLink } from '../../../shared/links/elastic_docs_link';
|
||||
|
||||
interface Props {
|
||||
onConfirm: () => void;
|
||||
|
|
|
@ -9,8 +9,8 @@ import { EuiButton, EuiSpacer, EuiText } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import React from 'react';
|
||||
import { APMLink } from '../../../../shared/Links/apm/APMLink';
|
||||
import { useFleetCloudAgentPolicyHref } from '../../../../shared/Links/kibana';
|
||||
import { APMLink } from '../../../../shared/links/apm/apm_link';
|
||||
import { useFleetCloudAgentPolicyHref } from '../../../../shared/links/kibana';
|
||||
|
||||
export function CardFooterContent() {
|
||||
const fleetCloudAgentPolicyHref = useFleetCloudAgentPolicyHref();
|
||||
|
|
|
@ -9,7 +9,7 @@ import { EuiCard, EuiIcon, EuiLink } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import { FormattedMessage } from '@kbn/i18n-react';
|
||||
import React from 'react';
|
||||
import { useUpgradeApmPackagePolicyHref } from '../../../../shared/Links/kibana';
|
||||
import { useUpgradeApmPackagePolicyHref } from '../../../../shared/links/kibana';
|
||||
import { CardFooterContent } from './card_footer_content';
|
||||
|
||||
export function UpgradeAvailableCard({
|
||||
|
|
|
@ -22,7 +22,7 @@ import React from 'react';
|
|||
import semverLt from 'semver/functions/lt';
|
||||
import { SUPPORTED_APM_PACKAGE_VERSION } from '../../../../../common/fleet';
|
||||
import { PackagePolicy } from '../../../../../../fleet/common/types';
|
||||
import { ElasticDocsLink } from '../../../shared/Links/ElasticDocsLink';
|
||||
import { ElasticDocsLink } from '../../../shared/links/elastic_docs_link';
|
||||
import rocketLaunchGraphic from './blog-rocket-720x420.png';
|
||||
import { MigrationInProgressPanel } from './migration_in_progress_panel';
|
||||
import { UpgradeAvailableCard } from './migrated/upgrade_available_card';
|
||||
|
|
|
@ -38,8 +38,8 @@ import { useLocalStorage } from '../../../hooks/useLocalStorage';
|
|||
import { FETCH_STATUS } from '../../../hooks/use_fetcher';
|
||||
import { useTheme } from '../../../hooks/use_theme';
|
||||
|
||||
import { ImpactBar } from '../../shared/ImpactBar';
|
||||
import { push } from '../../shared/Links/url_helpers';
|
||||
import { ImpactBar } from '../../shared/impact_bar';
|
||||
import { push } from '../../shared/links/url_helpers';
|
||||
|
||||
import { CorrelationsTable } from './correlations_table';
|
||||
import { FailedTransactionsCorrelationsHelpPopover } from './failed_transactions_correlations_help_popover';
|
||||
|
|
|
@ -25,7 +25,7 @@ import {
|
|||
mockApmPluginContextValue,
|
||||
MockApmPluginContextWrapper,
|
||||
} from '../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { fromQuery } from '../../shared/Links/url_helpers';
|
||||
import { fromQuery } from '../../shared/links/url_helpers';
|
||||
|
||||
import { LatencyCorrelations } from './latency_correlations';
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_
|
|||
import { FETCH_STATUS } from '../../../hooks/use_fetcher';
|
||||
|
||||
import { TransactionDistributionChart } from '../../shared/charts/transaction_distribution_chart';
|
||||
import { push } from '../../shared/Links/url_helpers';
|
||||
import { push } from '../../shared/links/url_helpers';
|
||||
|
||||
import { CorrelationsTable } from './correlations_table';
|
||||
import { LatencyCorrelationsHelpPopover } from './latency_correlations_help_popover';
|
||||
|
|
|
@ -17,7 +17,7 @@ import {
|
|||
} from '../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { delay } from '../../../utils/testHelpers';
|
||||
|
||||
import { fromQuery } from '../../shared/Links/url_helpers';
|
||||
import { fromQuery } from '../../shared/links/url_helpers';
|
||||
|
||||
import { useFailedTransactionsCorrelations } from './use_failed_transactions_correlations';
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ import {
|
|||
} from '../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import { delay } from '../../../utils/testHelpers';
|
||||
|
||||
import { fromQuery } from '../../shared/Links/url_helpers';
|
||||
import { fromQuery } from '../../shared/links/url_helpers';
|
||||
|
||||
import { useLatencyCorrelations } from './use_latency_correlations';
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
import { EuiTitle } from '@elastic/eui';
|
||||
import React from 'react';
|
||||
import { Exception } from '../../../../../typings/es_schemas/raw/error_raw';
|
||||
import { Stacktrace } from '../../../shared/Stacktrace';
|
||||
import { CauseStacktrace } from '../../../shared/Stacktrace/cause_stacktrace';
|
||||
import { Stacktrace } from '../../../shared/stacktrace';
|
||||
import { CauseStacktrace } from '../../../shared/stacktrace/cause_stacktrace';
|
||||
|
||||
interface ExceptionStacktraceProps {
|
||||
codeLanguage?: string;
|
||||
|
|
|
@ -23,15 +23,15 @@ import { euiStyled } from '../../../../../../../../src/plugins/kibana_react/comm
|
|||
import type { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
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';
|
||||
import { DiscoverErrorLink } from '../../../shared/Links/DiscoverLinks/DiscoverErrorLink';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { ErrorMetadata } from '../../../shared/MetadataTable/ErrorMetadata';
|
||||
import { Stacktrace } from '../../../shared/Stacktrace';
|
||||
import { Summary } from '../../../shared/Summary';
|
||||
import { HttpInfoSummaryItem } from '../../../shared/Summary/http_info_summary_item';
|
||||
import { UserAgentSummaryItem } from '../../../shared/Summary/UserAgentSummaryItem';
|
||||
import { TimestampTooltip } from '../../../shared/TimestampTooltip';
|
||||
import { TransactionDetailLink } from '../../../shared/links/apm/transaction_detail_link';
|
||||
import { DiscoverErrorLink } from '../../../shared/links/discover_links/discover_error_link';
|
||||
import { fromQuery, toQuery } from '../../../shared/links/url_helpers';
|
||||
import { ErrorMetadata } from '../../../shared/metadata_table/error_metadata';
|
||||
import { Stacktrace } from '../../../shared/stacktrace';
|
||||
import { Summary } from '../../../shared/summary';
|
||||
import { HttpInfoSummaryItem } from '../../../shared/summary/http_info_summary_item';
|
||||
import { UserAgentSummaryItem } from '../../../shared/summary/user_agent_summary_item';
|
||||
import { TimestampTooltip } from '../../../shared/timestamp_tooltip';
|
||||
import {
|
||||
ErrorTab,
|
||||
exceptionStacktraceTab,
|
||||
|
|
|
@ -19,11 +19,11 @@ import { NOT_AVAILABLE_LABEL } from '../../../../../common/i18n';
|
|||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { truncate, unit } from '../../../../utils/style';
|
||||
import { ErrorDetailLink } from '../../../shared/Links/apm/ErrorDetailLink';
|
||||
import { ErrorOverviewLink } from '../../../shared/Links/apm/ErrorOverviewLink';
|
||||
import { APMQueryParams } from '../../../shared/Links/url_helpers';
|
||||
import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link';
|
||||
import { ErrorOverviewLink } from '../../../shared/links/apm/error_overview_link';
|
||||
import { APMQueryParams } from '../../../shared/links/url_helpers';
|
||||
import { ITableColumn, ManagedTable } from '../../../shared/managed_table';
|
||||
import { TimestampTooltip } from '../../../shared/TimestampTooltip';
|
||||
import { TimestampTooltip } from '../../../shared/timestamp_tooltip';
|
||||
import { SparkPlot } from '../../../shared/charts/spark_plot';
|
||||
|
||||
const GroupIdLink = euiStyled(ErrorDetailLink)`
|
||||
|
|
|
@ -29,7 +29,7 @@ import React from 'react';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
import { useUiSetting$ } from '../../../../../../../../src/plugins/kibana_react/public';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../../../shared/links/url_helpers';
|
||||
import { ChartWrapper } from '../chart_wrapper';
|
||||
import { I18LABELS } from '../translations';
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
import {
|
||||
fromQuery,
|
||||
toQuery,
|
||||
} from '../../../../components/shared/Links/url_helpers';
|
||||
} from '../../../../components/shared/links/url_helpers';
|
||||
import { removeUndefinedProps } from '../../../../context/url_params_context/helpers';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { getExcludedName } from '../local_ui_filters';
|
||||
|
|
|
@ -22,7 +22,7 @@ import { useLegacyUrlParams } from '../../../../context/url_params_context/use_u
|
|||
import { FETCH_STATUS, useFetcher } from '../../../../hooks/use_fetcher';
|
||||
import { I18LABELS } from '../translations';
|
||||
import { CsmSharedContext } from '../csm_shared_context';
|
||||
import { ErrorDetailLink } from '../../../shared/Links/apm/ErrorDetailLink';
|
||||
import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link';
|
||||
|
||||
interface JSErrorItem {
|
||||
errorMessage: string;
|
||||
|
|
|
@ -10,7 +10,7 @@ import { useCallback } from 'react';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
import { FilterValueLabel } from '../../../../../../observability/public';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../../../shared/links/url_helpers';
|
||||
import { TRANSACTION_URL } from '../../../../../common/elasticsearch_fieldnames';
|
||||
import { IndexPattern } from '../../../../../../../../src/plugins/data_views/common';
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
import React from 'react';
|
||||
import { useUxUrlParams } from '../../../../context/url_params_context/use_ux_url_params';
|
||||
import { useDateRangeRedirect } from '../../../../hooks/use_date_range_redirect';
|
||||
import { DatePicker } from '../../../shared/DatePicker';
|
||||
import { DatePicker } from '../../../shared/date_picker';
|
||||
|
||||
export function RumDatePicker() {
|
||||
const {
|
||||
|
|
|
@ -12,7 +12,7 @@ import { RumOverview } from '../rum_dashboard';
|
|||
import { CsmSharedContextProvider } from './csm_shared_context';
|
||||
import { WebApplicationSelect } from './panels/web_application_select';
|
||||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { UxEnvironmentFilter } from '../../shared/EnvironmentFilter';
|
||||
import { UxEnvironmentFilter } from '../../shared/environment_filter';
|
||||
import { UserPercentile } from './user_percentile';
|
||||
import { useBreakpoints } from '../../../hooks/use_breakpoints';
|
||||
import { KibanaPageTemplateProps } from '../../../../../../../src/plugins/kibana_react/public';
|
||||
|
|
|
@ -9,7 +9,7 @@ import React, { useCallback } from 'react';
|
|||
import { useHistory } from 'react-router-dom';
|
||||
import { omit } from 'lodash';
|
||||
import { URLSearch } from './url_search';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../../../shared/links/url_helpers';
|
||||
import { removeUndefinedProps } from '../../../../context/url_params_context/helpers';
|
||||
|
||||
export function URLFilter() {
|
||||
|
|
|
@ -10,7 +10,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import React, { useEffect, useCallback } from 'react';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { useLegacyUrlParams } from '../../../../../context/url_params_context/use_url_params';
|
||||
import { fromQuery, toQuery } from '../../../../shared/Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../../../../shared/links/url_helpers';
|
||||
|
||||
interface Props {
|
||||
serviceNames: string[];
|
||||
|
|
|
@ -10,7 +10,7 @@ import React, { useCallback, useEffect } from 'react';
|
|||
import { EuiSelect } from '@elastic/eui';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../../../shared/links/url_helpers';
|
||||
import { I18LABELS } from '../translations';
|
||||
|
||||
const DEFAULT_P = 50;
|
||||
|
|
|
@ -22,7 +22,7 @@ import { useLocalStorage } from '../../../hooks/useLocalStorage';
|
|||
import { useAnyOfApmParams } from '../../../hooks/use_apm_params';
|
||||
import { FETCH_STATUS, useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import { useUpgradeAssistantHref } from '../../shared/Links/kibana';
|
||||
import { useUpgradeAssistantHref } from '../../shared/links/kibana';
|
||||
import { SearchBar } from '../../shared/search_bar';
|
||||
import { getTimeRangeComparison } from '../../shared/time_comparison/get_time_range_comparison';
|
||||
import { ServiceList } from './service_list';
|
||||
|
|
|
@ -36,7 +36,7 @@ import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
|||
import { unit } from '../../../../utils/style';
|
||||
import { ApmRoutes } from '../../../routing/apm_route_config';
|
||||
import { AggregatedTransactionsBadge } from '../../../shared/aggregated_transactions_badge';
|
||||
import { EnvironmentBadge } from '../../../shared/EnvironmentBadge';
|
||||
import { EnvironmentBadge } from '../../../shared/environment_badge';
|
||||
import { ListMetric } from '../../../shared/list_metric';
|
||||
import { ITableColumn, ManagedTable } from '../../../shared/managed_table';
|
||||
import { ServiceLink } from '../../../shared/service_link';
|
||||
|
|
|
@ -11,9 +11,9 @@ import React, { useContext, useEffect, useState } from 'react';
|
|||
import { euiStyled } from '../../../../../../../src/plugins/kibana_react/common';
|
||||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { useTheme } from '../../../hooks/use_theme';
|
||||
import { getLegacyApmHref } from '../../shared/Links/apm/APMLink';
|
||||
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 { APMQueryParams } from '../../shared/links/url_helpers';
|
||||
import { CytoscapeContext } from './Cytoscape';
|
||||
import { getAnimationOptions, getNodeHeight } from './cytoscape_options';
|
||||
import { useAnyOfApmParams } from '../../../hooks/use_apm_params';
|
||||
|
|
|
@ -26,7 +26,7 @@ import {
|
|||
import { TRANSACTION_REQUEST } from '../../../../../common/transaction_types';
|
||||
import { asDuration, asInteger } from '../../../../../common/utils/formatters';
|
||||
import { useTheme } from '../../../../hooks/use_theme';
|
||||
import { MLSingleMetricLink } from '../../../shared/Links/MachineLearningLinks/MLSingleMetricLink';
|
||||
import { MLSingleMetricLink } from '../../../shared/links/machine_learning_links/mlsingle_metric_link';
|
||||
import { popoverWidth } from '../cytoscape_options';
|
||||
|
||||
const HealthStatusTitle = euiStyled(EuiTitle)`
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { EuiEmptyPrompt } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { SetupInstructionsLink } from '../../shared/Links/SetupInstructionsLink';
|
||||
import { SetupInstructionsLink } from '../../shared/links/setup_instructions_link';
|
||||
|
||||
export function EmptyPrompt() {
|
||||
return (
|
||||
|
|
|
@ -22,7 +22,7 @@ import { useApmParams } from '../../../hooks/use_apm_params';
|
|||
import { useFetcher, FETCH_STATUS } from '../../../hooks/use_fetcher';
|
||||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import { truncate, unit } from '../../../utils/style';
|
||||
import { ServiceNodeMetricOverviewLink } from '../../shared/Links/apm/ServiceNodeMetricOverviewLink';
|
||||
import { ServiceNodeMetricOverviewLink } from '../../shared/links/apm/service_node_metric_overview_link';
|
||||
import { ITableColumn, ManagedTable } from '../../shared/managed_table';
|
||||
|
||||
const INITIAL_PAGE_SIZE = 25;
|
||||
|
|
|
@ -26,7 +26,7 @@ import { useApmParams } from '../../../hooks/use_apm_params';
|
|||
import { AggregatedTransactionsBadge } from '../../shared/aggregated_transactions_badge';
|
||||
import { useApmRouter } from '../../../hooks/use_apm_router';
|
||||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import { replace } from '../../shared/Links/url_helpers';
|
||||
import { replace } from '../../shared/links/url_helpers';
|
||||
|
||||
/**
|
||||
* The height a chart should be if it's next to a table with 5 rows and a title.
|
||||
|
|
|
@ -11,8 +11,8 @@ import React from 'react';
|
|||
import { asInteger } from '../../../../../common/utils/formatters';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { SparkPlot } from '../../../shared/charts/spark_plot';
|
||||
import { ErrorDetailLink } from '../../../shared/Links/apm/ErrorDetailLink';
|
||||
import { TimestampTooltip } from '../../../shared/TimestampTooltip';
|
||||
import { ErrorDetailLink } from '../../../shared/links/apm/error_detail_link';
|
||||
import { TimestampTooltip } from '../../../shared/timestamp_tooltip';
|
||||
import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip';
|
||||
|
||||
type ErrorGroupMainStatistics =
|
||||
|
|
|
@ -19,7 +19,7 @@ import { useApmServiceContext } from '../../../../context/apm_service/use_apm_se
|
|||
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 { ErrorOverviewLink } from '../../../shared/Links/apm/ErrorOverviewLink';
|
||||
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';
|
||||
import { getColumns } from './get_columns';
|
||||
|
|
|
@ -25,8 +25,8 @@ import {
|
|||
asTransactionRate,
|
||||
} from '../../../../../common/utils/formatters';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import { MetricOverviewLink } from '../../../shared/Links/apm/MetricOverviewLink';
|
||||
import { ServiceNodeMetricOverviewLink } from '../../../shared/Links/apm/ServiceNodeMetricOverviewLink';
|
||||
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';
|
||||
import { getLatencyColumnLabel } from '../../../shared/transactions_table/get_latency_column_label';
|
||||
import { TruncateWithTooltip } from '../../../shared/truncate_with_tooltip';
|
||||
|
|
|
@ -20,8 +20,8 @@ import { SERVICE_NODE_NAME } from '../../../../../../common/elasticsearch_fieldn
|
|||
import { useApmPluginContext } from '../../../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { FETCH_STATUS } from '../../../../../hooks/use_fetcher';
|
||||
import { pushNewItemToKueryBar } from '../../../../shared/kuery_bar/utils';
|
||||
import { useMetricOverviewHref } from '../../../../shared/Links/apm/MetricOverviewLink';
|
||||
import { useServiceNodeMetricOverviewHref } from '../../../../shared/Links/apm/ServiceNodeMetricOverviewLink';
|
||||
import { useMetricOverviewHref } from '../../../../shared/links/apm/metric_overview_link';
|
||||
import { useServiceNodeMetricOverviewHref } from '../../../../shared/links/apm/service_node_metric_overview_link';
|
||||
import { useInstanceDetailsFetcher } from '../use_instance_details_fetcher';
|
||||
import { getMenuSections } from './menu_sections';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import { i18n } from '@kbn/i18n';
|
|||
import { IBasePath } from 'kibana/public';
|
||||
import moment from 'moment';
|
||||
import { APIReturnType } from '../../../../../services/rest/createCallApmApi';
|
||||
import { getInfraHref } from '../../../../shared/Links/InfraLink';
|
||||
import { getInfraHref } from '../../../../shared/links/infra_link';
|
||||
import {
|
||||
Action,
|
||||
getNonEmptySections,
|
||||
|
|
|
@ -18,9 +18,9 @@ import {
|
|||
import { useApmParams } from '../../../hooks/use_apm_params';
|
||||
import { APIReturnType } from '../../../services/rest/createCallApmApi';
|
||||
import { truncate } from '../../../utils/style';
|
||||
import { EmptyMessage } from '../../shared/EmptyMessage';
|
||||
import { ImpactBar } from '../../shared/ImpactBar';
|
||||
import { TransactionDetailLink } from '../../shared/Links/apm/transaction_detail_link';
|
||||
import { EmptyMessage } from '../../shared/empty_message';
|
||||
import { ImpactBar } from '../../shared/impact_bar';
|
||||
import { TransactionDetailLink } from '../../shared/links/apm/transaction_detail_link';
|
||||
import { ITableColumn, ManagedTable } from '../../shared/managed_table';
|
||||
import { ServiceLink } from '../../shared/service_link';
|
||||
import { TruncateWithTooltip } from '../../shared/truncate_with_tooltip';
|
||||
|
|
|
@ -21,7 +21,7 @@ import {
|
|||
MockApmPluginContextWrapper,
|
||||
} from '../../../../context/apm_plugin/mock_apm_plugin_context';
|
||||
import * as useFetcherModule from '../../../../hooks/use_fetcher';
|
||||
import { fromQuery } from '../../../shared/Links/url_helpers';
|
||||
import { fromQuery } from '../../../shared/links/url_helpers';
|
||||
|
||||
import { getFormattedSelection, TransactionDistribution } from './index';
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ import { useWaterfallFetcher } from '../use_waterfall_fetcher';
|
|||
import { WaterfallWithSummary } from '../waterfall_with_summary';
|
||||
|
||||
import { useTransactionDistributionChartData } from './use_transaction_distribution_chart_data';
|
||||
import { HeightRetainer } from '../../../shared/HeightRetainer';
|
||||
import { HeightRetainer } from '../../../shared/height_retainer';
|
||||
import { ChartTitleToolTip } from '../../correlations/chart_title_tool_tip';
|
||||
|
||||
// Enforce min height so it's consistent across all tabs on the same level
|
||||
|
|
|
@ -16,7 +16,7 @@ import { useApmRouter } from '../../../hooks/use_apm_router';
|
|||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import { AggregatedTransactionsBadge } from '../../shared/aggregated_transactions_badge';
|
||||
import { TransactionCharts } from '../../shared/charts/transaction_charts';
|
||||
import { replace } from '../../shared/Links/url_helpers';
|
||||
import { replace } from '../../shared/links/url_helpers';
|
||||
import { TransactionDetailsTabs } from './transaction_details_tabs';
|
||||
|
||||
export function TransactionDetails() {
|
||||
|
|
|
@ -18,7 +18,7 @@ import { useApmParams } from '../../../hooks/use_apm_params';
|
|||
import { useTransactionTraceSamplesFetcher } from '../../../hooks/use_transaction_trace_samples_fetcher';
|
||||
|
||||
import { maybe } from '../../../../common/utils/maybe';
|
||||
import { fromQuery, push, toQuery } from '../../shared/Links/url_helpers';
|
||||
import { fromQuery, push, toQuery } from '../../shared/links/url_helpers';
|
||||
|
||||
import { failedTransactionsCorrelationsTab } from './failed_transactions_correlations_tab';
|
||||
import { latencyCorrelationsTab } from './latency_correlations_tab';
|
||||
|
|
|
@ -17,10 +17,10 @@ import { i18n } from '@kbn/i18n';
|
|||
import React, { useEffect, useState } from 'react';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import type { ApmUrlParams } from '../../../../context/url_params_context/types';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { LoadingStatePrompt } from '../../../shared/LoadingStatePrompt';
|
||||
import { TransactionSummary } from '../../../shared/Summary/TransactionSummary';
|
||||
import { TransactionActionMenu } from '../../../shared/transaction_action_menu/TransactionActionMenu';
|
||||
import { fromQuery, toQuery } from '../../../shared/links/url_helpers';
|
||||
import { LoadingStatePrompt } from '../../../shared/loading_state_prompt';
|
||||
import { TransactionSummary } from '../../../shared/summary/transaction_summary';
|
||||
import { TransactionActionMenu } from '../../../shared/transaction_action_menu/transaction_action_menu';
|
||||
import type { TraceSample } from '../../../../hooks/use_transaction_trace_samples_fetcher';
|
||||
import { MaybeViewTraceLink } from './maybe_view_trace_link';
|
||||
import { TransactionTabs } from './transaction_tabs';
|
||||
|
|
|
@ -11,7 +11,7 @@ import React from 'react';
|
|||
import { getNextEnvironmentUrlParam } from '../../../../../common/environment_filter_values';
|
||||
import { useLegacyUrlParams } from '../../../../context/url_params_context/use_url_params';
|
||||
import { Transaction as ITransaction } from '../../../../../typings/es_schemas/ui/transaction';
|
||||
import { TransactionDetailLink } from '../../../shared/Links/apm/transaction_detail_link';
|
||||
import { TransactionDetailLink } from '../../../shared/links/apm/transaction_detail_link';
|
||||
import { IWaterfall } from './waterfall_container/waterfall/waterfall_helpers/waterfall_helpers';
|
||||
import { Environment } from '../../../../../common/environment_rt';
|
||||
|
||||
|
|
|
@ -12,8 +12,8 @@ import { useHistory } from 'react-router-dom';
|
|||
import { LogStream } from '../../../../../../infra/public';
|
||||
import { Transaction } from '../../../../../typings/es_schemas/ui/transaction';
|
||||
import type { ApmUrlParams } from '../../../../context/url_params_context/types';
|
||||
import { fromQuery, toQuery } from '../../../shared/Links/url_helpers';
|
||||
import { TransactionMetadata } from '../../../shared/MetadataTable/TransactionMetadata';
|
||||
import { fromQuery, toQuery } from '../../../shared/links/url_helpers';
|
||||
import { TransactionMetadata } from '../../../shared/metadata_table/transaction_metadata';
|
||||
import { WaterfallContainer } from './waterfall_container';
|
||||
import { IWaterfall } from './waterfall_container/waterfall/waterfall_helpers/waterfall_helpers';
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import React, { Dispatch, SetStateAction, useState } from 'react';
|
||||
import { euiStyled } from '../../../../../../../../../../src/plugins/kibana_react/common';
|
||||
import { Margins } from '../../../../../shared/charts/Timeline';
|
||||
import { Margins } from '../../../../../shared/charts/timeline';
|
||||
import {
|
||||
IWaterfall,
|
||||
IWaterfallSpanOrTransaction,
|
||||
|
|
|
@ -15,7 +15,7 @@ import { getNextEnvironmentUrlParam } from '../../../../../../../common/environm
|
|||
import { Transaction } from '../../../../../../../typings/es_schemas/ui/transaction';
|
||||
import { useLegacyUrlParams } from '../../../../../../context/url_params_context/use_url_params';
|
||||
import { useApmParams } from '../../../../../../hooks/use_apm_params';
|
||||
import { TransactionDetailLink } from '../../../../../shared/Links/apm/transaction_detail_link';
|
||||
import { TransactionDetailLink } from '../../../../../shared/links/apm/transaction_detail_link';
|
||||
import { ServiceLink } from '../../../../../shared/service_link';
|
||||
import { StickyProperties } from '../../../../../shared/sticky_properties';
|
||||
|
||||
|
|
|
@ -11,8 +11,8 @@ import { History } from 'history';
|
|||
import React, { useState } from 'react';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { euiStyled } from '../../../../../../../../../../src/plugins/kibana_react/common';
|
||||
import { Timeline } from '../../../../../shared/charts/Timeline';
|
||||
import { fromQuery, toQuery } from '../../../../../shared/Links/url_helpers';
|
||||
import { Timeline } from '../../../../../shared/charts/timeline';
|
||||
import { fromQuery, toQuery } from '../../../../../shared/links/url_helpers';
|
||||
import { getAgentMarks } from '../marks/get_agent_marks';
|
||||
import { getErrorMarks } from '../marks/get_error_marks';
|
||||
import { AccordionWaterfall } from './accordion_waterfall';
|
||||
|
|
|
@ -22,17 +22,17 @@ import {
|
|||
} from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React, { Fragment } from 'react';
|
||||
import { CompositeSpanDurationSummaryItem } from '../../../../../../shared/Summary/CompositeSpanDurationSummaryItem';
|
||||
import { CompositeSpanDurationSummaryItem } from '../../../../../../shared/summary/composite_span_duration_summary_item';
|
||||
import { euiStyled } from '../../../../../../../../../../../src/plugins/kibana_react/common';
|
||||
import { Span } from '../../../../../../../../typings/es_schemas/ui/span';
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction';
|
||||
import { DiscoverSpanLink } from '../../../../../../shared/Links/DiscoverLinks/DiscoverSpanLink';
|
||||
import { SpanMetadata } from '../../../../../../shared/MetadataTable/SpanMetadata';
|
||||
import { Stacktrace } from '../../../../../../shared/Stacktrace';
|
||||
import { Summary } from '../../../../../../shared/Summary';
|
||||
import { DurationSummaryItem } from '../../../../../../shared/Summary/DurationSummaryItem';
|
||||
import { HttpInfoSummaryItem } from '../../../../../../shared/Summary/http_info_summary_item';
|
||||
import { TimestampTooltip } from '../../../../../../shared/TimestampTooltip';
|
||||
import { DiscoverSpanLink } from '../../../../../../shared/links/discover_links/discover_span_link';
|
||||
import { SpanMetadata } from '../../../../../../shared/metadata_table/span_metadata';
|
||||
import { Stacktrace } from '../../../../../../shared/stacktrace';
|
||||
import { Summary } from '../../../../../../shared/summary';
|
||||
import { DurationSummaryItem } from '../../../../../../shared/summary/duration_summary_item';
|
||||
import { HttpInfoSummaryItem } from '../../../../../../shared/summary/http_info_summary_item';
|
||||
import { TimestampTooltip } from '../../../../../../shared/timestamp_tooltip';
|
||||
import { ResponsiveFlyout } from '../responsive_flyout';
|
||||
import { SyncBadge } from '../sync_badge';
|
||||
import { SpanDatabase } from './span_db';
|
||||
|
|
|
@ -23,7 +23,7 @@ import { Span } from '../../../../../../../../typings/es_schemas/ui/span';
|
|||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction';
|
||||
import { useApmParams } from '../../../../../../../hooks/use_apm_params';
|
||||
import { BackendLink } from '../../../../../../shared/backend_link';
|
||||
import { TransactionDetailLink } from '../../../../../../shared/Links/apm/transaction_detail_link';
|
||||
import { TransactionDetailLink } from '../../../../../../shared/links/apm/transaction_detail_link';
|
||||
import { ServiceLink } from '../../../../../../shared/service_link';
|
||||
import { StickyProperties } from '../../../../../../shared/sticky_properties';
|
||||
|
||||
|
|
|
@ -18,11 +18,11 @@ import {
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { Transaction } from '../../../../../../../../typings/es_schemas/ui/transaction';
|
||||
import { TransactionActionMenu } from '../../../../../../shared/transaction_action_menu/TransactionActionMenu';
|
||||
import { TransactionSummary } from '../../../../../../shared/Summary/TransactionSummary';
|
||||
import { TransactionActionMenu } from '../../../../../../shared/transaction_action_menu/transaction_action_menu';
|
||||
import { TransactionSummary } from '../../../../../../shared/summary/transaction_summary';
|
||||
import { FlyoutTopLevelProperties } from '../flyout_top_level_properties';
|
||||
import { ResponsiveFlyout } from '../responsive_flyout';
|
||||
import { TransactionMetadata } from '../../../../../../shared/MetadataTable/TransactionMetadata';
|
||||
import { TransactionMetadata } from '../../../../../../shared/metadata_table/transaction_metadata';
|
||||
import { DroppedSpansWarning } from './dropped_spans_warning';
|
||||
|
||||
interface Props {
|
||||
|
|
|
@ -16,7 +16,7 @@ import {
|
|||
TRANSACTION_ID,
|
||||
} from '../../../../../../../common/elasticsearch_fieldnames';
|
||||
import { asDuration } from '../../../../../../../common/utils/formatters';
|
||||
import { Margins } from '../../../../../shared/charts/Timeline';
|
||||
import { Margins } from '../../../../../shared/charts/timeline';
|
||||
import { TruncateWithTooltip } from '../../../../../shared/truncate_with_tooltip';
|
||||
import { SyncBadge } from './sync_badge';
|
||||
import { IWaterfallSpanOrTransaction } from './waterfall_helpers/waterfall_helpers';
|
||||
|
|
|
@ -10,7 +10,7 @@ import { EuiFlexItem } from '@elastic/eui';
|
|||
import { EuiTitle } from '@elastic/eui';
|
||||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { Legend } from '../../../../shared/charts/Timeline/legend';
|
||||
import { Legend } from '../../../../shared/charts/timeline/legend';
|
||||
import {
|
||||
IWaterfallLegend,
|
||||
WaterfallLegendType,
|
||||
|
|
|
@ -13,7 +13,7 @@ import { useApmParams } from '../../../hooks/use_apm_params';
|
|||
import { useTimeRange } from '../../../hooks/use_time_range';
|
||||
import { AggregatedTransactionsBadge } from '../../shared/aggregated_transactions_badge';
|
||||
import { TransactionCharts } from '../../shared/charts/transaction_charts';
|
||||
import { replace } from '../../shared/Links/url_helpers';
|
||||
import { replace } from '../../shared/links/url_helpers';
|
||||
import { TransactionsTable } from '../../shared/transactions_table';
|
||||
|
||||
export function TransactionOverview() {
|
||||
|
|
|
@ -21,7 +21,7 @@ import {
|
|||
disableConsoleWarning,
|
||||
renderWithTheme,
|
||||
} from '../../../utils/testHelpers';
|
||||
import { fromQuery } from '../../shared/Links/url_helpers';
|
||||
import { fromQuery } from '../../shared/links/url_helpers';
|
||||
import { TransactionOverview } from './';
|
||||
|
||||
const KibanaReactContext = createKibanaReactContext({
|
||||
|
|
|
@ -20,7 +20,7 @@ import {
|
|||
HeaderMenuPortal,
|
||||
InspectorContextProvider,
|
||||
} from '../../../../observability/public';
|
||||
import { ScrollToTopOnPathChange } from '../../components/app/Main/ScrollToTopOnPathChange';
|
||||
import { ScrollToTopOnPathChange } from '../../components/app/main/ScrollToTopOnPathChange';
|
||||
import { AnomalyDetectionJobsContextProvider } from '../../context/anomaly_detection_jobs/anomaly_detection_jobs_context';
|
||||
import {
|
||||
ApmPluginContext,
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
import { EnvironmentsContextProvider } from '../../../context/environments_context/environments_context';
|
||||
import { useFetcher } from '../../../hooks/use_fetcher';
|
||||
import { ApmPluginStartDeps } from '../../../plugin';
|
||||
import { ApmEnvironmentFilter } from '../../shared/EnvironmentFilter';
|
||||
import { ApmEnvironmentFilter } from '../../shared/environment_filter';
|
||||
import { getNoDataConfig } from './no_data_config';
|
||||
|
||||
// Paths that must skip the no data screen
|
||||
|
|
|
@ -13,7 +13,7 @@ import { useHistory } from 'react-router-dom';
|
|||
import { CoreStart } from 'kibana/public';
|
||||
import { ApmMainTemplate } from './apm_main_template';
|
||||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { getLegacyApmHref } from '../../shared/Links/apm/APMLink';
|
||||
import { getLegacyApmHref } from '../../shared/links/apm/apm_link';
|
||||
|
||||
type Tab = NonNullable<EuiPageHeaderProps['tabs']>[0] & {
|
||||
key:
|
||||
|
|
|
@ -19,7 +19,7 @@ import { useAnomalyDetectionJobsContext } from '../../../context/anomaly_detecti
|
|||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { useApmParams } from '../../../hooks/use_apm_params';
|
||||
import { useTheme } from '../../../hooks/use_theme';
|
||||
import { getLegacyApmHref } from '../Links/apm/APMLink';
|
||||
import { getLegacyApmHref } from '../links/apm/apm_link';
|
||||
|
||||
export function AnomalyDetectionSetupLink() {
|
||||
const { query } = useApmParams('/*');
|
||||
|
|
|
@ -9,7 +9,7 @@ import { EuiHeaderLink, EuiHeaderLinks } from '@elastic/eui';
|
|||
import { i18n } from '@kbn/i18n';
|
||||
import React from 'react';
|
||||
import { getAlertingCapabilities } from '../../alerting/get_alerting_capabilities';
|
||||
import { getLegacyApmHref } from '../Links/apm/APMLink';
|
||||
import { getLegacyApmHref } from '../links/apm/apm_link';
|
||||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { AlertingPopoverAndFlyout } from './alerting_popover_flyout';
|
||||
import { AnomalyDetectionSetupLink } from './anomaly_detection_setup_link';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import { XYBrushEvent } from '@elastic/charts';
|
||||
import { History } from 'history';
|
||||
import { Coordinate, TimeSeries } from '../../../../../typings/timeseries';
|
||||
import { fromQuery, toQuery } from '../../Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../../links/url_helpers';
|
||||
|
||||
export const onBrushEnd = ({
|
||||
x,
|
||||
|
|
|
@ -31,7 +31,7 @@ import {
|
|||
import { FETCH_STATUS } from '../../../../hooks/use_fetcher';
|
||||
import { useTheme } from '../../../../hooks/use_theme';
|
||||
import { APIReturnType } from '../../../../services/rest/createCallApmApi';
|
||||
import * as urlHelpers from '../../Links/url_helpers';
|
||||
import * as urlHelpers from '../../links/url_helpers';
|
||||
import { ChartContainer } from '../chart_container';
|
||||
import { getResponseTimeTickFormatter } from '../transaction_charts/helper';
|
||||
import { CustomTooltip } from './custom_tooltip';
|
||||
|
|
|
@ -24,7 +24,7 @@ import {
|
|||
getResponseTimeTickFormatter,
|
||||
} from '../../../shared/charts/transaction_charts/helper';
|
||||
import { MLHeader } from '../../../shared/charts/transaction_charts/ml_header';
|
||||
import * as urlHelpers from '../../../shared/Links/url_helpers';
|
||||
import * as urlHelpers from '../../../shared/links/url_helpers';
|
||||
import { getComparisonChartTheme } from '../../time_comparison/get_time_range_comparison';
|
||||
import { useEnvironmentsContext } from '../../../../context/environments_context/use_environments_context';
|
||||
import { ApmMlDetectorType } from '../../../../../common/anomaly_detection/apm_ml_detectors';
|
||||
|
|
|
@ -10,9 +10,9 @@ import React, { PureComponent, ReactNode } from 'react';
|
|||
import { makeWidthFlexible } from 'react-vis';
|
||||
import { AgentMark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_agent_marks';
|
||||
import { ErrorMark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks';
|
||||
import { getPlotValues } from './plotUtils';
|
||||
import { getPlotValues } from './plot_utils';
|
||||
import { TimelineAxis } from './timeline_axis';
|
||||
import { VerticalLines } from './VerticalLines';
|
||||
import { VerticalLines } from './vertical_lines';
|
||||
|
||||
export type Mark = AgentMark | ErrorMark;
|
||||
|
|
@ -16,7 +16,7 @@ import { asDuration } from '../../../../../../common/utils/formatters';
|
|||
import { useLegacyUrlParams } from '../../../../../context/url_params_context/use_url_params';
|
||||
import { useTheme } from '../../../../../hooks/use_theme';
|
||||
import { ErrorMark } from '../../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks/get_error_marks';
|
||||
import { ErrorDetailLink } from '../../../Links/apm/ErrorDetailLink';
|
||||
import { ErrorDetailLink } from '../../../links/apm/error_detail_link';
|
||||
import { Legend, Shape } from '../legend';
|
||||
|
||||
interface Props {
|
|
@ -11,9 +11,9 @@ import { XAxis, XYPlot } from 'react-vis';
|
|||
import { getDurationFormatter } from '../../../../../common/utils/formatters';
|
||||
import { useTheme } from '../../../../hooks/use_theme';
|
||||
import { Mark } from './';
|
||||
import { LastTickValue } from './LastTickValue';
|
||||
import { Marker } from './Marker';
|
||||
import { PlotValues } from './plotUtils';
|
||||
import { LastTickValue } from './last_tick_value';
|
||||
import { Marker } from './marker';
|
||||
import { PlotValues } from './plot_utils';
|
||||
|
||||
// Remove any tick that is too close to topTraceDuration
|
||||
const getXAxisTickValues = (
|
|
@ -9,7 +9,7 @@ import React from 'react';
|
|||
import { VerticalGridLines, XYPlot } from 'react-vis';
|
||||
import { useTheme } from '../../../../hooks/use_theme';
|
||||
import { Mark } from '../../../app/transaction_details/waterfall_with_summary/waterfall_container/marks';
|
||||
import { PlotValues } from './plotUtils';
|
||||
import { PlotValues } from './plot_utils';
|
||||
|
||||
interface VerticalLinesProps {
|
||||
marks?: Mark[];
|
|
@ -12,7 +12,7 @@ import React from 'react';
|
|||
import { euiStyled } from '../../../../../../../../src/plugins/kibana_react/common';
|
||||
import { useApmServiceContext } from '../../../../context/apm_service/use_apm_service_context';
|
||||
import { useApmParams } from '../../../../hooks/use_apm_params';
|
||||
import { MLSingleMetricLink } from '../../Links/MachineLearningLinks/MLSingleMetricLink';
|
||||
import { MLSingleMetricLink } from '../../links/machine_learning_links/mlsingle_metric_link';
|
||||
|
||||
interface Props {
|
||||
hasValidMlLicense?: boolean;
|
||||
|
|
|
@ -11,7 +11,7 @@ import { useHistory, useLocation } from 'react-router-dom';
|
|||
import { UI_SETTINGS } from '../../../../../../../src/plugins/data/common';
|
||||
import { useApmPluginContext } from '../../../context/apm_plugin/use_apm_plugin_context';
|
||||
import { clearCache } from '../../../services/rest/callApi';
|
||||
import { fromQuery, toQuery } from '../Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../links/url_helpers';
|
||||
import { TimePickerQuickRange } from './typings';
|
||||
|
||||
export function DatePicker({
|
|
@ -21,8 +21,8 @@ import {
|
|||
} from '../../../../common/utils/formatters';
|
||||
import { useBreakpoints } from '../../../hooks/use_breakpoints';
|
||||
import { FETCH_STATUS } from '../../../hooks/use_fetcher';
|
||||
import { EmptyMessage } from '../EmptyMessage';
|
||||
import { ImpactBar } from '../ImpactBar';
|
||||
import { EmptyMessage } from '../empty_message';
|
||||
import { ImpactBar } from '../impact_bar';
|
||||
import { ListMetric } from '../list_metric';
|
||||
import { ITableColumn, ManagedTable } from '../managed_table';
|
||||
import { OverviewTableContainer } from '../overview_table_container';
|
||||
|
|
|
@ -15,7 +15,7 @@ import {
|
|||
ENVIRONMENT_NOT_DEFINED,
|
||||
} from '../../../../common/environment_filter_values';
|
||||
import { useEnvironmentsFetcher } from '../../../hooks/use_environments_fetcher';
|
||||
import { fromQuery, toQuery } from '../Links/url_helpers';
|
||||
import { fromQuery, toQuery } from '../links/url_helpers';
|
||||
import { useUxUrlParams } from '../../../context/url_params_context/use_ux_url_params';
|
||||
import { FETCH_STATUS } from '../../../hooks/use_fetcher';
|
||||
import { Environment } from '../../../../common/environment_rt';
|
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