Safe Haskell | None |
---|
procdiskstats
data collector.
Synopsis
- defaultFile :: FilePath
- defaultCharNum :: Int
- dcName :: String
- dcVersion :: DCVersion
- dcFormatVersion :: Int
- dcCategory :: Maybe DCCategory
- dcKind :: DCKind
- dcReport :: IO DCReport
- options :: IO [OptType]
- arguments :: [ArgCompletion]
- buildJsonReport :: FilePath -> IO JSValue
- buildDCReport :: FilePath -> IO DCReport
- main :: Options -> [String] -> IO ()
Documentation
defaultFile :: FilePath Source #
The default path of the diskstats status file. It is hardcoded because it is not likely to change.
defaultCharNum :: Int Source #
The default setting for the maximum amount of not parsed character to print in case of error. It is set to use most of the screen estate on a standard 80x25 terminal. TODO: add the possibility to set this with a command line parameter.
dcFormatVersion :: Int Source #
The version number for the data format of this data collector.
dcCategory :: Maybe DCCategory Source #
The category of this data collector.
dcReport :: IO DCReport Source #
The data exported by the data collector, taken from the default location.
Command line options
arguments :: [ArgCompletion] Source #
The list of arguments supported by the program.
buildJsonReport :: FilePath -> IO JSValue Source #
This function computes the JSON representation of the diskstats status.
buildDCReport :: FilePath -> IO DCReport Source #
This function computes the DCReport for the diskstats status.