Name, version, format version, category and kind of the Instance Status data collector are now exported.
Signed-off-by: Michele Tartara <[email protected]> --- src/Ganeti/DataCollectors/InstStatus.hs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/Ganeti/DataCollectors/InstStatus.hs b/src/Ganeti/DataCollectors/InstStatus.hs index ec8b3ef..f3a8c1c 100644 --- a/src/Ganeti/DataCollectors/InstStatus.hs +++ b/src/Ganeti/DataCollectors/InstStatus.hs @@ -27,6 +27,11 @@ module Ganeti.DataCollectors.InstStatus ( main , options , arguments + , dcName + , dcVersion + , dcFormatVersion + , dcCategory + , dcKind ) where @@ -51,6 +56,27 @@ import Ganeti.Path import Ganeti.Types import Ganeti.Utils + +-- | The name of this data collector. +dcName :: String +dcName = "inst-status-xen" + +-- | The version of this data collector. +dcVersion :: DCVersion +dcVersion = DCVerBuiltin + +-- | The version number for the data format of this data collector. +dcFormatVersion :: Int +dcFormatVersion = 1 + +-- | The category of this data collector. +dcCategory :: Maybe DCCategory +dcCategory = Just DCInstance + +-- | The kind of this data collector. +dcKind :: DCKind +dcKind = DCKStatus + -- * Command line options options :: IO [OptType] -- 1.8.2.1
