Update agent status labels and colors (#99314)
fixes elastic/kibana/issues/97457
This commit is contained in:
parent
2eb700be92
commit
7f57eb39a6
|
@ -35,7 +35,7 @@ export const AgentsSummary = memo<AgentsSummaryProps>((props) => {
|
|||
title: i18n.translate(
|
||||
'xpack.securitySolution.endpoint.policyDetails.agentsSummary.totalTitle',
|
||||
{
|
||||
defaultMessage: 'Endpoints',
|
||||
defaultMessage: 'Agents',
|
||||
}
|
||||
),
|
||||
health: '',
|
||||
|
@ -45,11 +45,21 @@ export const AgentsSummary = memo<AgentsSummaryProps>((props) => {
|
|||
title: i18n.translate(
|
||||
'xpack.securitySolution.endpoint.policyDetails.agentsSummary.onlineTitle',
|
||||
{
|
||||
defaultMessage: 'Online',
|
||||
defaultMessage: 'Healthy',
|
||||
}
|
||||
),
|
||||
health: 'success',
|
||||
},
|
||||
{
|
||||
key: 'error',
|
||||
title: i18n.translate(
|
||||
'xpack.securitySolution.endpoint.policyDetails.agentsSummary.errorTitle',
|
||||
{
|
||||
defaultMessage: 'Unhealthy',
|
||||
}
|
||||
),
|
||||
health: 'warning',
|
||||
},
|
||||
{
|
||||
key: 'offline',
|
||||
title: i18n.translate(
|
||||
|
@ -58,17 +68,7 @@ export const AgentsSummary = memo<AgentsSummaryProps>((props) => {
|
|||
defaultMessage: 'Offline',
|
||||
}
|
||||
),
|
||||
health: 'warning',
|
||||
},
|
||||
{
|
||||
key: 'error',
|
||||
title: i18n.translate(
|
||||
'xpack.securitySolution.endpoint.policyDetails.agentsSummary.errorTitle',
|
||||
{
|
||||
defaultMessage: 'Error',
|
||||
}
|
||||
),
|
||||
health: 'danger',
|
||||
health: 'subdued',
|
||||
},
|
||||
];
|
||||
}, []);
|
||||
|
|
|
@ -161,7 +161,7 @@ describe('Policy Details', () => {
|
|||
|
||||
const agentsSummary = policyView.find('EuiFlexGroup[data-test-subj="policyAgentsSummary"]');
|
||||
expect(agentsSummary).toHaveLength(1);
|
||||
expect(agentsSummary.text()).toBe('Endpoints5Online3Offline1Error1');
|
||||
expect(agentsSummary.text()).toBe('Agents5Healthy3Unhealthy1Offline1');
|
||||
});
|
||||
it('should display cancel button', async () => {
|
||||
await asyncActions;
|
||||
|
|
Loading…
Reference in a new issue