github.com/arieschain/arieschain@v0.0.0-20191023063405-37c074544356/dashboard/assets/types/content.jsx (about) 1 // @flow 2 3 4 export type Content = { 5 general: General, 6 home: Home, 7 chain: Chain, 8 txpool: TxPool, 9 network: Network, 10 system: System, 11 logs: Logs, 12 }; 13 14 export type ChartEntries = Array<ChartEntry>; 15 16 export type ChartEntry = { 17 time: Date, 18 value: number, 19 }; 20 21 export type General = { 22 version: ?string, 23 commit: ?string, 24 }; 25 26 export type Home = { 27 /* TODO (kurkomisi) */ 28 }; 29 30 export type Chain = { 31 /* TODO (kurkomisi) */ 32 }; 33 34 export type TxPool = { 35 /* TODO (kurkomisi) */ 36 }; 37 38 export type Network = { 39 /* TODO (kurkomisi) */ 40 }; 41 42 export type System = { 43 activeMemory: ChartEntries, 44 virtualMemory: ChartEntries, 45 networkIngress: ChartEntries, 46 networkEgress: ChartEntries, 47 processCPU: ChartEntries, 48 systemCPU: ChartEntries, 49 diskRead: ChartEntries, 50 diskWrite: ChartEntries, 51 }; 52 53 export type Logs = { 54 log: Array<string>, 55 };