[Uptime] Fix 7.x references to tcp.port (#29132)

This field has been renamed to url.port in heartbeat 7+, update all fields accordingly.
This commit is contained in:
Andrew Cholakian 2019-01-22 17:54:45 -08:00 committed by Justin Kambic
parent 690f4714cb
commit 5098668cb6
3 changed files with 4 additions and 4 deletions

View file

@ -80,7 +80,7 @@ export const FilterBar = ({ dateRangeEnd, dateRangeStart, updateQuery }: Props)
},
{
type: 'field_value_selection',
field: 'tcp.port',
field: 'url.port',
name: i18n.translate('xpack.uptime.filterBar.options.portLabel', {
defaultMessage: 'Port',
}),

View file

@ -12,6 +12,6 @@ export const filterBarSearchSchema = {
'monitor.ip': { type: 'string' },
'monitor.host': { type: 'string' },
'monitor.scheme': { type: 'string' },
'tcp.port': { type: 'number' },
'url.port': { type: 'number' },
},
};

View file

@ -250,7 +250,7 @@ export class ElasticsearchMonitorsAdapter implements UMMonitorsAdapter {
{
port: {
terms: {
field: 'tcp.port',
field: 'url.port',
},
},
},
@ -340,7 +340,7 @@ export class ElasticsearchMonitorsAdapter implements UMMonitorsAdapter {
},
port: {
terms: {
field: 'tcp.port',
field: 'url.port',
},
},
scheme: {