...to allow per-instance CPU data collection. Signed-off-by: Klaus Aehlig <aeh...@google.com> --- src/Ganeti/DataCollectors/Types.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/Ganeti/DataCollectors/Types.hs b/src/Ganeti/DataCollectors/Types.hs index 869b331..b37049c 100644 --- a/src/Ganeti/DataCollectors/Types.hs +++ b/src/Ganeti/DataCollectors/Types.hs @@ -139,7 +139,9 @@ instance JSON DCVersion where readJSON v = fail $ "Invalid JSON value " ++ show v ++ " for type DCVersion" -- | Type for the value field of the above map. -data CollectorData = CPULoadData (Seq.Seq (ClockTime, [Int])) +data CollectorData = + CPULoadData (Seq.Seq (ClockTime, [Int])) + | InstanceCpuLoad (Map.Map String (Seq.Seq (ClockTime, Double))) -- | Type for the map storing the data of the statefull DataCollectors. type CollectorMap = Map.Map String CollectorData -- 2.2.0.rc0.207.ga3a616c