control: Add getBus() and getGroups() functions for triggers

Event triggers will need to retrieve the sdbusplus bus object and each
actions set of groups when being created.

Change-Id: I7309ebbae6fb0c0df98f5dfaa89c9063b0d97719
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/control/json/actions/action.hpp b/control/json/actions/action.hpp
index 9f642df..93219af 100644
--- a/control/json/actions/action.hpp
+++ b/control/json/actions/action.hpp
@@ -122,6 +122,16 @@
     {}
 
     /**
+     * @brief Get the groups configured on the action
+     *
+     * @return List of groups
+     */
+    inline const auto& getGroups() const
+    {
+        return _groups;
+    }
+
+    /**
      * @brief Set the zones the action is run against
      *
      * @param[in] zones - Zones the action runs against