Safe Haskell | None |
---|
Type declarations specific for the instance status data collector.
Synopsis
- data InstStatus = InstStatus {
- iStatName :: String
- iStatUuid :: String
- iStatAdminState :: AdminState
- iStatActualState :: ActualState
- iStatUptime :: (Maybe String)
- iStatMtime :: ClockTime
- iStatStateReason :: ReasonTrail
- iStatStatus :: DCStatus
- loadInstStatus :: JSValue -> Result InstStatus
- saveInstStatus :: InstStatus -> JSValue
- data ReportData = ReportData {}
- loadReportData :: JSValue -> Result ReportData
- saveReportData :: ReportData -> JSValue
Documentation
data InstStatus Source #
Data type representing the status of an instance to be returned.
InstStatus | |
|
Instances
Eq InstStatus # | |
Defined in Ganeti.DataCollectors.InstStatusTypes (==) :: InstStatus -> InstStatus -> Bool (/=) :: InstStatus -> InstStatus -> Bool | |
Show InstStatus # | |
Defined in Ganeti.DataCollectors.InstStatusTypes showsPrec :: Int -> InstStatus -> ShowS show :: InstStatus -> String showList :: [InstStatus] -> ShowS | |
JSON InstStatus # | |
Defined in Ganeti.DataCollectors.InstStatusTypes readJSON :: JSValue -> Result InstStatus showJSON :: InstStatus -> JSValue readJSONs :: JSValue -> Result [InstStatus] showJSONs :: [InstStatus] -> JSValue | |
ArrayObject InstStatus # | |
Defined in Ganeti.DataCollectors.InstStatusTypes toJSArray :: InstStatus -> [JSValue] Source # fromJSArray :: [JSValue] -> Result InstStatus Source # | |
DictObject InstStatus # | |
Defined in Ganeti.DataCollectors.InstStatusTypes toDict :: InstStatus -> [(String, JSValue)] Source # fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result InstStatus Source # fromDict :: [(String, JSValue)] -> Result InstStatus Source # |
loadInstStatus :: JSValue -> Result InstStatus Source #
saveInstStatus :: InstStatus -> JSValue Source #
data ReportData Source #
Instances
Eq ReportData # | |
Defined in Ganeti.DataCollectors.InstStatusTypes (==) :: ReportData -> ReportData -> Bool (/=) :: ReportData -> ReportData -> Bool | |
Show ReportData # | |
Defined in Ganeti.DataCollectors.InstStatusTypes showsPrec :: Int -> ReportData -> ShowS show :: ReportData -> String showList :: [ReportData] -> ShowS | |
JSON ReportData # | |
Defined in Ganeti.DataCollectors.InstStatusTypes readJSON :: JSValue -> Result ReportData showJSON :: ReportData -> JSValue readJSONs :: JSValue -> Result [ReportData] showJSONs :: [ReportData] -> JSValue | |
ArrayObject ReportData # | |
Defined in Ganeti.DataCollectors.InstStatusTypes toJSArray :: ReportData -> [JSValue] Source # fromJSArray :: [JSValue] -> Result ReportData Source # | |
DictObject ReportData # | |
Defined in Ganeti.DataCollectors.InstStatusTypes toDict :: ReportData -> [(String, JSValue)] Source # fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result ReportData Source # fromDict :: [(String, JSValue)] -> Result ReportData Source # |
loadReportData :: JSValue -> Result ReportData Source #
saveReportData :: ReportData -> JSValue Source #