github.com/sberex/go-sberex@v1.8.2-0.20181113200658-ed96ac38f7d7/dashboard/assets/types/content.jsx (about)

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