Safe Haskell | None |
---|
Logical Volumes data collector.
Synopsis
- defaultCharNum :: Int
- dcName :: String
- dcVersion :: DCVersion
- dcFormatVersion :: Int
- dcCategory :: Maybe DCCategory
- dcKind :: DCKind
- dcReport :: IO DCReport
- options :: IO [OptType]
- arguments :: [ArgCompletion]
- getLvInfo :: Maybe FilePath -> IO [LVInfo]
- getInstDiskList :: Options -> IO [(RealInstanceData, [Disk])]
- addInstNameToOneLv :: [(RealInstanceData, [Disk])] -> LVInfo -> LVInfo
- addInstNameToLv :: [(RealInstanceData, [Disk])] -> [LVInfo] -> [LVInfo]
- buildJsonReport :: Options -> IO JSValue
- buildDCReport :: Options -> IO DCReport
- main :: Options -> [String] -> IO ()
Documentation
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.
getLvInfo :: Maybe FilePath -> IO [LVInfo] Source #
Get information about logical volumes from file (if specified) or by actually running the command to get it from a live cluster.
getInstDiskList :: Options -> IO [(RealInstanceData, [Disk])] Source #
Get the list of real instances on the current node along with their disks, either from a provided file or by querying Confd.
addInstNameToOneLv :: [(RealInstanceData, [Disk])] -> LVInfo -> LVInfo Source #
Adds the name of the instance to the information about one logical volume.
addInstNameToLv :: [(RealInstanceData, [Disk])] -> [LVInfo] -> [LVInfo] Source #
Adds the name of the instance to the information about logical volumes.
buildJsonReport :: Options -> IO JSValue Source #
This function computes the JSON representation of the LV status.
buildDCReport :: Options -> IO DCReport Source #
This function computes the DCReport for the logical volumes.