control: Add 'events' section to dump

Add an events section to the fan control dump that contains all of the
configured events with their contained action and group names.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I8e9fa9ce975ac30837b0842908faeb63ddc31e2a
diff --git a/control/json/event.hpp b/control/json/event.hpp
index e4e01ea..0873c06 100644
--- a/control/json/event.hpp
+++ b/control/json/event.hpp
@@ -141,6 +141,13 @@
                           const std::vector<std::string>& profiles,
                           std::vector<Group>& groups);
 
+    /**
+     * @brief Return the contained groups and actions as JSON
+     *
+     * @return json - A JSON object of groups and actions
+     */
+    json dump() const;
+
   private:
     /* The sdbusplus bus object */
     sdbusplus::bus::bus& _bus;