Safe Haskell | Safe-Infered |
---|
Ganeti.DataCollectors.CPUload
Description
procstat
data collector.
- defaultFile :: FilePath
- bufferSize :: Int
- windowSizeInUSec :: Integer
- defaultCharNum :: Int
- dcName :: String
- dcVersion :: DCVersion
- dcFormatVersion :: Int
- dcCategory :: Maybe DCCategory
- dcKind :: DCKind
- dcReport :: Maybe CollectorData -> IO DCReport
- type Buffer = Seq (ClockTime, [Integer])
- computeLoad :: CPUstat -> Integer
- dcCollectFromFile :: FilePath -> IO (ClockTime, [Integer])
- dcCollect :: IO Buffer
- formatData :: [Double] -> CPUavgload
- updateEntry :: Buffer -> Buffer -> Buffer
- dcUpdate :: Maybe CollectorData -> IO CollectorData
- computeAverage :: Buffer -> Integer -> Integer -> Result [Double]
- buildJsonReport :: Buffer -> IO JSValue
- buildDCReport :: Buffer -> IO DCReport
Documentation
defaultFile :: FilePathSource
bufferSize :: IntSource
windowSizeInUSec :: IntegerSource
defaultCharNum :: IntSource
dcFormatVersion :: IntSource
The version number for the data format of this data collector.
dcCategory :: Maybe DCCategorySource
The category of this data collector.
dcReport :: Maybe CollectorData -> IO DCReportSource
The data exported by the data collector, taken from the default location.
computeLoad :: CPUstat -> IntegerSource
dcCollectFromFile :: FilePath -> IO (ClockTime, [Integer])Source
formatData :: [Double] -> CPUavgloadSource
updateEntry :: Buffer -> Buffer -> BufferSource
dcUpdate :: Maybe CollectorData -> IO CollectorDataSource
Updates the given Collector data.
computeAverage :: Buffer -> Integer -> Integer -> Result [Double]Source
buildJsonReport :: Buffer -> IO JSValueSource
buildDCReport :: Buffer -> IO DCReportSource