ganeti

Safe HaskellNone

Ganeti.DataCollectors.Types

Description

Implementation of the Ganeti data collector types.

Synopsis

Documentation

data DCReport Source

This is the format of the report produced by each data collector.

Constructors

DCReport 

Fields

dcReportName :: String
 
dcReportVersion :: String
 
dcReportFormatVersion :: Int
 
dcReportTimestamp :: Integer
 
dcReportData :: JSValue
 

Instances

Eq DCReport 
Show DCReport 
JSON DCReport 

loadDCReport :: JSValue -> Result DCReportSource

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.