ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.ExtLoader

Description

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.

Synopsis

Documentation

wrapIO :: IO (Result a) -> IO (Result a)Source

parseUtilisation :: String -> Result (String, DynUtil)Source

loadExternalData :: Options -> IO ClusterDataSource

External tool data loader from a variety of sources.

maybeSaveDataSource

Arguments

:: 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

Constructors

DataCollector 

Fields

dName :: String
 
dCategory :: Maybe DCCategory
 

type MonDData = (String, [DCReport])Source

type MapMonDData = Map String [DCReport]Source

pMonDData :: String -> Result [MonDData]Source

Parse MonD data file contents.

queryAllMonDDCs :: ClusterData -> Options -> IO ClusterDataSource

Query all MonDs for all Data Collector.

queryAMonD :: Maybe MapMonDData -> DataCollector -> Node -> IO (Maybe Node)Source

getDCCName :: Maybe DCCategory -> StringSource