Safe Haskell | Safe-Infered |
---|
External data loader.
This module holds the external data loading, and thus is the only one depending (via the specialized Text/Rapi/Luxi modules) on the actual libraries implementing the low-level protocols.
- wrapIO :: IO (Result a) -> IO (Result a)
- parseUtilisation :: String -> Result (String, DynUtil)
- loadExternalData :: Options -> IO ClusterData
- maybeSaveData :: Maybe FilePath -> String -> String -> ClusterData -> IO ()
- data DataCollector = DataCollector {
- dName :: String
- dCategory :: Maybe DCCategory
- data Report = CPUavgloadReport CPUavgload
- collectors :: Options -> [DataCollector]
- type MonDData = (String, [DCReport])
- type MapMonDData = Map String [DCReport]
- pMonDData :: String -> Result [MonDData]
- pMonDN :: JSRecord -> Result MonDData
- queryAllMonDDCs :: ClusterData -> Options -> IO ClusterData
- queryAllMonDs :: Maybe MapMonDData -> (List, List) -> DataCollector -> IO (List, List)
- fromCurl :: DataCollector -> Node -> IO (Maybe DCReport)
- mkReport :: DataCollector -> Maybe DCReport -> Maybe Report
- fromFile :: DataCollector -> Node -> MapMonDData -> Maybe DCReport
- queryAMonD :: Maybe MapMonDData -> DataCollector -> Node -> IO (Maybe Node)
- updateUtilData :: List -> Node -> List
- prepareUrl :: DataCollector -> Node -> URLString
- getDCCName :: Maybe DCCategory -> String
Documentation
parseUtilisation :: String -> Result (String, DynUtil)Source
loadExternalData :: Options -> IO ClusterDataSource
External tool data loader from a variety of sources.
:: Maybe FilePath | The file prefix to save to |
-> String | The suffix (extension) to add |
-> String | Informational message |
-> ClusterData | The cluster data |
-> IO () |
Function to save the cluster data to a file.
data DataCollector Source
DataCollector | |
|
collectors :: Options -> [DataCollector]Source
type MapMonDData = Map String [DCReport]Source
queryAllMonDDCs :: ClusterData -> Options -> IO ClusterDataSource
Query all MonDs for all Data Collector.
queryAllMonDs :: Maybe MapMonDData -> (List, List) -> DataCollector -> IO (List, List)Source
fromCurl :: DataCollector -> Node -> IO (Maybe DCReport)Source
mkReport :: DataCollector -> Maybe DCReport -> Maybe ReportSource
fromFile :: DataCollector -> Node -> MapMonDData -> Maybe DCReportSource
queryAMonD :: Maybe MapMonDData -> DataCollector -> Node -> IO (Maybe Node)Source
updateUtilData :: List -> Node -> ListSource
prepareUrl :: DataCollector -> Node -> URLStringSource
getDCCName :: Maybe DCCategory -> StringSource