Skip to content

Commit

Permalink
[Uptime] Fixed metric query broken because of missing mapping (#68999) (
Browse files Browse the repository at this point in the history
#69091)

Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>

Co-authored-by: Andrew Cholakian <andrew@andrewvc.com>
  • Loading branch information
shahzad31 and andrewvc authored Jun 13, 2020
1 parent 6467010 commit a975bae
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ describe('getLatestMonitor', () => {
'monitor',
'observer',
'@timestamp',
'tls.server.x509.not_after',
'tls.server.x509.not_before',
'tls.certificate_not_valid_after',
'tls.certificate_not_valid_before',
],
sort: {
'@timestamp': { order: 'desc' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ export const getLatestMonitor: UMElasticsearchQueryFn<GetLatestMonitorParams, Pi
'monitor',
'observer',
'@timestamp',
'tls.server.x509.not_after',
'tls.server.x509.not_before',
'tls.certificate_not_valid_after',
'tls.certificate_not_valid_before',
],
sort: {
'@timestamp': { order: 'desc' },
Expand All @@ -68,6 +68,9 @@ export const getLatestMonitor: UMElasticsearchQueryFn<GetLatestMonitorParams, Pi
...ping,
docId,
timestamp: ping['@timestamp'],
tls: { not_after: tls?.server?.x509?.not_after, not_before: tls?.server?.x509?.not_before },
tls: {
not_after: tls?.certificate_not_valid_after,
not_before: tls?.certificate_not_valid_before,
},
};
};

0 comments on commit a975bae

Please sign in to comment.