Skip to content

Commit

Permalink
[Profiling UI, 9.0.0] Replace aggregation_field with `aggregation_f…
Browse files Browse the repository at this point in the history
…ields` array (elastic#205861)

### Summary

Replace `aggregation_field` with `aggregation_fields` to allow removal
in ES v9.0.0
  • Loading branch information
miloszmarcinkowski authored and crespocarlos committed Jan 8, 2025
1 parent e7310a4 commit bd4df96
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export function registerTopNFunctionsAPMTransactionsRoute({
],
},
},
aggregationField: 'transaction.name',
aggregationFields: ['transaction.name'],
indices: transactionIndices.split(','),
stacktraceIdsField: 'transaction.profiler_stack_trace_ids',
limit: 1000,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function registerTopNFunctionsSearchRoute({
core,
esClient,
query,
aggregationField: 'service.name',
aggregationFields: ['service.name'],
totalSeconds,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export interface ProfilingESClient {
sampleSize?: number;
indices?: string[];
stacktraceIdsField?: string;
aggregationField?: AggregationField;
aggregationFields?: AggregationField[];
co2PerKWH?: number;
datacenterPUE?: number;
pervCPUWattX86?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface FetchFunctionsParams {
indices?: string[];
stacktraceIdsField?: string;
query: QueryDslQueryContainer;
aggregationField?: AggregationField;
aggregationFields?: AggregationField[];
limit?: number;
totalSeconds: number;
}
Expand All @@ -41,7 +41,7 @@ export function createFetchESFunctions({ createProfilingEsClient }: RegisterServ
indices,
stacktraceIdsField,
query,
aggregationField,
aggregationFields,
limit,
totalSeconds,
}: FetchFunctionsParams) => {
Expand Down Expand Up @@ -72,7 +72,7 @@ export function createFetchESFunctions({ createProfilingEsClient }: RegisterServ
query,
indices,
stacktraceIdsField,
aggregationField,
aggregationFields,
co2PerKWH,
datacenterPUE,
pervCPUWattX86,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ export function createProfilingEsClient({
},
topNFunctions({
query,
aggregationField,
aggregationFields,
indices,
stacktraceIdsField,
co2PerKWH,
Expand All @@ -180,7 +180,7 @@ export function createProfilingEsClient({
limit,
indices,
stacktrace_ids_field: stacktraceIdsField,
aggregation_field: aggregationField,
aggregation_fields: aggregationFields,
co2_per_kwh: co2PerKWH,
per_core_watt_x86: pervCPUWattX86,
per_core_watt_arm64: pervCPUWattArm64,
Expand Down

0 comments on commit bd4df96

Please sign in to comment.