mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
[Security Solution][Endpoint][Response Actions] Show response console commands on actions log UI (#140384)
* Show response console commands on actions log UI refs https://github.com/elastic/kibana/pull/134520/files#diff-8ab5fe0c53989a885ddae94fc256be8033f0252684ec7539cf1e45660e943af8R62 * refactor method to use if chain review changes (joey)
This commit is contained in:
parent
b2606fa05e
commit
e792e17dbd
4 changed files with 19 additions and 10 deletions
|
@ -44,8 +44,18 @@ const emptyValue = getEmptyValue();
|
|||
|
||||
const getCommand = (
|
||||
command: ActionDetails['command']
|
||||
): Exclude<ActionDetails['command'], 'unisolate'> | 'release' =>
|
||||
command === 'unisolate' ? 'release' : command;
|
||||
):
|
||||
| Exclude<ActionDetails['command'], 'unisolate' | 'running-processes'>
|
||||
| 'release'
|
||||
| 'processes' => {
|
||||
if (command === 'unisolate') {
|
||||
return 'release';
|
||||
} else if (command === 'running-processes') {
|
||||
return 'processes';
|
||||
} else {
|
||||
return command;
|
||||
}
|
||||
};
|
||||
|
||||
// Truncated usernames
|
||||
const StyledFacetButton = euiStyled(EuiFacetButton)`
|
||||
|
@ -276,11 +286,13 @@ export const ResponseActionsList = memo<
|
|||
const command = getCommand(_command);
|
||||
return (
|
||||
<EuiToolTip content={command} anchorClassName="eui-textTruncate">
|
||||
<FormattedMessage
|
||||
id="xpack.securitySolution.responseActionsList.list.item.command"
|
||||
defaultMessage="{command}"
|
||||
values={{ command }}
|
||||
/>
|
||||
<EuiText
|
||||
size="s"
|
||||
className="eui-textTruncate eui-fullWidth"
|
||||
data-test-subj={getTestId('column-command')}
|
||||
>
|
||||
{command}
|
||||
</EuiText>
|
||||
</EuiToolTip>
|
||||
);
|
||||
},
|
||||
|
|
|
@ -25701,7 +25701,6 @@
|
|||
"xpack.securitySolution.responder.header.lastSeen": "Vu en dernier le {date}",
|
||||
"xpack.securitySolution.responder.hostOffline.callout.body": "L'hôte {name} est hors connexion, donc ses réponses peuvent avoir du retard. Les commandes en attente seront exécutées quand l'hôte se reconnectera.",
|
||||
"xpack.securitySolution.responseActionsList.flyout.title": "Log d'action : {hostname}",
|
||||
"xpack.securitySolution.responseActionsList.list.item.command": "{command}",
|
||||
"xpack.securitySolution.responseActionsList.list.item.hasExpired": "Échec de {command} : action expirée",
|
||||
"xpack.securitySolution.responseActionsList.list.item.hasFailed": "Échec de {command}",
|
||||
"xpack.securitySolution.responseActionsList.list.item.isPending": "{command} est en attente",
|
||||
|
|
|
@ -25678,7 +25678,6 @@
|
|||
"xpack.securitySolution.responder.header.lastSeen": "前回表示日時 {date}",
|
||||
"xpack.securitySolution.responder.hostOffline.callout.body": "ホスト{name}はオフラインであるため、応答が遅延する可能性があります。保留中のコマンドは、ホストが再接続されたときに実行されます。",
|
||||
"xpack.securitySolution.responseActionsList.flyout.title": "アクションログ:{hostname}",
|
||||
"xpack.securitySolution.responseActionsList.list.item.command": "{command}",
|
||||
"xpack.securitySolution.responseActionsList.list.item.hasExpired": "{command}が失敗しました:アクションの有効期限が切れました",
|
||||
"xpack.securitySolution.responseActionsList.list.item.hasFailed": "{command}が失敗しました",
|
||||
"xpack.securitySolution.responseActionsList.list.item.isPending": "{command}は保留中です",
|
||||
|
|
|
@ -25709,7 +25709,6 @@
|
|||
"xpack.securitySolution.responder.header.lastSeen": "最后看到时间 {date}",
|
||||
"xpack.securitySolution.responder.hostOffline.callout.body": "主机 {name} 脱机,因此其响应可能会延迟。主机重新建立连接后将执行待处理的命令。",
|
||||
"xpack.securitySolution.responseActionsList.flyout.title": "操作日志:{hostname}",
|
||||
"xpack.securitySolution.responseActionsList.list.item.command": "{command}",
|
||||
"xpack.securitySolution.responseActionsList.list.item.hasExpired": "{command} 失败:操作已过期",
|
||||
"xpack.securitySolution.responseActionsList.list.item.hasFailed": "{command} 失败",
|
||||
"xpack.securitySolution.responseActionsList.list.item.isPending": "{command} 待处理",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue