From b86374d9b6bf0c6fe78d8d87a8748138056b3ac3 Mon Sep 17 00:00:00 2001 From: Matthew Barth Date: Wed, 12 Apr 2017 10:57:19 -0500 Subject: Add item group monitoring data type framework Include supported data types for item groups: --Start event trigger --Signal event trigger --A countAtOrAbove condition --A log_error action Change-Id: I1ae5ba60e4d9c06155885d52d98a44b31fd73207 Signed-off-by: Matthew Barth --- src/data_types.hpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/data_types.hpp (limited to 'src/data_types.hpp') diff --git a/src/data_types.hpp b/src/data_types.hpp new file mode 100644 index 0000000..49406ea --- /dev/null +++ b/src/data_types.hpp @@ -0,0 +1,29 @@ +#pragma once + +#include +#include +#include + +namespace phosphor +{ +namespace dbus +{ +namespace monitoring +{ + +class Monitor; + +using Value = int64_t; + +using Group = std::vector>; + +using Condition = std::function; + +using Action = std::function; + +} // namespace monitoring +} // namespace dbus +} // namespace phosphor -- cgit v1.2.1