import React, {Component} from 'react'; import './PcapPane.scss'; import Table from "react-bootstrap/Table"; import backend from "../../backend"; import {formatSize, timestampToTime2} from "../../utils"; import {Container, Row, Col, Form} from "react-bootstrap"; import StringField from "../fields/StringField"; class PcapPane extends Component { constructor(props) { super(props); this.state = { sessions: [], }; this.loadSessions = this.loadSessions.bind(this); } componentDidMount() { this.loadSessions(); } loadSessions() { backend.get("/api/pcap/sessions").then(res => this.setState({sessions: res})); } render() { let sessions = this.state.sessions.map(s =>
id | started_at | duration | size | processed_packets | invalid_packets | packets_per_service | actions |
---|