github.com/vantum/vantum@v0.0.0-20180815184342-fe37d5f7a990/dashboard/assets/types/content.jsx (about) 1 // @flow 2 3 // Copyright 2017 The go-ethereum Authors 4 // This file is part of the go-ethereum library. 5 // 6 // The go-ethereum library is free software: you can redistribute it and/or modify 7 // it under the terms of the GNU Lesser General Public License as published by 8 // the Free Software Foundation, either version 3 of the License, or 9 // (at your option) any later version. 10 // 11 // The go-ethereum library is distributed in the hope that it will be useful, 12 // but WITHOUT ANY WARRANTY; without even the implied warranty of 13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 // GNU Lesser General Public License for more details. 15 // 16 // You should have received a copy of the GNU Lesser General Public License 17 // along with the go-ethereum library. If not, see <http://www.gnu.org/licenses/>. 18 19 export type Content = { 20 general: General, 21 home: Home, 22 chain: Chain, 23 txpool: TxPool, 24 network: Network, 25 system: System, 26 logs: Logs, 27 }; 28 29 export type General = { 30 version: ?string, 31 commit: ?string, 32 }; 33 34 export type Home = { 35 activeMemory: ChartEntries, 36 virtualMemory: ChartEntries, 37 networkIngress: ChartEntries, 38 networkEgress: ChartEntries, 39 processCPU: ChartEntries, 40 systemCPU: ChartEntries, 41 diskRead: ChartEntries, 42 diskWrite: ChartEntries, 43 }; 44 45 export type ChartEntries = Array<ChartEntry>; 46 47 export type ChartEntry = { 48 time: Date, 49 value: number, 50 }; 51 52 export type Chain = { 53 /* TODO (kurkomisi) */ 54 }; 55 56 export type TxPool = { 57 /* TODO (kurkomisi) */ 58 }; 59 60 export type Network = { 61 /* TODO (kurkomisi) */ 62 }; 63 64 export type System = { 65 /* TODO (kurkomisi) */ 66 }; 67 68 export type Logs = { 69 log: Array<string>, 70 };