mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Synthetics]Sort monitor list by frequency column (#133713)
This commit is contained in:
parent
b05f8c1240
commit
b041f04893
4 changed files with 10 additions and 2 deletions
|
@ -90,7 +90,7 @@ export function useInlineErrors({
|
|||
},
|
||||
},
|
||||
collapse: { field: 'config_id' },
|
||||
sort: [{ [sortFieldMap[sortField]]: sortOrder }],
|
||||
sort: sortFieldMap[sortField] ? [{ [sortFieldMap[sortField]]: sortOrder }] : undefined,
|
||||
},
|
||||
},
|
||||
[syntheticsMonitors, lastRefresh, doFetch, sortField, sortOrder],
|
||||
|
|
|
@ -118,6 +118,7 @@ export function getMonitorListColumns({
|
|||
{
|
||||
align: 'left' as const,
|
||||
field: ConfigKey.SCHEDULE,
|
||||
sortable: true,
|
||||
name: i18n.translate('xpack.synthetics.management.monitorList.frequency', {
|
||||
defaultMessage: 'Frequency',
|
||||
}),
|
||||
|
|
|
@ -72,6 +72,13 @@ export const syntheticsMonitor: SavedObjectsType = {
|
|||
tags: {
|
||||
type: 'keyword',
|
||||
},
|
||||
schedule: {
|
||||
properties: {
|
||||
number: {
|
||||
type: 'integer',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
management: {
|
||||
|
|
|
@ -92,7 +92,7 @@ export const getAllSyntheticsMonitorRoute: UMRestApiRouteFactory = () => ({
|
|||
type: syntheticsMonitorType,
|
||||
perPage,
|
||||
page,
|
||||
sortField,
|
||||
sortField: sortField === 'schedule.keyword' ? 'schedule.number' : sortField,
|
||||
sortOrder,
|
||||
searchFields: ['name', 'tags.text', 'locations.id.text', 'urls'],
|
||||
search: query ? `${query}*` : undefined,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue