import React, {Component} from 'react'; import './Connections.scss'; import axios from 'axios' import Connection from "../components/Connection"; import {Link} from "react-router-dom"; import Table from 'react-bootstrap/Table'; class Connections extends Component { constructor(props) { super(props); this.state = { connections: [], }; } componentDidMount() { axios.get("/api/connections").then(res => this.setState({connections: res.data})) } render() { let connection = { "id": "5dd95ff0fe7ae01ae7f419c2", "ip_src": "10.62.82.1", "ip_dst": "10.62.82.2", "port_src": 59113, "port_dst": 23179, "started_at": "2019-11-23T16:36:00.1Z", "closed_at": "2019-11-23T16:36:00.971Z", "client_bytes": 331, "server_bytes": 85, "client_documents": 1, "server_documents": 1, "processed_at": "2020-04-21T17:10:29.532Z", "matched_rules": [], "hidden": false, "marked": true, "comment": "", "service": { "port": 23179, "name": "kaboom", "color": "#3C6D3C", "notes": "wdddoddddddw" } } return (
service | srcip | dstip | srcport | dstport | duration | up | down | actions |
---|---|---|---|---|---|---|---|---|
1 | Mark | Otto | @mdo | |||||
2 | Jacob | Thornton | @fat | |||||
3 | Larry the Bird |