ganeti

Safe HaskellSafe-Infered

Ganeti.DataCollectors.CPUload

Description

procstat data collector.

Synopsis

Documentation

defaultFile :: FilePathSource

windowSize :: IntegerSource

dcName :: StringSource

The name of this data collector.

dcVersion :: DCVersionSource

The version of this data collector.

dcFormatVersion :: IntSource

The version number for the data format of this data collector.

dcCategory :: Maybe DCCategorySource

The category of this data collector.

dcKind :: DCKindSource

The kind of this data collector.

dcReport :: Maybe CollectorData -> IO DCReportSource

The data exported by the data collector, taken from the default location.

type Buffer = Seq (Integer, [Int])Source

dcCollectFromFile :: FilePath -> IO (Integer, [Int])Source

dcUpdate :: Maybe CollectorData -> IO CollectorDataSource

Updates the given Collector data.

computeAverage :: Buffer -> Integer -> Integer -> [Double]Source

buildJsonReport :: Buffer -> IO JSValueSource