Safe Haskell | None |
---|
Implementation of the Ganeti data collector types.
- data DCReport = DCReport {
- dcReportName :: String
- dcReportVersion :: String
- dcReportFormatVersion :: Int
- dcReportTimestamp :: Integer
- dcReportData :: JSValue
- loadDCReport :: JSValue -> Result DCReport
- saveDCReport :: DCReport -> JSValue
- toDictDCReport :: DCReport -> [(String, JSValue)]
- buildReport :: String -> Maybe String -> Int -> JSValue -> IO DCReport
Documentation
This is the format of the report produced by each data collector.
DCReport | |
|
loadDCReport :: JSValue -> Result DCReportSource
saveDCReport :: DCReport -> JSValueSource
toDictDCReport :: DCReport -> [(String, JSValue)]Source
buildReport :: String -> Maybe String -> Int -> JSValue -> IO DCReportSource
Utility function for building a report automatically adding the current timestamp (rounded up to seconds). If the version is not specified, it will be set to the value indicating a builtin collector.