Matthew Barth | b86374d | 2017-04-12 10:57:19 -0500 | [diff] [blame] | 1 | #pragma once |
| 2 | |
| 3 | #include <functional> |
| 4 | #include <sdbusplus/bus.hpp> |
| 5 | #include <sdbusplus/message.hpp> |
| 6 | |
| 7 | namespace phosphor |
| 8 | { |
| 9 | namespace dbus |
| 10 | { |
| 11 | namespace monitoring |
| 12 | { |
| 13 | |
| 14 | class Monitor; |
| 15 | |
| 16 | using Value = int64_t; |
| 17 | |
| 18 | using Group = std::vector<std::tuple<std::string, Value>>; |
| 19 | |
| 20 | using Condition = std::function<bool(sdbusplus::bus::bus&, |
| 21 | sdbusplus::message::message&, |
| 22 | Monitor&)>; |
| 23 | |
| 24 | using Action = std::function<void(sdbusplus::bus::bus&, |
| 25 | Monitor&)>; |
| 26 | |
| 27 | } // namespace monitoring |
| 28 | } // namespace dbus |
| 29 | } // namespace phosphor |