mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[Security Solution] fix endpoint metadata API list sorting (#154638)
This commit is contained in:
parent
2e75a02032
commit
979cb7350e
1 changed files with 5 additions and 1 deletions
|
@ -55,6 +55,10 @@ export const MetadataSortMethod: estypes.SortCombinations[] = [
|
|||
},
|
||||
];
|
||||
|
||||
const UnitedMetadataSortMethod: estypes.SortCombinations[] = [
|
||||
{ 'united.agent.enrolled_at': { order: 'desc', unmapped_type: 'date' } },
|
||||
];
|
||||
|
||||
export function getESQueryHostMetadataByID(agentID: string): estypes.SearchRequest {
|
||||
return {
|
||||
body: {
|
||||
|
@ -206,7 +210,7 @@ export async function buildUnitedIndexQuery(
|
|||
body: {
|
||||
query,
|
||||
track_total_hits: true,
|
||||
sort: MetadataSortMethod,
|
||||
sort: UnitedMetadataSortMethod,
|
||||
fields,
|
||||
runtime_mappings: runtimeMappings,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue