Export the Instance Status collector report
authorMichele Tartara <mtartara@google.com>
Tue, 7 May 2013 16:37:05 +0000 (16:37 +0000)
committerMichele Tartara <mtartara@google.com>
Mon, 13 May 2013 13:20:26 +0000 (14:20 +0100)
It will need to be accessed by the monitoring daemon.

Signed-off-by: Michele Tartara <mtartara@google.com>
Reviewed-by: Klaus Aehlig <aehlig@google.com>

src/Ganeti/DataCollectors/InstStatus.hs

index bf92d2d..ec60c0b 100644 (file)
@@ -32,6 +32,7 @@ module Ganeti.DataCollectors.InstStatus
   , dcFormatVersion
   , dcCategory
   , dcKind
+  , dcReport
   ) where
 
 
@@ -78,6 +79,10 @@ dcCategory = Just DCInstance
 dcKind :: DCKind
 dcKind = DCKStatus
 
+-- | The report of this data collector.
+dcReport :: IO DCReport
+dcReport = buildInstStatusReport Nothing Nothing
+
 -- * Command line options
 
 options :: IO [OptType]