Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Ganeti.Hypervisor.Xen
Description
Module to access the information provided by the Xen hypervisor.
Synopsis
- getDomainsInfo :: IO (Result (Map String Domain))
- getInferredDomInfo :: IO (Result (Map String Domain))
- getUptimeInfo :: IO (Map Int UptimeInfo)
- data Domain = Domain {
- domId :: Int
- domName :: String
- domCpuTime :: Double
- domState :: ActualState
- domIsHung :: Maybe Bool
- data UptimeInfo = UptimeInfo {
- uInfoName :: String
- uInfoID :: Int
- uInfoUptime :: String
Documentation
getDomainsInfo :: IO (Result (Map String Domain)) #
Get information about the current Xen domains as a map where the domain name is the key. This only includes the information made available by Xen itself.
getInferredDomInfo :: IO (Result (Map String Domain)) #
Get information about the current Xen domains as a map where the domain name is the key. This includes information made available by Xen itself as well as further information that can be inferred by querying Xen multiple times and comparing the results.
getUptimeInfo :: IO (Map Int UptimeInfo) #
Get information about the uptime of domains, as a map where the domain ID is the key.
Data type representing a Xen Domain.
Constructors
Domain | |
Fields
|
data UptimeInfo #
Constructors
UptimeInfo | |
Fields
|
Instances
Show UptimeInfo # | |
Defined in Ganeti.Hypervisor.Xen.Types Methods showsPrec :: Int -> UptimeInfo -> ShowS show :: UptimeInfo -> String showList :: [UptimeInfo] -> ShowS | |
Eq UptimeInfo # | |
Defined in Ganeti.Hypervisor.Xen.Types |