File tree 5 files changed +4
-246
lines changed
5 files changed +4
-246
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import QueryInsights from '../QueryInsights/QueryInsights';
12
12
import Configuration from '../Configuration/Configuration' ;
13
13
import QueryDetails from '../QueryDetails/QueryDetails' ;
14
14
import { SearchQueryRecord } from '../../../types/types' ;
15
- import { removeQueryGroups } from '../../utils/utils' ;
16
15
17
16
export const QUERY_INSIGHTS = '/queryInsights' ;
18
17
export const CONFIGURATION = '/configuration' ;
@@ -159,7 +158,7 @@ const TopNQueries = ({
159
158
const noDuplicates : SearchQueryRecord [ ] = Array . from (
160
159
new Set ( newQueries . map ( ( item ) => JSON . stringify ( item ) ) )
161
160
) . map ( ( item ) => JSON . parse ( item ) ) ;
162
- setQueries ( removeQueryGroups ( noDuplicates ) ) ;
161
+ setQueries ( noDuplicates ) ;
163
162
} catch ( error ) {
164
163
console . error ( 'Error retrieving queries:' , error ) ;
165
164
} finally {
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3
3
* SPDX-License-Identifier: Apache-2.0
4
4
*/
5
5
6
+ import { ISearchSource } from 'src/plugins/data/public' ;
7
+
6
8
export interface SearchQueryRecord {
7
9
timestamp : number ;
8
10
measurements : {
@@ -12,13 +14,12 @@ export interface SearchQueryRecord {
12
14
} ;
13
15
total_shards : number ;
14
16
node_id : string ;
15
- source : Record < string , any > ;
17
+ source : ISearchSource ;
16
18
labels : Record < string , string > ;
17
19
search_type : string ;
18
20
indices : string [ ] ;
19
21
phase_latency_map : PhaseLatencyMap ;
20
22
task_resource_usages : Task [ ] ;
21
- query_hashcode : string ;
22
23
}
23
24
24
25
export interface Measurement {
You can’t perform that action at this time.
0 commit comments