Skip to content
Snippets Groups Projects
Commit 6327828e authored by Michele Tartara's avatar Michele Tartara
Browse files

Produce a report for all the data collectors


Implement the API function of the monitoring daemon that provides the report
of all the data collectors.

Signed-off-by: default avatarMichele Tartara <mtartara@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent db1ad1d5
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,9 @@ reportHandler =
-- | Return the report of all the available collectors.
allReports :: Snap ()
allReports = writeText "TODO: return the reports of all the collectors"
allReports = do
reports <- mapM (liftIO . dReport) collectors
writeBS . pack . J.encode $ reports
-- | Returns a category given its name.
-- If "collector" is given as the name, the collector has no category, and
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment