INNER CODE UNIT · JavaScript

AlertRelatedData

StamusNetworks/scirius · ui/app/components/AlertRelatedData/index.js:12

const AlertRelatedData = ({ type, data }) => {
  const tableColumns = columns[type] ?? [
    { title: 'Timestamp', dataIndex: ['rawJson', '@timestamp'], render: val => moment(val).format(constants.DATE_TIME_FORMAT) },
    { title: 'Event Type', dataIndex: ['rawJson', 'event_type'] },
  ];

  return (
    <React.Fragment key="json-related">
      {data?.length === 0 && <strong>No related events detected</strong>}
      {data?.length > 0 && (
        <Style.Table
          columns={tableColumns}
          dataSource={data}
          expandable={{
            expandRowByClick: true,
            expandedRowRender: record => (
              <ReactJson
                name={false}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…