-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 4.4-1.2-wzd] [PR] Add agent synchronization statistics (#4442)
[PR] Add agent synchronization statistics (#3874) * Added Synced stats and pending agents * Added mocked column synced * Changed pending position and color * add agent-synced.tsx * change date:data * Update GET /agents/summary/status response handler * add changelog * Deprecated is_sync endpoint * Created synced constants and updated endpoint definitions Co-authored-by: Ian Yenien Serrano <63758389+yenienserrano@users.noreply.github.com> Co-authored-by: yenienserrano <ian.serrano@wazuh.com> Co-authored-by: Álex <alejandro.ruiz.becerra@wazuh.com> (cherry picked from commit 4457027) Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
- Loading branch information
1 parent
0a2f940
commit 190d2e4
Showing
14 changed files
with
143 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import { EuiHealth } from "@elastic/eui"; | ||
import { AGENT_SYNCED_STATUS } from '../../../common/constants'; | ||
|
||
interface SyncedProps { | ||
synced: string; | ||
} | ||
|
||
export const AgentSynced = ({ synced }: SyncedProps) => { | ||
const color = { | ||
[AGENT_SYNCED_STATUS.SYNCED]: 'success', | ||
[AGENT_SYNCED_STATUS.NOT_SYNCED]: 'subdued', | ||
}[synced]; | ||
|
||
return ( | ||
<EuiHealth color={color}> | ||
<span className={'hide-agent-status'}> | ||
{synced} | ||
</span> | ||
</EuiHealth> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.