Skip to content

Commit

Permalink
update monitor details case
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed Jun 12, 2020
1 parent ce34d8b commit 78c7742
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 78c7742

Please sign in to comment.