+
+
{
{ }}
- tooltip={results?.hits?.total && results?.hits?.total > MAX_ENTRIES_PER_QUERY ? {
- ariaLabel: 'Warning',
- content: `The query results has exceeded the limit of 10,000 hits. To provide a better experience the table only shows the first ${formatNumWithCommas(MAX_ENTRIES_PER_QUERY)} hits.`,
- iconType: 'alert',
- position: 'top'
- } : undefined}
+ onResetQuery={() => {}}
+ tooltip={
+ results?.hits?.total &&
+ results?.hits?.total > MAX_ENTRIES_PER_QUERY
+ ? {
+ ariaLabel: 'Warning',
+ content: `The query results has exceeded the limit of 10,000 hits. To provide a better experience the table only shows the first ${formatNumWithCommas(
+ MAX_ENTRIES_PER_QUERY,
+ )} hits.`,
+ iconType: 'alert',
+ position: 'top',
+ }
+ : undefined
+ }
/>
+ className='euiDataGrid__controlBtn'
+ onClick={onClickExportResults}
+ >
Export Formated
>
- )
+ ),
}}
/>
>
) : null}
{inspectedHit && (
-
setInspectedHit(undefined)} size="m">
+ setInspectedHit(undefined)} size='m'>
Document Details
-
+
-
+
@@ -232,8 +289,8 @@ const WazuhDiscover = (props: WazuhDiscoverProps) => {
)}
>
-
+
);
};
-export default WazuhDiscover;
\ No newline at end of file
+export const WazuhDiscover = withErrorBoundary(WazuhDiscoverComponent);
diff --git a/plugins/main/public/components/overview/vulnerabilities/events/vulnerabilities-columns.tsx b/plugins/main/public/components/overview/vulnerabilities/events/vulnerabilities-columns.tsx
new file mode 100644
index 0000000000..0d5568edaa
--- /dev/null
+++ b/plugins/main/public/components/overview/vulnerabilities/events/vulnerabilities-columns.tsx
@@ -0,0 +1,19 @@
+import { tDataGridColumn } from '../../../common/data-grid';
+
+export const vulnerabilitiesColumns: tDataGridColumn[] = [
+ {
+ id: 'agent.name',
+ },
+ {
+ id: 'data.vulnerability.package.name',
+ },
+ {
+ id: 'data.vulnerability.cve',
+ },
+ {
+ id: 'data.vulnerability.severity',
+ },
+ {
+ id: 'data.vulnerability.status',
+ },
+];