mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
chore: rename functions in aggregated_transactions helper (#116001)
* Renamed methods and fixed imports * Fixed lint errors * Renamed file Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
8c6ef2054f
commit
2c5ecd9b3f
42 changed files with 143 additions and 227 deletions
|
@ -14,11 +14,11 @@ import {
|
|||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { AlertParams } from '../../../routes/alerts/chart_preview';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getSearchAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../../helpers/transactions';
|
||||
import { Setup } from '../../helpers/setup_request';
|
||||
|
||||
export async function getTransactionDurationChartPreview({
|
||||
|
@ -52,17 +52,14 @@ export async function getTransactionDurationChartPreview({
|
|||
: []),
|
||||
...rangeQuery(start, end),
|
||||
...environmentQuery(environment),
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...getDocumentTypeFilterForTransactions(searchAggregatedTransactions),
|
||||
] as QueryDslQueryContainer[],
|
||||
},
|
||||
};
|
||||
|
||||
const transactionDurationField =
|
||||
getTransactionDurationFieldForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
);
|
||||
const transactionDurationField = getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
);
|
||||
|
||||
const aggs = {
|
||||
timeseries: {
|
||||
|
@ -90,11 +87,7 @@ export async function getTransactionDurationChartPreview({
|
|||
};
|
||||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
events: [getProcessorEventForTransactions(searchAggregatedTransactions)],
|
||||
},
|
||||
body: { size: 0, query, aggs },
|
||||
};
|
||||
|
|
|
@ -13,10 +13,10 @@ import {
|
|||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { AlertParams } from '../../../routes/alerts/chart_preview';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getSearchAggregatedTransactions,
|
||||
} from '../../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../../helpers/transactions';
|
||||
import { Setup } from '../../helpers/setup_request';
|
||||
import {
|
||||
calculateFailedTransactionRate,
|
||||
|
@ -45,11 +45,7 @@ export async function getTransactionErrorRateChartPreview({
|
|||
|
||||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
events: [getProcessorEventForTransactions(searchAggregatedTransactions)],
|
||||
},
|
||||
body: {
|
||||
size: 0,
|
||||
|
@ -62,7 +58,7 @@ export async function getTransactionErrorRateChartPreview({
|
|||
: []),
|
||||
...rangeQuery(start, end),
|
||||
...environmentQuery(environment),
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
|
|
|
@ -41,9 +41,9 @@ import { ProcessorEvent } from '../../../common/processor_event';
|
|||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { getDurationFormatter } from '../../../common/utils/formatters';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
import { getApmIndices } from '../settings/apm_indices/get_apm_indices';
|
||||
import { apmActionVariables } from './action_variables';
|
||||
import { alertingEsClient } from './alerting_es_client';
|
||||
|
@ -122,7 +122,7 @@ export function registerTransactionDurationAlertType({
|
|||
? indices.metric
|
||||
: indices.transaction;
|
||||
|
||||
const field = getTransactionDurationFieldForAggregatedTransactions(
|
||||
const field = getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
);
|
||||
|
||||
|
@ -140,7 +140,7 @@ export function registerTransactionDurationAlertType({
|
|||
},
|
||||
},
|
||||
},
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
{ term: { [SERVICE_NAME]: alertParams.serviceName } },
|
||||
|
|
|
@ -46,7 +46,7 @@ import { apmActionVariables } from './action_variables';
|
|||
import { alertingEsClient } from './alerting_es_client';
|
||||
import { RegisterRuleDependencies } from './register_apm_alerts';
|
||||
import { SearchAggregatedTransactionSetting } from '../../../common/aggregated_transactions';
|
||||
import { getDocumentTypeFilterForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getDocumentTypeFilterForTransactions } from '../helpers/transactions';
|
||||
import { asPercent } from '../../../../observability/common/utils/formatters';
|
||||
|
||||
const ALERT_EVALUATION_THRESHOLD: typeof ALERT_EVALUATION_THRESHOLD_TYPED =
|
||||
|
@ -131,7 +131,7 @@ export function registerTransactionErrorRateAlertType({
|
|||
},
|
||||
},
|
||||
},
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
{
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
SERVICE_ENVIRONMENT,
|
||||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { ENVIRONMENT_NOT_DEFINED } from '../../../common/environment_filter_values';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../helpers/transactions';
|
||||
|
||||
/**
|
||||
* This is used for getting *all* environments, and does not filter by range.
|
||||
|
@ -45,9 +45,7 @@ export async function getAllEnvironments({
|
|||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.error,
|
||||
ProcessorEvent.metric,
|
||||
],
|
||||
|
|
|
@ -12,7 +12,7 @@ import {
|
|||
import { ENVIRONMENT_NOT_DEFINED } from '../../../common/environment_filter_values';
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../helpers/transactions';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
|
||||
/**
|
||||
|
@ -51,9 +51,7 @@ export async function getEnvironments({
|
|||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.metric,
|
||||
ProcessorEvent.error,
|
||||
],
|
||||
|
|
|
@ -77,7 +77,7 @@ export async function getSearchAggregatedTransactions({
|
|||
);
|
||||
}
|
||||
|
||||
export function getTransactionDurationFieldForAggregatedTransactions(
|
||||
export function getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions: boolean
|
||||
) {
|
||||
return searchAggregatedTransactions
|
||||
|
@ -85,7 +85,7 @@ export function getTransactionDurationFieldForAggregatedTransactions(
|
|||
: TRANSACTION_DURATION;
|
||||
}
|
||||
|
||||
export function getDocumentTypeFilterForAggregatedTransactions(
|
||||
export function getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions: boolean
|
||||
) {
|
||||
return searchAggregatedTransactions
|
||||
|
@ -93,7 +93,7 @@ export function getDocumentTypeFilterForAggregatedTransactions(
|
|||
: [];
|
||||
}
|
||||
|
||||
export function getProcessorEventForAggregatedTransactions(
|
||||
export function getProcessorEventForTransactions(
|
||||
searchAggregatedTransactions: boolean
|
||||
): ProcessorEvent.metric | ProcessorEvent.transaction {
|
||||
return searchAggregatedTransactions
|
|
@ -9,7 +9,7 @@ import { ProcessorEvent } from '../../../common/processor_event';
|
|||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { SERVICE_NAME } from '../../../common/elasticsearch_fieldnames';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../helpers/transactions';
|
||||
|
||||
export async function getServiceCount({
|
||||
setup,
|
||||
|
@ -27,9 +27,7 @@ export async function getServiceCount({
|
|||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.error,
|
||||
ProcessorEvent.metric,
|
||||
],
|
||||
|
|
|
@ -13,9 +13,9 @@ import { TRANSACTION_TYPE } from '../../../common/elasticsearch_fieldnames';
|
|||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
import {
|
||||
calculateThroughputWithInterval,
|
||||
calculateThroughputWithRange,
|
||||
|
@ -43,9 +43,7 @@ export async function getTransactionsPerMinute({
|
|||
{
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
],
|
||||
},
|
||||
body: {
|
||||
|
@ -54,7 +52,7 @@ export async function getTransactionsPerMinute({
|
|||
bool: {
|
||||
filter: [
|
||||
...rangeQuery(start, end),
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
|
|
|
@ -23,10 +23,10 @@ import { rangeQuery } from '../../../../observability/server';
|
|||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { withApmSpan } from '../../utils/with_apm_span';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import {
|
||||
percentCgroupMemoryUsedScript,
|
||||
|
@ -131,11 +131,7 @@ async function getTransactionStats({
|
|||
|
||||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
events: [getProcessorEventForTransactions(searchAggregatedTransactions)],
|
||||
},
|
||||
body: {
|
||||
size: 0,
|
||||
|
@ -143,7 +139,7 @@ async function getTransactionStats({
|
|||
bool: {
|
||||
filter: [
|
||||
...filter,
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
{
|
||||
|
@ -161,7 +157,7 @@ async function getTransactionStats({
|
|||
aggs: {
|
||||
duration: {
|
||||
avg: {
|
||||
field: getTransactionDurationFieldForAggregatedTransactions(
|
||||
field: getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
},
|
||||
|
|
|
@ -15,9 +15,9 @@ import {
|
|||
import { rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
} from '../../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../../helpers/transactions';
|
||||
import { Setup } from '../../helpers/setup_request';
|
||||
|
||||
export async function getDerivedServiceAnnotations({
|
||||
|
@ -39,9 +39,7 @@ export async function getDerivedServiceAnnotations({
|
|||
|
||||
const filter: ESFilter[] = [
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...getDocumentTypeFilterForTransactions(searchAggregatedTransactions),
|
||||
...environmentQuery(environment),
|
||||
];
|
||||
|
||||
|
@ -50,9 +48,7 @@ export async function getDerivedServiceAnnotations({
|
|||
await apmEventClient.search('get_derived_service_annotations', {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
],
|
||||
},
|
||||
body: {
|
||||
|
@ -83,9 +79,7 @@ export async function getDerivedServiceAnnotations({
|
|||
{
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
],
|
||||
},
|
||||
body: {
|
||||
|
|
|
@ -13,7 +13,7 @@ import {
|
|||
} from '../../../common/elasticsearch_fieldnames';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../helpers/transactions';
|
||||
|
||||
interface ServiceAgent {
|
||||
agent?: {
|
||||
|
@ -46,9 +46,7 @@ export async function getServiceAgent({
|
|||
apm: {
|
||||
events: [
|
||||
ProcessorEvent.error,
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.metric,
|
||||
],
|
||||
},
|
||||
|
|
|
@ -15,9 +15,9 @@ import { rangeQuery } from '../../../../observability/server';
|
|||
import { Setup } from '../helpers/setup_request';
|
||||
import { maybe } from '../../../common/utils/maybe';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
|
||||
export async function getServiceInstanceMetadataDetails({
|
||||
serviceName,
|
||||
|
@ -84,16 +84,14 @@ export async function getServiceInstanceMetadataDetails({
|
|||
'get_service_instance_metadata_details_application_transaction_metric',
|
||||
{
|
||||
apm: {
|
||||
events: [getProcessorEventForAggregatedTransactions(true)],
|
||||
events: [getProcessorEventForTransactions(true)],
|
||||
},
|
||||
body: {
|
||||
terminate_after: 1,
|
||||
size: 1,
|
||||
query: {
|
||||
bool: {
|
||||
filter: filter.concat(
|
||||
getDocumentTypeFilterForAggregatedTransactions(true)
|
||||
),
|
||||
filter: filter.concat(getDocumentTypeFilterForTransactions(true)),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
|
@ -17,10 +17,10 @@ import { Coordinate } from '../../../../typings/timeseries';
|
|||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../../helpers/transactions';
|
||||
import { calculateThroughput } from '../../helpers/calculate_throughput';
|
||||
import { getBucketSizeForAggregatedTransactions } from '../../helpers/get_bucket_size_for_aggregated_transactions';
|
||||
import {
|
||||
|
@ -89,7 +89,7 @@ export async function getServiceInstancesTransactionStatistics<
|
|||
}
|
||||
);
|
||||
|
||||
const field = getTransactionDurationFieldForAggregatedTransactions(
|
||||
const field = getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
);
|
||||
|
||||
|
@ -109,15 +109,11 @@ export async function getServiceInstancesTransactionStatistics<
|
|||
filter: [
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
{ term: { [TRANSACTION_TYPE]: transactionType } },
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...getDocumentTypeFilterForTransactions(searchAggregatedTransactions),
|
||||
...rangeQuery(start, end),
|
||||
...environmentQuery(environment),
|
||||
...kqlQuery(kuery),
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...getDocumentTypeFilterForTransactions(searchAggregatedTransactions),
|
||||
...(isComparisonSearch && serviceNodeIds
|
||||
? [{ terms: { [SERVICE_NODE_NAME]: serviceNodeIds } }]
|
||||
: []),
|
||||
|
@ -154,9 +150,7 @@ export async function getServiceInstancesTransactionStatistics<
|
|||
{
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
],
|
||||
},
|
||||
body: { size: 0, query, aggs },
|
||||
|
|
|
@ -22,7 +22,7 @@ import {
|
|||
import { ContainerType } from '../../../common/service_metadata';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { TransactionRaw } from '../../../typings/es_schemas/raw/transaction_raw';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../helpers/transactions';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import { should } from './get_service_metadata_icons';
|
||||
|
||||
|
@ -81,9 +81,7 @@ export async function getServiceMetadataDetails({
|
|||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.error,
|
||||
ProcessorEvent.metric,
|
||||
],
|
||||
|
|
|
@ -18,7 +18,7 @@ import {
|
|||
import { ContainerType } from '../../../common/service_metadata';
|
||||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { TransactionRaw } from '../../../typings/es_schemas/raw/transaction_raw';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../helpers/transactions';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
|
||||
type ServiceMetadataIconsRaw = Pick<
|
||||
|
@ -63,9 +63,7 @@ export async function getServiceMetadataIcons({
|
|||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.error,
|
||||
ProcessorEvent.metric,
|
||||
],
|
||||
|
|
|
@ -19,10 +19,10 @@ import { kqlQuery, rangeQuery } from '../../../../observability/server';
|
|||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { Coordinate } from '../../../typings/timeseries';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
import { getBucketSizeForAggregatedTransactions } from '../helpers/get_bucket_size_for_aggregated_transactions';
|
||||
import {
|
||||
getLatencyAggregation,
|
||||
|
@ -72,7 +72,7 @@ export async function getServiceTransactionGroupDetailedStatistics({
|
|||
searchAggregatedTransactions,
|
||||
});
|
||||
|
||||
const field = getTransactionDurationFieldForAggregatedTransactions(
|
||||
const field = getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
);
|
||||
|
||||
|
@ -81,9 +81,7 @@ export async function getServiceTransactionGroupDetailedStatistics({
|
|||
{
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
],
|
||||
},
|
||||
body: {
|
||||
|
@ -93,7 +91,7 @@ export async function getServiceTransactionGroupDetailedStatistics({
|
|||
filter: [
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
{ term: { [TRANSACTION_TYPE]: transactionType } },
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...rangeQuery(start, end),
|
||||
|
|
|
@ -16,10 +16,10 @@ import { LatencyAggregationType } from '../../../common/latency_aggregation_type
|
|||
import { rangeQuery, kqlQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
import { calculateThroughput } from '../helpers/calculate_throughput';
|
||||
import {
|
||||
getLatencyAggregation,
|
||||
|
@ -59,7 +59,7 @@ export async function getServiceTransactionGroups({
|
|||
const { apmEventClient, config } = setup;
|
||||
const bucketSize = config.ui.transactionGroupBucketSize;
|
||||
|
||||
const field = getTransactionDurationFieldForAggregatedTransactions(
|
||||
const field = getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
);
|
||||
|
||||
|
@ -68,9 +68,7 @@ export async function getServiceTransactionGroups({
|
|||
{
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
],
|
||||
},
|
||||
body: {
|
||||
|
@ -80,7 +78,7 @@ export async function getServiceTransactionGroups({
|
|||
filter: [
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
{ term: { [TRANSACTION_TYPE]: transactionType } },
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...rangeQuery(start, end),
|
||||
|
|
|
@ -12,9 +12,9 @@ import {
|
|||
import { rangeQuery } from '../../../../observability/server';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
|
||||
export async function getServiceTransactionTypes({
|
||||
setup,
|
||||
|
@ -33,18 +33,14 @@ export async function getServiceTransactionTypes({
|
|||
|
||||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
events: [getProcessorEventForTransactions(searchAggregatedTransactions)],
|
||||
},
|
||||
body: {
|
||||
size: 0,
|
||||
query: {
|
||||
bool: {
|
||||
filter: [
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
|
|
|
@ -19,10 +19,10 @@ import {
|
|||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { AgentName } from '../../../../typings/es_schemas/ui/fields/agent';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../../helpers/transactions';
|
||||
import { calculateThroughput } from '../../helpers/calculate_throughput';
|
||||
import {
|
||||
calculateFailedTransactionRate,
|
||||
|
@ -56,7 +56,7 @@ export async function getServiceTransactionStats({
|
|||
const metrics = {
|
||||
avg_duration: {
|
||||
avg: {
|
||||
field: getTransactionDurationFieldForAggregatedTransactions(
|
||||
field: getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
},
|
||||
|
@ -69,9 +69,7 @@ export async function getServiceTransactionStats({
|
|||
{
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
],
|
||||
},
|
||||
body: {
|
||||
|
@ -79,7 +77,7 @@ export async function getServiceTransactionStats({
|
|||
query: {
|
||||
bool: {
|
||||
filter: [
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...rangeQuery(start, end),
|
||||
|
|
|
@ -18,10 +18,10 @@ import {
|
|||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import { getOffsetInMs } from '../../../../common/utils/get_offset_in_ms';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../../helpers/transactions';
|
||||
import { calculateThroughput } from '../../helpers/calculate_throughput';
|
||||
import { getBucketSizeForAggregatedTransactions } from '../../helpers/get_bucket_size_for_aggregated_transactions';
|
||||
import { Setup } from '../../helpers/setup_request';
|
||||
|
@ -61,7 +61,7 @@ export async function getServiceTransactionDetailedStatistics({
|
|||
const metrics = {
|
||||
avg_duration: {
|
||||
avg: {
|
||||
field: getTransactionDurationFieldForAggregatedTransactions(
|
||||
field: getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
},
|
||||
|
@ -74,9 +74,7 @@ export async function getServiceTransactionDetailedStatistics({
|
|||
{
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
],
|
||||
},
|
||||
body: {
|
||||
|
@ -84,7 +82,7 @@ export async function getServiceTransactionDetailedStatistics({
|
|||
query: {
|
||||
bool: {
|
||||
filter: [
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...rangeQuery(startWithOffset, endWithOffset),
|
||||
|
|
|
@ -14,9 +14,9 @@ import {
|
|||
import { kqlQuery, rangeQuery } from '../../../../observability/server';
|
||||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import { calculateThroughputWithInterval } from '../helpers/calculate_throughput';
|
||||
|
||||
|
@ -52,9 +52,7 @@ export async function getThroughput({
|
|||
const filter: ESFilter[] = [
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
{ term: { [TRANSACTION_TYPE]: transactionType } },
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...getDocumentTypeFilterForTransactions(searchAggregatedTransactions),
|
||||
...rangeQuery(start, end),
|
||||
...environmentQuery(environment),
|
||||
...kqlQuery(kuery),
|
||||
|
@ -70,11 +68,7 @@ export async function getThroughput({
|
|||
|
||||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
events: [getProcessorEventForTransactions(searchAggregatedTransactions)],
|
||||
},
|
||||
body: {
|
||||
size: 0,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { Setup } from '../../helpers/setup_request';
|
|||
import { PromiseReturnType } from '../../../../../observability/typings/common';
|
||||
import { SERVICE_NAME } from '../../../../common/elasticsearch_fieldnames';
|
||||
import { ALL_OPTION_VALUE } from '../../../../common/agent_configuration/all_option';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../../helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../../helpers/transactions';
|
||||
|
||||
export type AgentConfigurationServicesAPIResponse = PromiseReturnType<
|
||||
typeof getServiceNames
|
||||
|
@ -30,9 +30,7 @@ export async function getServiceNames({
|
|||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.error,
|
||||
ProcessorEvent.metric,
|
||||
],
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import { ProcessorEvent } from '../../../common/processor_event';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../helpers/transactions';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
|
||||
export async function getSuggestions({
|
||||
|
@ -27,9 +27,7 @@ export async function getSuggestions({
|
|||
const response = await apmEventClient.termsEnum('get_suggestions', {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.error,
|
||||
ProcessorEvent.metric,
|
||||
],
|
||||
|
|
|
@ -22,9 +22,9 @@ import { environmentQuery } from '../../../common/utils/environment_query';
|
|||
import { joinByKey } from '../../../common/utils/join_by_key';
|
||||
import { withApmSpan } from '../../utils/with_apm_span';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import { getAverages, getCounts, getSums } from './get_transaction_group_stats';
|
||||
|
||||
|
@ -75,11 +75,7 @@ function getRequest(topTraceOptions: TopTraceOptions) {
|
|||
|
||||
return {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
events: [getProcessorEventForTransactions(searchAggregatedTransactions)],
|
||||
},
|
||||
body: {
|
||||
size: 0,
|
||||
|
@ -87,7 +83,7 @@ function getRequest(topTraceOptions: TopTraceOptions) {
|
|||
bool: {
|
||||
filter: [
|
||||
...transactionNameFilter,
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
...getDocumentTypeFilterForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...rangeQuery(start, end),
|
||||
|
|
|
@ -17,9 +17,9 @@ import { kqlQuery, rangeQuery } from '../../../../observability/server';
|
|||
import { environmentQuery } from '../../../common/utils/environment_query';
|
||||
import { Coordinate } from '../../../typings/timeseries';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
} from '../helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../helpers/transactions';
|
||||
import { getBucketSizeForAggregatedTransactions } from '../helpers/get_bucket_size_for_aggregated_transactions';
|
||||
import { Setup } from '../helpers/setup_request';
|
||||
import {
|
||||
|
@ -71,9 +71,7 @@ export async function getErrorRate({
|
|||
},
|
||||
...transactionNamefilter,
|
||||
...transactionTypefilter,
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...getDocumentTypeFilterForTransactions(searchAggregatedTransactions),
|
||||
...rangeQuery(start, end),
|
||||
...environmentQuery(environment),
|
||||
...kqlQuery(kuery),
|
||||
|
@ -83,11 +81,7 @@ export async function getErrorRate({
|
|||
|
||||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
events: [getProcessorEventForTransactions(searchAggregatedTransactions)],
|
||||
},
|
||||
body: {
|
||||
size: 0,
|
||||
|
|
|
@ -10,7 +10,7 @@ import { estypes } from '@elastic/elasticsearch';
|
|||
import { TRANSACTION_TYPE } from '../../../common/elasticsearch_fieldnames';
|
||||
import { arrayUnionToCallable } from '../../../common/utils/array_union_to_callable';
|
||||
import { TransactionGroupRequestBase, TransactionGroupSetup } from './fetcher';
|
||||
import { getTransactionDurationFieldForAggregatedTransactions } from '../helpers/aggregated_transactions';
|
||||
import { getTransactionDurationFieldForTransactions } from '../helpers/transactions';
|
||||
|
||||
interface MetricParams {
|
||||
request: TransactionGroupRequestBase;
|
||||
|
@ -46,7 +46,7 @@ export async function getAverages({
|
|||
const params = mergeRequestWithAggs(request, {
|
||||
avg: {
|
||||
avg: {
|
||||
field: getTransactionDurationFieldForAggregatedTransactions(
|
||||
field: getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
},
|
||||
|
@ -110,7 +110,7 @@ export async function getSums({
|
|||
const params = mergeRequestWithAggs(request, {
|
||||
sum: {
|
||||
sum: {
|
||||
field: getTransactionDurationFieldForAggregatedTransactions(
|
||||
field: getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
},
|
||||
|
|
|
@ -17,10 +17,10 @@ import { offsetPreviousPeriodCoordinates } from '../../../../common/utils/offset
|
|||
import { kqlQuery, rangeQuery } from '../../../../../observability/server';
|
||||
import { environmentQuery } from '../../../../common/utils/environment_query';
|
||||
import {
|
||||
getDocumentTypeFilterForAggregatedTransactions,
|
||||
getProcessorEventForAggregatedTransactions,
|
||||
getTransactionDurationFieldForAggregatedTransactions,
|
||||
} from '../../../lib/helpers/aggregated_transactions';
|
||||
getDocumentTypeFilterForTransactions,
|
||||
getTransactionDurationFieldForTransactions,
|
||||
getProcessorEventForTransactions,
|
||||
} from '../../../lib/helpers/transactions';
|
||||
import { Setup } from '../../../lib/helpers/setup_request';
|
||||
import { getBucketSizeForAggregatedTransactions } from '../../helpers/get_bucket_size_for_aggregated_transactions';
|
||||
import {
|
||||
|
@ -63,9 +63,7 @@ function searchLatency({
|
|||
|
||||
const filter: ESFilter[] = [
|
||||
{ term: { [SERVICE_NAME]: serviceName } },
|
||||
...getDocumentTypeFilterForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
...getDocumentTypeFilterForTransactions(searchAggregatedTransactions),
|
||||
...rangeQuery(start, end),
|
||||
...environmentQuery(environment),
|
||||
...kqlQuery(kuery),
|
||||
|
@ -79,18 +77,13 @@ function searchLatency({
|
|||
filter.push({ term: { [TRANSACTION_TYPE]: transactionType } });
|
||||
}
|
||||
|
||||
const transactionDurationField =
|
||||
getTransactionDurationFieldForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
);
|
||||
const transactionDurationField = getTransactionDurationFieldForTransactions(
|
||||
searchAggregatedTransactions
|
||||
);
|
||||
|
||||
const params = {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
],
|
||||
events: [getProcessorEventForTransactions(searchAggregatedTransactions)],
|
||||
},
|
||||
body: {
|
||||
size: 0,
|
||||
|
|
|
@ -9,7 +9,7 @@ import { Setup } from '../../server/lib/helpers/setup_request';
|
|||
import { SERVICE_NAME } from '../../common/elasticsearch_fieldnames';
|
||||
import { rangeQuery, kqlQuery } from '../../../observability/server';
|
||||
import { ProcessorEvent } from '../../common/processor_event';
|
||||
import { getProcessorEventForAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
import { getProcessorEventForTransactions } from '../lib/helpers/transactions';
|
||||
|
||||
export function getServicesProjection({
|
||||
kuery,
|
||||
|
@ -27,9 +27,7 @@ export function getServicesProjection({
|
|||
return {
|
||||
apm: {
|
||||
events: [
|
||||
getProcessorEventForAggregatedTransactions(
|
||||
searchAggregatedTransactions
|
||||
),
|
||||
getProcessorEventForTransactions(searchAggregatedTransactions),
|
||||
ProcessorEvent.metric as const,
|
||||
ProcessorEvent.error as const,
|
||||
],
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
import * as t from 'io-ts';
|
||||
import { maxSuggestions } from '../../../observability/common';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/transactions';
|
||||
import { setupRequest } from '../lib/helpers/setup_request';
|
||||
import { getEnvironments } from '../lib/environments/get_environments';
|
||||
import { rangeRt } from './default_api_types';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
*/
|
||||
|
||||
import * as t from 'io-ts';
|
||||
import { getIsUsingTransactionEvents } from '../lib/helpers/aggregated_transactions/get_is_using_transaction_events';
|
||||
import { getIsUsingTransactionEvents } from '../lib/helpers/transactions/get_is_using_transaction_events';
|
||||
import { setupRequest } from '../lib/helpers/setup_request';
|
||||
import { createApmServerRoute } from './create_apm_server_route';
|
||||
import { createApmServerRouteRepository } from './create_apm_server_route_repository';
|
||||
|
|
|
@ -12,7 +12,7 @@ import { getServiceCount } from '../lib/observability_overview/get_service_count
|
|||
import { getTransactionsPerMinute } from '../lib/observability_overview/get_transactions_per_minute';
|
||||
import { getHasData } from '../lib/observability_overview/has_data';
|
||||
import { rangeRt } from './default_api_types';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/transactions';
|
||||
import { withApmSpan } from '../utils/with_apm_span';
|
||||
import { createApmServerRouteRepository } from './create_apm_server_route_repository';
|
||||
import { createApmServerRoute } from './create_apm_server_route';
|
||||
|
|
|
@ -10,7 +10,7 @@ import * as t from 'io-ts';
|
|||
import { isActivePlatinumLicense } from '../../common/license_check';
|
||||
import { invalidLicenseMessage } from '../../common/service_map';
|
||||
import { notifyFeatureUsage } from '../feature';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/transactions';
|
||||
import { setupRequest } from '../lib/helpers/setup_request';
|
||||
import { getServiceMap } from '../lib/service_map/get_service_map';
|
||||
import { getServiceMapBackendNodeInfo } from '../lib/service_map/get_service_map_backend_node_info';
|
||||
|
|
|
@ -11,7 +11,7 @@ import * as t from 'io-ts';
|
|||
import { uniq } from 'lodash';
|
||||
import { latencyAggregationTypeRt } from '../../common/latency_aggregation_types';
|
||||
import { ProfilingValueType } from '../../common/profiling';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/transactions';
|
||||
import { setupRequest } from '../lib/helpers/setup_request';
|
||||
import { getServiceAnnotations } from '../lib/services/annotations';
|
||||
import { getServices } from '../lib/services/get_services';
|
||||
|
|
|
@ -24,7 +24,7 @@ import {
|
|||
serviceRt,
|
||||
agentConfigurationIntakeRt,
|
||||
} from '../../../common/agent_configuration/runtime_types/agent_configuration_intake_rt';
|
||||
import { getSearchAggregatedTransactions } from '../../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../../lib/helpers/transactions';
|
||||
import { createApmServerRouteRepository } from '../create_apm_server_route_repository';
|
||||
import { syncAgentConfigsToApmPackagePolicies } from '../../lib/fleet/sync_agent_configs_to_apm_package_policies';
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ import { createAnomalyDetectionJobs } from '../../lib/anomaly_detection/create_a
|
|||
import { setupRequest } from '../../lib/helpers/setup_request';
|
||||
import { getAllEnvironments } from '../../lib/environments/get_all_environments';
|
||||
import { hasLegacyJobs } from '../../lib/anomaly_detection/has_legacy_jobs';
|
||||
import { getSearchAggregatedTransactions } from '../../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../../lib/helpers/transactions';
|
||||
import { notifyFeatureUsage } from '../../feature';
|
||||
import { withApmSpan } from '../../utils/with_apm_span';
|
||||
import { createApmServerRouteRepository } from '../create_apm_server_route_repository';
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
import * as t from 'io-ts';
|
||||
import { maxSuggestions } from '../../../observability/common';
|
||||
import { getSuggestions } from '../lib/suggestions/get_suggestions';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/transactions';
|
||||
import { setupRequest } from '../lib/helpers/setup_request';
|
||||
import { createApmServerRoute } from './create_apm_server_route';
|
||||
import { createApmServerRouteRepository } from './create_apm_server_route_repository';
|
||||
|
|
|
@ -11,7 +11,7 @@ import { getTraceItems } from '../lib/traces/get_trace_items';
|
|||
import { getTopTransactionGroupList } from '../lib/transaction_groups';
|
||||
import { createApmServerRoute } from './create_apm_server_route';
|
||||
import { environmentRt, kueryRt, rangeRt } from './default_api_types';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/transactions';
|
||||
import { getRootTransactionByTraceId } from '../lib/transactions/get_transaction_by_trace';
|
||||
import { createApmServerRouteRepository } from './create_apm_server_route_repository';
|
||||
import { getTransaction } from '../lib/transactions/get_transaction';
|
||||
|
|
|
@ -11,7 +11,7 @@ import {
|
|||
LatencyAggregationType,
|
||||
latencyAggregationTypeRt,
|
||||
} from '../../common/latency_aggregation_types';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/aggregated_transactions';
|
||||
import { getSearchAggregatedTransactions } from '../lib/helpers/transactions';
|
||||
import { setupRequest } from '../lib/helpers/setup_request';
|
||||
import { getServiceTransactionGroups } from '../lib/services/get_service_transaction_groups';
|
||||
import { getServiceTransactionGroupDetailedStatisticsPeriods } from '../lib/services/get_service_transaction_group_detailed_statistics';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue